Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Issue 2764002: Adding possibility for client to upload the file (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by olivierrobin
Modified:
9 years, 8 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Adding possibility for client to upload the file

This CL adds three features that will allow the client to upload the report
file. 
Three main modifications are made :
- Allow upload url to have a file:// scheme, and write the HTTP request to file

in that case
- Split the request in two parts in case of a file:// scheme, the request time 
and the response time. A new API [handleNetworkResponse] is added.
- Give the opportunity to the client to get the configuration NSDictionary to
be able to recreate the breakpad context at response time.
 

Patch Set 1 #

Total comments: 17

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/ios/Breakpad.h View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M src/client/ios/Breakpad.mm View 1 2 3 3 chunks +88 lines, -15 lines 0 comments Download
M src/client/ios/BreakpadController.h View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M src/client/ios/BreakpadController.mm View 1 2 3 4 5 6 7 2 chunks +31 lines, -0 lines 0 comments Download
M src/client/mac/sender/uploader.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M src/client/mac/sender/uploader.mm View 1 2 3 4 5 6 7 8 9 10 3 chunks +51 lines, -33 lines 0 comments Download
M src/common/mac/HTTPMultipartUpload.m View 1 2 2 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 37
olivierrobin
Hi, This is the Breakpad part of the "background fetch" report uploading. The goal is ...
9 years, 8 months ago #1
olivierrobin
9 years, 8 months ago #2
olivierrobin
9 years, 8 months ago #3
olivierrobin
A link to the discussion page : https://sites.google.com/a/chromium.org/dev/developers/crash-reports/handle-file-upload-scheme
9 years, 8 months ago #4
qsr
https://breakpad.appspot.com/2764002/diff/1/src/client/ios/Breakpad.h File src/client/ios/Breakpad.h (right): https://breakpad.appspot.com/2764002/diff/1/src/client/ios/Breakpad.h#newcode203 src/client/ios/Breakpad.h:203: NSDictionary* BreakpadGetNextReportConfiguration(BreakpadRef ref); Style, for consistency the * should ...
9 years, 8 months ago #5
olivierrobin
https://breakpad.appspot.com/2764002/diff/1/src/client/ios/Breakpad.h File src/client/ios/Breakpad.h (right): https://breakpad.appspot.com/2764002/diff/1/src/client/ios/Breakpad.h#newcode203 src/client/ios/Breakpad.h:203: NSDictionary* BreakpadGetNextReportConfiguration(BreakpadRef ref); On 2014/08/25 16:07:31, qsr wrote: > ...
9 years, 8 months ago #6
olivierrobin
https://breakpad.appspot.com/2764002/diff/40003/src/client/ios/BreakpadController.h File src/client/ios/BreakpadController.h (right): https://breakpad.appspot.com/2764002/diff/40003/src/client/ios/BreakpadController.h#newcode127 src/client/ios/BreakpadController.h:127: - (void)threadUnsafeSendReportWithConfiguration:(NSDictionary*)configuration Missed this one... Correcting
9 years, 8 months ago #7
qsr
https://breakpad.appspot.com/2764002/diff/1/src/client/mac/sender/uploader.mm File src/client/mac/sender/uploader.mm (right): https://breakpad.appspot.com/2764002/diff/1/src/client/mac/sender/uploader.mm#newcode569 src/client/mac/sender/uploader.mm:569: if (logFileData_) { On 2014/08/26 07:58:51, olivierrobin wrote: > ...
9 years, 8 months ago #8
olivierrobin
https://breakpad.appspot.com/2764002/diff/40003/src/client/ios/Breakpad.mm File src/client/ios/Breakpad.mm (right): https://breakpad.appspot.com/2764002/diff/40003/src/client/ios/Breakpad.mm#newcode826 src/client/ios/Breakpad.mm:826: Breakpad *breakpad = (Breakpad *)ref; On 2014/08/26 08:09:37, qsr ...
9 years, 8 months ago #9
pkl
https://breakpad.appspot.com/2764002/diff/90002/src/client/ios/BreakpadController.h File src/client/ios/BreakpadController.h (right): https://breakpad.appspot.com/2764002/diff/90002/src/client/ios/BreakpadController.h#newcode125 src/client/ios/BreakpadController.h:125: // Sends synchromously the report specified by |configuration|. This ...
9 years, 8 months ago #10
blundell
https://breakpad.appspot.com/2764002/diff/90002/src/client/ios/BreakpadController.h File src/client/ios/BreakpadController.h (right): https://breakpad.appspot.com/2764002/diff/90002/src/client/ios/BreakpadController.h#newcode125 src/client/ios/BreakpadController.h:125: // Sends synchromously the report specified by |configuration|. This ...
9 years, 8 months ago #11
olivierrobin
https://breakpad.appspot.com/2764002/diff/90002/src/client/ios/BreakpadController.h File src/client/ios/BreakpadController.h (right): https://breakpad.appspot.com/2764002/diff/90002/src/client/ios/BreakpadController.h#newcode125 src/client/ios/BreakpadController.h:125: // Sends synchromously the report specified by |configuration|. This ...
9 years, 8 months ago #12
blundell
lgtm https://breakpad.appspot.com/2764002/diff/90002/src/client/mac/sender/uploader.mm File src/client/mac/sender/uploader.mm (right): https://breakpad.appspot.com/2764002/diff/90002/src/client/mac/sender/uploader.mm#newcode565 src/client/mac/sender/uploader.mm:565: fprintf(stderr, "Breakpad Uploader: Error writing request file: %s\n", ...
9 years, 8 months ago #13
pkl
lgtm with comment. https://breakpad.appspot.com/2764002/diff/230001/src/client/mac/sender/uploader.h File src/client/mac/sender/uploader.h (right): https://breakpad.appspot.com/2764002/diff/230001/src/client/mac/sender/uploader.h#newcode85 src/client/mac/sender/uploader.h:85: // This method process the HTTP ...
9 years, 8 months ago #14
qsr
LGTM, but please wait for a high level review of mark before pushing.
9 years, 8 months ago #15
olivierrobin
On 2014/08/26 13:14:48, qsr wrote: > LGTM, but please wait for a high level review ...
9 years, 8 months ago #16
olivierrobin
Had to expose the send delay method to limit the upload rate.
9 years, 8 months ago #17
qsr
https://breakpad.appspot.com/2764002/diff/280001/src/client/ios/BreakpadController.h File src/client/ios/BreakpadController.h (right): https://breakpad.appspot.com/2764002/diff/280001/src/client/ios/BreakpadController.h#newcode134 src/client/ios/BreakpadController.h:134: - (int)threadUnsafeSendDelayWithBreakpadRef:(BreakpadRef)ref; I really do not link adding more ...
9 years, 8 months ago #18
olivierrobin
https://breakpad.appspot.com/2764002/diff/280001/src/client/ios/BreakpadController.h File src/client/ios/BreakpadController.h (right): https://breakpad.appspot.com/2764002/diff/280001/src/client/ios/BreakpadController.h#newcode134 src/client/ios/BreakpadController.h:134: - (int)threadUnsafeSendDelayWithBreakpadRef:(BreakpadRef)ref; On 2014/08/28 08:58:08, qsr wrote: > I ...
9 years, 8 months ago #19
qsr
On 2014/08/28 09:05:44, olivierrobin wrote: > https://breakpad.appspot.com/2764002/diff/280001/src/client/ios/BreakpadController.h > File src/client/ios/BreakpadController.h (right): > > https://breakpad.appspot.com/2764002/diff/280001/src/client/ios/BreakpadController.h#newcode134 > ...
9 years, 8 months ago #20
olivierrobin
On 2014/08/28 09:08:26, qsr wrote: > On 2014/08/28 09:05:44, olivierrobin wrote: > > > https://breakpad.appspot.com/2764002/diff/280001/src/client/ios/BreakpadController.h ...
9 years, 8 months ago #21
qsr
On 2014/08/28 09:50:54, olivierrobin wrote: > On 2014/08/28 09:08:26, qsr wrote: > > On 2014/08/28 ...
9 years, 8 months ago #22
olivierrobin
[getReportConfiguration] and [sendReport] will be two tasks, and it is possible, is sendDelay is 0, ...
9 years, 8 months ago #23
olivierrobin
9 years, 8 months ago #24
qsr
On 2014/08/28 12:32:56, olivierrobin wrote: Not sure to understand, you mean if breakpad is configured ...
9 years, 8 months ago #25
olivierrobin
On 2014/08/28 14:27:00, qsr wrote: > On 2014/08/28 12:32:56, olivierrobin wrote: > > Not sure ...
9 years, 8 months ago #26
olivierrobin
Hi Mark, Could you take a look and validate the new API and behavior introduced ...
9 years, 8 months ago #27
Mark Mentovai
https://breakpad.appspot.com/2764002/diff/410001/src/client/mac/sender/uploader.mm File src/client/mac/sender/uploader.mm (right): https://breakpad.appspot.com/2764002/diff/410001/src/client/mac/sender/uploader.mm#newcode1 src/client/mac/sender/uploader.mm:1: // Copyright (c) 2011, Google Inc. The changes in ...
9 years, 8 months ago #28
olivierrobin
https://breakpad.appspot.com/2764002/diff/410001/src/client/mac/sender/uploader.mm File src/client/mac/sender/uploader.mm (right): https://breakpad.appspot.com/2764002/diff/410001/src/client/mac/sender/uploader.mm#newcode1 src/client/mac/sender/uploader.mm:1: // Copyright (c) 2011, Google Inc. On 2014/08/29 13:57:47, ...
9 years, 8 months ago #29
Mark Mentovai
LG otherwise https://breakpad.appspot.com/2764002/diff/470001/src/client/mac/sender/uploader.mm File src/client/mac/sender/uploader.mm (right): https://breakpad.appspot.com/2764002/diff/470001/src/client/mac/sender/uploader.mm#newcode209 src/client/mac/sender/uploader.mm:209: return readConfigurationData([configFile UTF8String]); Don’t use -UTF8String for ...
9 years, 8 months ago #30
olivierrobin
Done Thank you https://breakpad.appspot.com/2764002/diff/470001/src/client/mac/sender/uploader.mm File src/client/mac/sender/uploader.mm (right): https://breakpad.appspot.com/2764002/diff/470001/src/client/mac/sender/uploader.mm#newcode209 src/client/mac/sender/uploader.mm:209: return readConfigurationData([configFile UTF8String]); On 2014/08/29 14:45:13, ...
9 years, 8 months ago #31
olivierrobin
Thank you. Can someone push it for me ? Thank you
9 years, 8 months ago #32
blundell
Landed as r1368. You'll have to close this issue manually.
9 years, 8 months ago #33
olivierrobin
On 2014/09/01 11:03:42, blundell wrote: > Landed as r1368. You'll have to close this issue ...
9 years, 8 months ago #34
mmandlis
On 2014/09/01 11:06:30, olivierrobin wrote: > On 2014/09/01 11:03:42, blundell wrote: > > Landed as ...
9 years, 8 months ago #35
olivierrobin
Fix submitted in issue 2794002.
9 years, 8 months ago #36
mmandlis
9 years, 8 months ago #37
Message was sent while issue was closed.
On 2014/09/12 07:53:55, olivierrobin wrote:
> Fix submitted in issue 2794002.

Thank you!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted