Bug 169937 - EWS fails to parse_bug_id_from_attachment_page after bugzilla upgrade
Summary: EWS fails to parse_bug_id_from_attachment_page after bugzilla upgrade
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
Keywords: InRadar
Depends on:
Reported: 2017-03-21 17:26 PDT by Aakash Jain
Modified: 2017-03-21 17:46 PDT (History)
4 users (show)

See Also:

Proposed patch (2.59 KB, patch)
2017-03-21 17:32 PDT, Aakash Jain
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2017-03-21 17:26:12 PDT
After bugzilla upgrade, ews fails in parse_bug_id_from_attachment_page() method.

See <rdar://problem/31181859>.
Comment 1 Aakash Jain 2017-03-21 17:32:07 PDT
Created attachment 305052 [details]
Proposed patch

This might not solve all the EWS problem, and we might uncover more problems. But this fix atleast the mentioned problem.
Comment 2 Alexey Proskuryakov 2017-03-21 17:35:44 PDT
Comment on attachment 305052 [details]
Proposed patch

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

> Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py:494
> +        match = re.search("show_bug.cgi\?id=(?P<bug_id>\d+)", str(title))
>          return int(match.group('bug_id'))

Can something be printed to the log if this fails?
Comment 3 Aakash Jain 2017-03-21 17:46:14 PDT
Committed http://trac.webkit.org/r214238

Printed a log statement when no match is found.