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

Issue 2835403003: Do not abort redirect responses with unadvertised encoding. (Closed)

Created:
3 years, 8 months ago by eustas
Modified:
3 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not abort redirect responses with unadvertised encoding. It is actually a server misbehavior, but currently it is unknown, how widespread it is. Added UMA to track such events. Drive-by: fix reported encoding in case of unadvertised encoding to be "REJECTED". BUG=714514 Review-Url: https://codereview.chromium.org/2835403003 Cr-Commit-Position: refs/heads/master@{#468032} Committed: https://chromium.googlesource.com/chromium/src/+/14d9d00fcdd545dc47387443e17c3d9fbb41e5fb

Patch Set 1 #

Patch Set 2 : Add unittest #

Total comments: 3

Patch Set 3 : Pulled the check out of the loop and report "false" for valid responses #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -8 lines) Patch
M net/http/http_network_transaction.cc View 1 2 2 chunks +14 lines, -3 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 3 chunks +22 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
eustas
3 years, 8 months ago (2017-04-25 21:14:39 UTC) #2
Randy Smith (Not in Mondays)
Relying on Matt for validity of usage of IsRedirect() in this case; beyond that LGTM.
3 years, 8 months ago (2017-04-25 21:21:58 UTC) #3
mmenke
On 2017/04/25 21:21:58, Randy Smith (Not in Mondays) wrote: > Relying on Matt for validity ...
3 years, 8 months ago (2017-04-25 21:24:29 UTC) #4
eustas
Steven, take a look at histograms.xml, please.
3 years, 8 months ago (2017-04-25 21:59:22 UTC) #6
eustas
On 2017/04/25 21:24:29, mmenke wrote: > On 2017/04/25 21:21:58, Randy Smith (Not in Mondays) wrote: ...
3 years, 8 months ago (2017-04-25 22:20:41 UTC) #7
eustas
3 years, 8 months ago (2017-04-25 22:20:56 UTC) #8
Steven Holte
lgtm, but consider adding the false case. https://codereview.chromium.org/2835403003/diff/20001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/2835403003/diff/20001/net/http/http_network_transaction.cc#newcode1814 net/http/http_network_transaction.cc:1814: true); Recording ...
3 years, 8 months ago (2017-04-26 02:20:23 UTC) #10
Randy Smith (Not in Mondays)
https://codereview.chromium.org/2835403003/diff/20001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/2835403003/diff/20001/net/http/http_network_transaction.cc#newcode1814 net/http/http_network_transaction.cc:1814: true); On 2017/04/26 02:20:22, Steven Holte wrote: > Recording ...
3 years, 8 months ago (2017-04-26 03:26:50 UTC) #11
mmenke
LGTM
3 years, 8 months ago (2017-04-26 14:23:02 UTC) #12
eustas
PTAL https://codereview.chromium.org/2835403003/diff/20001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/2835403003/diff/20001/net/http/http_network_transaction.cc#newcode1814 net/http/http_network_transaction.cc:1814: true); On 2017/04/26 03:26:50, Randy Smith (Not in ...
3 years, 7 months ago (2017-04-28 13:53:10 UTC) #13
Randy Smith (Not in Mondays)
LGTM.
3 years, 7 months ago (2017-04-28 15:06:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2835403003/40001
3 years, 7 months ago (2017-04-28 16:58:03 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/14d9d00fcdd545dc47387443e17c3d9fbb41e5fb
3 years, 7 months ago (2017-04-28 17:04:52 UTC) #24
sky
On 2017/04/28 17:04:52, commit-bot: I haz the power wrote: > Committed patchset #3 (id:40001) as ...
3 years, 7 months ago (2017-05-01 18:03:26 UTC) #25
mmenke
On 2017/05/01 18:03:26, sky wrote: > On 2017/04/28 17:04:52, commit-bot: I haz the power wrote: ...
3 years, 7 months ago (2017-05-01 18:06:45 UTC) #26
sky
3 years, 7 months ago (2017-05-01 21:10:51 UTC) #27
Message was sent while issue was closed.
On 2017/05/01 18:06:45, mmenke wrote:
> On 2017/05/01 18:03:26, sky wrote:
> > On 2017/04/28 17:04:52, commit-bot: I haz the power wrote:
> > > Committed patchset #3 (id:40001) as
> > >
> >
>
https://chromium.googlesource.com/chromium/src/+/14d9d00fcdd545dc47387443e17c...
> > 
> > This is the current culprit for net_unittests flake, so I'm reverting. I had
> to
> > do the revert manually, here: https://codereview.chromium.org/2849193002/ .
> See
> > 716594 for details.
> 
> What makes you so sure this is the culprit?  That test doesn't even look to
make
> HttpNetworkTransactions.

This was one of the patches that touched net. As you say though, this wasn't the
culprit and I have reverted the revert here:
https://codereview.chromium.org/2852123002/. Sorry for the noise.

Powered by Google App Engine
This is Rietveld 408576698