Bug 134340 - curl: Improve errors by including the domain
Summary: curl: Improve errors by including the domain
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 117300
  Show dependency treegraph
 
Reported: 2014-06-26 00:34 PDT by cand
Modified: 2017-02-24 17:11 PST (History)
9 users (show)

See Also:


Attachments
Improve curl resourceerrors (1.71 KB, patch)
2014-06-26 00:35 PDT, cand
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2 (623.58 KB, application/zip)
2014-06-26 01:40 PDT, Build Bot
no flags Details
Patch (2.98 KB, patch)
2017-02-23 16:26 PST, Basuke Suzuki
achristensen: review-
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.29 MB, application/zip)
2017-02-23 17:16 PST, Build Bot
no flags Details
Patch (2.43 KB, patch)
2017-02-24 12:12 PST, Basuke Suzuki
no flags Details | Formatted Diff | Diff
Patch (2.48 KB, patch)
2017-02-24 14:32 PST, Basuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cand 2014-06-26 00:34:27 PDT
The domain field in ResourceError was empty before this. Fill it properly.
Comment 1 cand 2014-06-26 00:35:21 PDT
Created attachment 233890 [details]
Improve curl resourceerrors
Comment 2 Build Bot 2014-06-26 01:40:13 PDT
Comment on attachment 233890 [details]
Improve curl resourceerrors

Attachment 233890 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5540800146440192

New failing tests:
media/W3C/video/src/src_reflects_attribute_not_source_elements.html
Comment 3 Build Bot 2014-06-26 01:40:16 PDT
Created attachment 233894 [details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-11  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 4 Peter Gal 2014-07-01 01:01:49 PDT
Comment on attachment 233890 [details]
Improve curl resourceerrors

View in context: https://bugs.webkit.org/attachment.cgi?id=233890&action=review

This patch doesn't have a changelog. Also please mark patches with r? to be reviewed.

> Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:703
> +            URL tmpurl(URL(), url);

The tmpurl name is not really descriptive, maybe currentUrl?

> Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:928
> +        URL tmpurl(URL(), handle->m_url);

ditto.
Comment 5 Basuke Suzuki 2017-02-23 16:26:30 PST
Created attachment 302606 [details]
Patch

Added error domain as "CurlErrorDomain" for ResourceErrors created while curl handling. With the conversation with Alex on the #webkit, it should be the string indicating the source of the error, not the domain name of the connection. Url information is passed explicitly in anyway.
Comment 6 Build Bot 2017-02-23 17:16:03 PST
Comment on attachment 302606 [details]
Patch

Attachment 302606 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/3181933

New failing tests:
media/modern-media-controls/volume-down-support/volume-down-support.html
Comment 7 Build Bot 2017-02-23 17:16:07 PST
Created attachment 302614 [details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 8 Alex Christensen 2017-02-24 01:00:25 PST
Comment on attachment 302606 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=302606&action=review

> Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:723
> +                ResourceError resourceError(AtomicString(errorDomainCurl), msg->data.result, url, String(curl_easy_strerror(msg->data.result)));

ASCIILiteral

> Source/WebCore/platform/network/curl/ResourceHandleManager.h:105
> +extern const char* const errorDomainCurl;

This shouldn't be necessary.
Comment 9 Basuke Suzuki 2017-02-24 12:12:02 PST
Created attachment 302678 [details]
Patch

Fixed based on Alex review.
Comment 10 WebKit Commit Bot 2017-02-24 14:24:59 PST
Attachment 302678 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Basuke Suzuki 2017-02-24 14:32:29 PST
Created attachment 302691 [details]
Patch
Comment 12 WebKit Commit Bot 2017-02-24 17:10:39 PST
Comment on attachment 302691 [details]
Patch

Clearing flags on attachment: 302691

Committed r212981: <http://trac.webkit.org/changeset/212981>
Comment 13 WebKit Commit Bot 2017-02-24 17:11:26 PST
All reviewed patches have been landed.  Closing bug.