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

Issue 642913004: Throw IllegalArgumentException from addQuicHint if host is URL. (Closed)

Created:
6 years, 2 months ago by mef
Modified:
6 years, 2 months ago
Reviewers:
mmenke, xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Throw IllegalArgumentException from Cronet HttpUrlRequestFactoryConfig.addQuicHint if host param is URL. This is needed to prevent invalid hosts from being added to HttpServerProperties and having Quic hints not working correctly. HttpUrlRequestFactoryConfig is pure Java and doesn't depend on native library, so it only provides a rudimentary check, but URLRequestContextAdapter::InitRequestContextOnNetworkThread() performs IsCanonicalizedHostCompliant check and uses LOG(ERROR) for invalid hosts. BUG=420464 TEST=build/android/test_runner.py instrumentation --test-apk=CronetTestInstrumentation -f *Quic* Committed: https://crrev.com/f937604c661f75a423b6e1c0a285eff9a8556577 Cr-Commit-Position: refs/heads/master@{#300363}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add IsCanonicalizedHostCompliant check to Quic Hint parsing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
M components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java View 1 chunk +4 lines, -0 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/cronet_test_apk/HttpUrlRequestFactoryTest.java View 1 chunk +13 lines, -0 lines 0 comments Download
M components/cronet/android/url_request_context_adapter.cc View 1 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
mef
Hi, please take a look.
6 years, 2 months ago (2014-10-20 16:25:13 UTC) #2
xunjieli
lgtm with nits https://codereview.chromium.org/642913004/diff/1/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java File components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java (right): https://codereview.chromium.org/642913004/diff/1/components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java#newcode107 components/cronet/android/java/src/org/chromium/net/HttpUrlRequestFactoryConfig.java:107: * @param host of the server ...
6 years, 2 months ago (2014-10-20 16:39:19 UTC) #3
mmenke
Should we do a more thorough test, to protect people from shooting themselves in the ...
6 years, 2 months ago (2014-10-20 17:13:46 UTC) #4
mef
Thanks! Per offline discussion HttpUrlRequestFactoryConfig is pure Java and doesn't depend on native library, so ...
6 years, 2 months ago (2014-10-20 19:20:01 UTC) #5
mmenke
On 2014/10/20 19:20:01, mef wrote: > Thanks! Per offline discussion HttpUrlRequestFactoryConfig is pure Java and ...
6 years, 2 months ago (2014-10-20 19:45:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642913004/20001
6 years, 2 months ago (2014-10-20 20:12:44 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/65652)
6 years, 2 months ago (2014-10-20 22:11:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642913004/20001
6 years, 2 months ago (2014-10-20 22:30:52 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-20 22:42:22 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 22:43:37 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f937604c661f75a423b6e1c0a285eff9a8556577
Cr-Commit-Position: refs/heads/master@{#300363}

Powered by Google App Engine
This is Rietveld 408576698