Bug 117256 - [curl] Add implementation for HTTP PUT method
Summary: [curl] Add implementation for HTTP PUT method
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 117300
  Show dependency treegraph
 
Reported: 2013-06-05 07:47 PDT by Peter Gal
Modified: 2013-06-13 06:59 PDT (History)
3 users (show)

See Also:


Attachments
proposed implementation (6.13 KB, patch)
2013-06-05 07:49 PDT, Peter Gal
no flags Details | Formatted Diff | Diff
stylefixed implementation (6.15 KB, patch)
2013-06-05 07:55 PDT, Peter Gal
bfulgham: review-
Details | Formatted Diff | Diff
patch with fixes (5.91 KB, patch)
2013-06-05 15:12 PDT, Peter Gal
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gal 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.
Comment 1 Peter Gal 2013-06-05 07:49:14 PDT
Created attachment 203850 [details]
proposed implementation
Comment 2 WebKit Commit Bot 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.
Comment 3 Peter Gal 2013-06-05 07:55:12 PDT
Created attachment 203852 [details]
stylefixed implementation
Comment 4 Brent Fulgham 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.
Comment 5 Peter Gal 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.
Comment 6 Peter Gal 2013-06-05 15:12:46 PDT
Created attachment 203885 [details]
patch with fixes

This patch should include the requested changes.
Comment 7 Brent Fulgham 2013-06-05 21:07:35 PDT
Comment on attachment 203885 [details]
patch with fixes

Looks great! r=me.
Comment 8 WebKit Commit Bot 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>
Comment 9 WebKit Commit Bot 2013-06-05 21:28:06 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Balazs Kelemen 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.
Comment 11 Peter Gal 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.
Comment 12 Peter Gal 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"