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

Issue 39203004: [Net] Fix error handling on wrong file in UploadData (Closed)

Created:
7 years, 2 months ago by tzik
Modified:
7 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, manoranjanr, kinuko+watch, tommi (sloooow) - chröme
Visibility:
Public.

Description

[Net] Fix error handling on wrong file in UploadData * Handle file error as a failure rather than handling it as empty file. * Change Chrome Frame error handling for URLRequest failure, from DCHECK hit to ignoring failing input file. BUG=310548, 317432 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234436

Patch Set 1 #

Patch Set 2 : fix UploadFileElementReaderSyncTest.WrongPath expectation #

Patch Set 3 : test fix #

Patch Set 4 : comment fix #

Patch Set 5 : +SPDY test #

Patch Set 6 : win test fix #

Total comments: 11

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Total comments: 6

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : chrome_frame_fix #

Patch Set 13 : fix test expectation for chrome_frame #

Patch Set 14 : #

Patch Set 15 : buildfix #

Patch Set 16 : expectation fix #

Total comments: 10

Patch Set 17 : #

Patch Set 18 : #

Total comments: 2

Patch Set 19 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -142 lines) Patch
M chrome_frame/chrome_frame.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome_frame/plugin_url_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +6 lines, -3 lines 0 comments Download
M chrome_frame/urlmon_upload_data_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/urlmon_upload_data_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -3 lines 0 comments Download
M net/base/upload_file_element_reader.cc View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -10 lines 0 comments Download
M net/base/upload_file_element_reader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -6 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -110 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +50 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +44 lines, -9 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
tzik
PTL.
7 years, 2 months ago (2013-10-24 12:09:00 UTC) #1
willchan no longer on Chromium
Passing hot potato to Matt :)
7 years, 2 months ago (2013-10-24 13:17:03 UTC) #2
tzik
On 2013/10/24 13:17:03, willchan wrote: > Passing hot potato to Matt :) Hmm, is it ...
7 years, 2 months ago (2013-10-24 13:55:08 UTC) #3
mmenke
On 2013/10/24 13:55:08, tzik wrote: > On 2013/10/24 13:17:03, willchan wrote: > > Passing hot ...
7 years, 2 months ago (2013-10-24 14:37:25 UTC) #4
Michał Górny
After applying the patch, I can still reproduce the issue with http://www.speedyshare.com/
7 years, 2 months ago (2013-10-24 15:13:01 UTC) #5
tzik
On 2013/10/24 14:37:25, mmenke wrote: > On 2013/10/24 13:55:08, tzik wrote: > > On 2013/10/24 ...
7 years, 2 months ago (2013-10-25 02:28:29 UTC) #6
tzik
On 2013/10/24 15:13:01, Michał Górny wrote: > After applying the patch, I can still reproduce ...
7 years, 2 months ago (2013-10-25 03:01:46 UTC) #7
mmenke
On 2013/10/25 02:28:29, tzik wrote: > On 2013/10/24 14:37:25, mmenke wrote: > > On 2013/10/24 ...
7 years, 1 month ago (2013-10-25 15:50:21 UTC) #8
tzik
On 2013/10/25 15:50:21, mmenke wrote: > On 2013/10/25 02:28:29, tzik wrote: > > On 2013/10/24 ...
7 years, 1 month ago (2013-10-28 12:00:56 UTC) #9
mmenke
On 2013/10/28 12:00:56, tzik wrote: > On 2013/10/25 15:50:21, mmenke wrote: > > On 2013/10/25 ...
7 years, 1 month ago (2013-10-28 13:14:09 UTC) #10
hashimoto
Some drive-by comments... https://codereview.chromium.org/39203004/diff/390001/net/base/upload_file_element_reader.cc File net/base/upload_file_element_reader.cc (right): https://codereview.chromium.org/39203004/diff/390001/net/base/upload_file_element_reader.cc#newcode38 net/base/upload_file_element_reader.cc:38: // If the file can't be ...
7 years, 1 month ago (2013-10-29 04:08:58 UTC) #11
tzik
https://codereview.chromium.org/39203004/diff/390001/net/base/upload_file_element_reader.cc File net/base/upload_file_element_reader.cc (right): https://codereview.chromium.org/39203004/diff/390001/net/base/upload_file_element_reader.cc#newcode38 net/base/upload_file_element_reader.cc:38: // If the file can't be opened, we'll just ...
7 years, 1 month ago (2013-10-29 05:48:02 UTC) #12
tzik
https://codereview.chromium.org/39203004/diff/390001/net/spdy/spdy_network_transaction_unittest.cc File net/spdy/spdy_network_transaction_unittest.cc (right): https://codereview.chromium.org/39203004/diff/390001/net/spdy/spdy_network_transaction_unittest.cc#newcode1821 net/spdy/spdy_network_transaction_unittest.cc:1821: scoped_ptr<SpdyFrame> body(spdy_util_.ConstructSpdyBodyFrame(1, true)); On 2013/10/29 05:48:02, tzik wrote: > ...
7 years, 1 month ago (2013-10-29 06:06:19 UTC) #13
hashimoto
https://codereview.chromium.org/39203004/diff/390001/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): https://codereview.chromium.org/39203004/diff/390001/net/url_request/url_request_unittest.cc#newcode4531 net/url_request/url_request_unittest.cc:4531: EXPECT_EQ(0, d.bytes_received()); On 2013/10/29 06:06:19, tzik wrote: > On ...
7 years, 1 month ago (2013-10-29 06:55:26 UTC) #14
mmenke
https://codereview.chromium.org/39203004/diff/670001/net/base/upload_file_element_reader.cc File net/base/upload_file_element_reader.cc (right): https://codereview.chromium.org/39203004/diff/670001/net/base/upload_file_element_reader.cc#newcode72 net/base/upload_file_element_reader.cc:72: return ERR_FILE_NOT_FOUND; I suggest not setting out_content_length or out_file_stream ...
7 years, 1 month ago (2013-10-29 15:29:30 UTC) #15
tzik
Sorry for my slow update, but I'm still fixing a trybot failure on chrome_frame_net_tests. Debugging ...
7 years, 1 month ago (2013-10-31 12:19:28 UTC) #16
mmenke
On 2013/10/31 12:19:28, tzik wrote: > Sorry for my slow update, but I'm still fixing ...
7 years, 1 month ago (2013-10-31 14:53:02 UTC) #17
hashimoto
On 2013/10/31 14:53:02, mmenke wrote: > On 2013/10/31 12:19:28, tzik wrote: > > Sorry for ...
7 years, 1 month ago (2013-11-05 06:04:42 UTC) #18
mmenke
On 2013/11/05 06:04:42, hashimoto wrote: > On 2013/10/31 14:53:02, mmenke wrote: > > On 2013/10/31 ...
7 years, 1 month ago (2013-11-06 22:50:11 UTC) #19
tzik
Now, tests turned saner. Please take another look. Adding tommi as a chrome_frame OWNER. tommi: ...
7 years, 1 month ago (2013-11-07 04:42:54 UTC) #20
mmenke
Just one comment. Otherwise, looks great! https://codereview.chromium.org/39203004/diff/1220001/net/spdy/spdy_network_transaction_unittest.cc File net/spdy/spdy_network_transaction_unittest.cc (right): https://codereview.chromium.org/39203004/diff/1220001/net/spdy/spdy_network_transaction_unittest.cc#newcode1822 net/spdy/spdy_network_transaction_unittest.cc:1822: CreateMockWrite(*req), I believe ...
7 years, 1 month ago (2013-11-07 20:28:59 UTC) #21
mmenke
https://codereview.chromium.org/39203004/diff/1220001/net/spdy/spdy_network_transaction_unittest.cc File net/spdy/spdy_network_transaction_unittest.cc (right): https://codereview.chromium.org/39203004/diff/1220001/net/spdy/spdy_network_transaction_unittest.cc#newcode1822 net/spdy/spdy_network_transaction_unittest.cc:1822: CreateMockWrite(*req), On 2013/11/07 20:29:00, mmenke wrote: > I believe ...
7 years, 1 month ago (2013-11-07 21:55:51 UTC) #22
hashimoto
https://codereview.chromium.org/39203004/diff/1220001/chrome_frame/plugin_url_request.cc File chrome_frame/plugin_url_request.cc (right): https://codereview.chromium.org/39203004/diff/1220001/chrome_frame/plugin_url_request.cc#newcode49 chrome_frame/plugin_url_request.cc:49: return true; Is it OK to return without setting ...
7 years, 1 month ago (2013-11-08 04:59:08 UTC) #23
tzik
https://codereview.chromium.org/39203004/diff/1220001/chrome_frame/plugin_url_request.cc File chrome_frame/plugin_url_request.cc (right): https://codereview.chromium.org/39203004/diff/1220001/chrome_frame/plugin_url_request.cc#newcode49 chrome_frame/plugin_url_request.cc:49: return true; On 2013/11/08 04:59:08, hashimoto wrote: > Is ...
7 years, 1 month ago (2013-11-11 04:03:03 UTC) #24
hashimoto
Did you forget to address Matt's comment in spdy_network_transaction_unittest.cc? https://codereview.chromium.org/39203004/diff/1450001/chrome_frame/plugin_url_request.cc File chrome_frame/plugin_url_request.cc (right): https://codereview.chromium.org/39203004/diff/1450001/chrome_frame/plugin_url_request.cc#newcode49 chrome_frame/plugin_url_request.cc:49: ...
7 years, 1 month ago (2013-11-11 04:27:52 UTC) #25
tzik
https://codereview.chromium.org/39203004/diff/1220001/net/spdy/spdy_network_transaction_unittest.cc File net/spdy/spdy_network_transaction_unittest.cc (right): https://codereview.chromium.org/39203004/diff/1220001/net/spdy/spdy_network_transaction_unittest.cc#newcode1828 net/spdy/spdy_network_transaction_unittest.cc:1828: DelayedSocketData data(2, reads, arraysize(reads), writes, arraysize(writes)); On 2013/11/07 21:55:51, ...
7 years, 1 month ago (2013-11-11 05:33:51 UTC) #26
hashimoto
lgtm, thanks
7 years, 1 month ago (2013-11-11 06:38:54 UTC) #27
tommi (sloooow) - chröme
I'm going to have to bow out due to time restrictions. Greg, can you take ...
7 years, 1 month ago (2013-11-11 11:22:43 UTC) #28
grt (UTC plus 2)
To be clear: the changes in chrome_frame are to more or less maintain the old ...
7 years, 1 month ago (2013-11-11 14:53:41 UTC) #29
mmenke
Should update the comment to reflect the ChromeFrame changes. I'll look at what's happening with ...
7 years, 1 month ago (2013-11-11 16:28:38 UTC) #30
mmenke
On 2013/11/11 16:28:38, mmenke wrote: > Should update the comment to reflect the ChromeFrame changes. ...
7 years, 1 month ago (2013-11-11 19:28:31 UTC) #31
tzik
On 2013/11/11 14:53:41, grt wrote: > To be clear: the changes in chrome_frame are to ...
7 years, 1 month ago (2013-11-12 04:58:18 UTC) #32
tzik
On 2013/11/11 19:28:31, mmenke wrote: > On 2013/11/11 16:28:38, mmenke wrote: > > Should update ...
7 years, 1 month ago (2013-11-12 04:58:40 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/39203004/1570001
7 years, 1 month ago (2013-11-12 05:03:36 UTC) #34
commit-bot: I haz the power
7 years, 1 month ago (2013-11-12 06:45:56 UTC) #35
Message was sent while issue was closed.
Change committed as 234436

Powered by Google App Engine
This is Rietveld 408576698