RESOLVED FIXED Bug 117256
[curl] Add implementation for HTTP PUT method
https://bugs.webkit.org/show_bug.cgi?id=117256
Summary [curl] Add implementation for HTTP PUT method
Peter Gal
Reported 2013-06-05 07:47:56 PDT
Currently it is not possible to issue PUT request whit the curl network backend. The function is there but it has only a notImplemented() line.
Attachments
proposed implementation (6.13 KB, patch)
2013-06-05 07:49 PDT, Peter Gal
no flags
stylefixed implementation (6.15 KB, patch)
2013-06-05 07:55 PDT, Peter Gal
bfulgham: review-
patch with fixes (5.91 KB, patch)
2013-06-05 15:12 PDT, Peter Gal
no flags
Peter Gal
Comment 1 2013-06-05 07:49:14 PDT
Created attachment 203850 [details] proposed implementation
WebKit Commit Bot
Comment 2 2013-06-05 07:51:08 PDT
Attachment 203850 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/platform/network/curl/ResourceHandleManager.cpp']" exit_code: 1 Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:546: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:548: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:589: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Source/WebCore/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 4 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Peter Gal
Comment 3 2013-06-05 07:55:12 PDT
Created attachment 203852 [details] stylefixed implementation
Brent Fulgham
Comment 4 2013-06-05 14:23:54 PDT
Comment on attachment 203852 [details] stylefixed implementation View in context: https://bugs.webkit.org/attachment.cgi?id=203852&action=review Looks very good. I had a couple of things I'd like you to cleanup before we land. Thanks! > Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:484 > + */ We don't usually add header comments like these. We prefer to have the function/method name describe what the method does. > Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:556 > + */ Comment is unecessary > Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:574 > + */ Comment is unecessary > Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:586 > + Vector<FormDataElement> elements = job->firstRequest().httpBody()->elements(); I don't think this Vector is needed.
Peter Gal
Comment 5 2013-06-05 15:01:58 PDT
(In reply to comment #4) > (From update of attachment 203852 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=203852&action=review > > Looks very good. I had a couple of things I'd like you to cleanup before we land. Thanks! > > > Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:484 > > + */ > > We don't usually add header comments like these. We prefer to have the function/method name describe what the method does. > > > Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:556 > > + */ > > Comment is unecessary > > > Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:574 > > + */ > > Comment is unecessary Okay, will remove these. > > > Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:586 > > + Vector<FormDataElement> elements = job->firstRequest().httpBody()->elements(); > > I don't think this Vector is needed. Yeah that's true, I've missed it sorry. I'll update the patch in a few minutes.
Peter Gal
Comment 6 2013-06-05 15:12:46 PDT
Created attachment 203885 [details] patch with fixes This patch should include the requested changes.
Brent Fulgham
Comment 7 2013-06-05 21:07:35 PDT
Comment on attachment 203885 [details] patch with fixes Looks great! r=me.
WebKit Commit Bot
Comment 8 2013-06-05 21:28:04 PDT
Comment on attachment 203885 [details] patch with fixes Clearing flags on attachment: 203885 Committed r151255: <http://trac.webkit.org/changeset/151255>
WebKit Commit Bot
Comment 9 2013-06-05 21:28:06 PDT
All reviewed patches have been landed. Closing bug.
Balazs Kelemen
Comment 10 2013-06-06 04:07:19 PDT
Do we have a master bug for the ongoing work of getting the curl backend alive? It would be useful.
Peter Gal
Comment 11 2013-06-06 04:21:05 PDT
(In reply to comment #10) > Do we have a master bug for the ongoing work of getting the curl backend alive? It would be useful. I didn't created a bug for it and I don't remember seeing it. So I'll create one and will it for the upcoming curl fixes.
Peter Gal
Comment 12 2013-06-06 04:21:42 PDT
(In reply to comment #11) > (In reply to comment #10) > > Do we have a master bug for the ongoing work of getting the curl backend alive? It would be useful. > > I didn't created a bug for it and I don't remember seeing it. So I'll create one and will it for the upcoming curl fixes. "will it" -> "will use it"
Note You need to log in before you can comment on or make changes to this bug.