Bug 145938 - Revise update-webkit-dependency to use LWP::UserAgent instead of LWP::Simple for better handling of https
Summary: Revise update-webkit-dependency to use LWP::UserAgent instead of LWP::Simple ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-12 14:24 PDT by Brent Fulgham
Modified: 2015-06-12 15:09 PDT (History)
0 users

See Also:


Attachments
Patch (2.51 KB, patch)
2015-06-12 14:28 PDT, Brent Fulgham
no flags Details | Formatted Diff | Diff
Patch (2.35 KB, patch)
2015-06-12 14:50 PDT, Brent Fulgham
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2015-06-12 14:24:19 PDT
Content on the 'developer.apple.com' site recently moved. The LWP::Simple methods being used did not properly respect the redirect status, and started failing.

This patch corrects this problem.
Comment 1 Brent Fulgham 2015-06-12 14:28:18 PDT
Created attachment 254819 [details]
Patch
Comment 2 Brent Fulgham 2015-06-12 14:50:40 PDT
Created attachment 254823 [details]
Patch
Comment 3 Alexey Proskuryakov 2015-06-12 14:57:16 PDT
Comment on attachment 254819 [details]
Patch

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

> Tools/ChangeLog:3
> +        Correct update-webkit-dependency to handle redirects

I don't see any redirect when trying with curl. Maybe something else is wrong.

> Tools/Scripts/update-webkit-dependency:90
> +my $content_type = $response->header('Content-Type');
> +my $document_length = $response->header('Content-Length');
> +my $modified_time = $response->header('Last-Modified'); 
> +my $expires;
> +my $server = $response->header('Server'); 

Are these needed?

> Tools/Scripts/update-webkit-dependency:110
> +        if ($result == 300) {

300 is Multiple Choice.

Brent says that this is debugging code that needs to be removed.
Comment 4 Alexey Proskuryakov 2015-06-12 14:57:42 PDT
Comment on attachment 254823 [details]
Patch

Carrying over r+ from the previous patch.
Comment 5 Brent Fulgham 2015-06-12 15:09:18 PDT
Committed r185522: <http://trac.webkit.org/changeset/185522>