Bug 26913 - bugzilla-tool needs to handle login failure
Summary: bugzilla-tool needs to handle login failure
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 18:27 PDT by Eric Seidel (no email)
Modified: 2009-07-02 16:53 PDT (History)
2 users (show)

See Also:


Attachments
patch (2.34 KB, patch)
2009-07-02 16:24 PDT, Eric Seidel (no email)
levin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-07-01 18:27:00 PDT
bugzilla-tool needs to handle login failure

Right now bugzilla-tool will probably silently fail if you type your bugzilla credentials wrong.

Need to fix that.  The offending code can be found in Bugzilla.authenticate()
Comment 1 Eric Seidel (no email) 2009-07-02 16:24:36 PDT
Created attachment 32204 [details]
patch
Comment 2 Eric Seidel (no email) 2009-07-02 16:27:17 PDT
Hopefully this will solve Ojan's issue with the tool.  It was failing silently for him.  I confirmed (when fixing this) that failing to authenticate would cause silent failure.
Comment 3 David Levin 2009-07-02 16:42:35 PDT
Comment on attachment 32204 [details]
patch


> diff --git a/WebKitTools/Scripts/modules/bugzilla.py b/WebKitTools/Scripts/modules/bugzilla.py
> +        match = re.search("<title>(.+)</title>", response.read())

You could do a non-greedy match here like this "<title>(.+?)</title>" (which would be more typical for grabbing the context of just one tag) but it isn't necessary here.
Comment 4 Eric Seidel (no email) 2009-07-02 16:49:39 PDT
Yeah, I wondered if I shouldn't make it non-greedy.  Will fix and land.
Comment 5 Eric Seidel (no email) 2009-07-02 16:53:22 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebKitTools/ChangeLog
	M	WebKitTools/Scripts/modules/bugzilla.py
	M	WebKitTools/Scripts/modules/scm.py
Committed r45507
	M	WebCore/editing/TextIterator.cpp
	M	WebCore/ChangeLog
r45506 = 55478c55c76eed28de6cfeca788a16c4604e8a02 (trunk)
	M	WebKitTools/ChangeLog
	M	WebKitTools/Scripts/modules/bugzilla.py
	M	WebKitTools/Scripts/modules/scm.py
r45507 = fad7ccb51023dad4d4b09407360f769d77de38df (trunk)
First, rewinding head to replay your work on top of it...
Nothing to do.
http://trac.webkit.org/changeset/45507
Comment 6 Eric Seidel (no email) 2009-07-02 16:53:49 PDT
Ojan: please give the tool another try when you get a chance. :)