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

Issue 21158: Fix a logic error in the handling the response to an HTTP... (Closed)

Created:
11 years, 10 months ago by wtc
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Sanitize proxy response codes to CONNECT requests. For anything other than 200 (success) or 400-599 (error), we rewrite the response code as 500 (internal server error) to prevent any special handling of the proxy's response to CONNECT by mistake. Add a new error code ERR_UNEXPECTED_SERVER_AUTH for a 401 response to a CONNECT request. Fix nits reported by cpplint.py. R=darin,eroman BUG=7338 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9549

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -45 lines) Patch
M net/base/net_error_list.h View 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 4 5 6 7 3 chunks +24 lines, -15 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M net/http/http_response_headers.h View 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M net/tools/testserver/testserver.py View 3 4 5 6 7 4 chunks +40 lines, -2 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 2 3 4 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.h View 3 4 5 6 7 3 chunks +9 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 3 4 5 6 7 19 chunks +51 lines, -24 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wtc
11 years, 10 months ago (2009-02-10 03:09:12 UTC) #1
darin (slow to review)
LGTM
11 years, 10 months ago (2009-02-10 04:47:57 UTC) #2
eroman
http://codereview.chromium.org/21158/diff/5/1007 File net/tools/testserver/testserver.py (right): http://codereview.chromium.org/21158/diff/5/1007#newcode913 Line 913: return True; style-nit: remove the semicolon. http://codereview.chromium.org/21158/diff/5/1005 File ...
11 years, 10 months ago (2009-02-10 06:49:56 UTC) #3
wtc
Darin, you only need to review the change to http_network_transaction.cc if you're busy. I implemented ...
11 years, 10 months ago (2009-02-10 22:14:49 UTC) #4
darin (slow to review)
This change makes sense to me. LG for http_network_transaction.cc
11 years, 10 months ago (2009-02-10 22:28:20 UTC) #5
eroman
LGTM after answering http://codereview.chromium.org/21158/diff/14/1014#newcode215 http://codereview.chromium.org/21158/diff/14/1019 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/21158/diff/14/1019#newcode846 Line 846: // handling it by ...
11 years, 10 months ago (2009-02-10 23:31:12 UTC) #6
wtc
I made the changes you suggested. Please review the new Patch Set. Unfortunately it picked ...
11 years, 10 months ago (2009-02-10 23:52:11 UTC) #7
eroman
LGTM. I wander if this is going to have a behavioral impact with regards to ...
11 years, 10 months ago (2009-02-11 00:00:57 UTC) #8
wtc
OK, as we discussed, here is a new Patch Set. I added a new ERR_UNEXPECTED_AUTH_SERVER ...
11 years, 10 months ago (2009-02-11 01:45:03 UTC) #9
eroman
11 years, 10 months ago (2009-02-11 02:01:42 UTC) #10
still lgtm.

http://codereview.chromium.org/21158/diff/30/1038
File net/http/http_network_transaction.cc (right):

http://codereview.chromium.org/21158/diff/30/1038#newcode1226
Line 1226: return ERR_UNEXPECTED_PROXY_AUTH;
I suspect you meant to use your new error code here:
  ERR_UNEXPECTED_SERVER_AUTH

Powered by Google App Engine
This is Rietveld 408576698