Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Issue 1374883002: Add UMAs for checking header values against RFC 7230 in //net (Closed)

Created:
5 years, 2 months ago by hiroshige
Modified:
5 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMAs for checking header values against RFC 7230 in //net This CL inserts UMAs to URLRequestHttpJob to count the number of requests/responses that contains invalid header values in RFC 7230. This is the first step to investigate the feasibility of updating header value check to RFC 7230 in //net stack. BUG=455099 Committed: https://crrev.com/cb76caa4c5d065991a03c54f80e3e6ae239d7a59 Cr-Commit-Position: refs/heads/master@{#366563}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use StringPiece. #

Total comments: 12

Patch Set 3 : Rebase + reflect comments. #

Patch Set 4 : Move UMAs to URLRequestHTTPJob #

Patch Set 5 : #

Total comments: 12

Patch Set 6 : Reflect comments. #

Total comments: 4

Patch Set 7 : Reflect comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -0 lines) Patch
M net/http/http_util.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_util.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M net/http/http_util_unittest.cc View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 2 chunks +28 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374883002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374883002/1
5 years, 2 months ago (2015-09-29 08:55:04 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-29 10:12:10 UTC) #4
hiroshige
davidben@, could you take a look? In your comment in "Intent to Deprecate and Remove: ...
5 years, 2 months ago (2015-09-29 10:38:48 UTC) #6
davidben
https://codereview.chromium.org/1374883002/diff/1/net/http/http_request_headers.cc File net/http/http_request_headers.cc (right): https://codereview.chromium.org/1374883002/diff/1/net/http/http_request_headers.cc#newcode91 net/http/http_request_headers.cc:91: HttpUtil::IsValidHeaderValueRFC7230(value.as_string())); This makes an unnecessary copy. The lines above ...
5 years, 2 months ago (2015-09-29 16:32:59 UTC) #7
hiroshige
https://codereview.chromium.org/1374883002/diff/1/net/http/http_request_headers.cc File net/http/http_request_headers.cc (right): https://codereview.chromium.org/1374883002/diff/1/net/http/http_request_headers.cc#newcode91 net/http/http_request_headers.cc:91: HttpUtil::IsValidHeaderValueRFC7230(value.as_string())); On 2015/09/29 16:32:59, David Benjamin wrote: > This ...
5 years, 2 months ago (2015-09-30 08:19:23 UTC) #8
hiroshige
+asvitkine for tools/metrics/ OWNER. Could you take a look?
5 years, 2 months ago (2015-09-30 15:27:17 UTC) #10
davidben
https://codereview.chromium.org/1374883002/diff/20001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/1374883002/diff/20001/net/http/http_util.cc#newcode349 net/http/http_util.cc:349: bool HttpUtil::IsValidHeaderValueRFC7230(base::StringPiece value) { Optional: Now that you have ...
5 years, 2 months ago (2015-09-30 16:38:18 UTC) #11
hiroshige
https://codereview.chromium.org/1374883002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1374883002/diff/20001/tools/metrics/histograms/histograms.xml#newcode22744 tools/metrics/histograms/histograms.xml:22744: + https://crbug.com/455099. On 2015/09/30 16:38:18, davidben wrote: > Are ...
5 years, 1 month ago (2015-10-29 12:49:21 UTC) #12
davidben
https://codereview.chromium.org/1374883002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1374883002/diff/20001/tools/metrics/histograms/histograms.xml#newcode22744 tools/metrics/histograms/histograms.xml:22744: + https://crbug.com/455099. On 2015/10/29 12:49:20, hiroshige wrote: > On ...
5 years, 1 month ago (2015-10-29 21:04:56 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374883002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374883002/60001
5 years ago (2015-12-15 07:43:17 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/122493)
5 years ago (2015-12-15 08:18:29 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374883002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374883002/80001
5 years ago (2015-12-15 09:13:09 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-15 10:45:50 UTC) #22
hiroshige
davidben@, Thanks for suggestion! I moved UMAs to URLRequestHTTPJob in Patch Set 5. Could you ...
5 years ago (2015-12-15 12:00:26 UTC) #24
davidben
https://codereview.chromium.org/1374883002/diff/80001/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): https://codereview.chromium.org/1374883002/diff/80001/net/url_request/url_request_http_job.cc#newcode486 net/url_request/url_request_http_job.cc:486: int invalid_header_values_in_RFC7230 = 0; This should probably be a ...
5 years ago (2015-12-15 21:16:36 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374883002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374883002/100001
5 years ago (2015-12-17 02:35:28 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-17 05:21:38 UTC) #29
hiroshige
https://codereview.chromium.org/1374883002/diff/80001/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): https://codereview.chromium.org/1374883002/diff/80001/net/url_request/url_request_http_job.cc#newcode486 net/url_request/url_request_http_job.cc:486: int invalid_header_values_in_RFC7230 = 0; On 2015/12/15 21:16:36, davidben wrote: ...
5 years ago (2015-12-17 06:36:02 UTC) #30
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1374883002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1374883002/diff/100001/tools/metrics/histograms/histograms.xml#newcode24270 tools/metrics/histograms/histograms.xml:24270: +<histogram name="Net.HttpResponseContainsInvalidHeaderValuesInRFC7230" Nit: These are a bit hard ...
5 years ago (2015-12-17 19:53:23 UTC) #31
davidben
lgtm https://codereview.chromium.org/1374883002/diff/100001/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): https://codereview.chromium.org/1374883002/diff/100001/net/url_request/url_request_http_job.cc#newcode486 net/url_request/url_request_http_job.cc:486: bool invalid_header_values_in_RFC7230 = false; Nit: I would lowercase ...
5 years ago (2015-12-17 20:00:41 UTC) #32
hiroshige
https://codereview.chromium.org/1374883002/diff/100001/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): https://codereview.chromium.org/1374883002/diff/100001/net/url_request/url_request_http_job.cc#newcode486 net/url_request/url_request_http_job.cc:486: bool invalid_header_values_in_RFC7230 = false; On 2015/12/17 20:00:41, davidben wrote: ...
5 years ago (2015-12-22 06:33:51 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374883002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374883002/120001
5 years ago (2015-12-22 06:34:13 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374883002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374883002/120001
5 years ago (2015-12-22 06:37:47 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years ago (2015-12-22 07:50:32 UTC) #41
commit-bot: I haz the power
5 years ago (2015-12-22 07:51:27 UTC) #43
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cb76caa4c5d065991a03c54f80e3e6ae239d7a59
Cr-Commit-Position: refs/heads/master@{#366563}

Powered by Google App Engine
This is Rietveld 408576698