Changeset 53976 in webkit


Ignore:
Timestamp:
Jan 28, 2010 12:12:32 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-28 Joe Mason <jmason@rim.com>

Reviewed by Adam Barth.

Limit login retries to 5
https://bugs.webkit.org/show_bug.cgi?id=34193

  • Scripts/webkitpy/bugzilla.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r53968 r53976  
     12010-01-28  Joe Mason  <jmason@rim.com>
     2
     3        Reviewed by Adam Barth.
     4
     5        Limit login retries to 5
     6        https://bugs.webkit.org/show_bug.cgi?id=34193
     7
     8        * Scripts/webkitpy/bugzilla.py:
     9
    1102010-01-27  Martin Robinson  <mrobinson@webkit.org>
    211
  • trunk/WebKitTools/Scripts/webkitpy/bugzilla.py

    r53733 r53976  
    468468            return
    469469
     470        attempts = 0
    470471        while not self.authenticated:
     472            attempts += 1
    471473            (username, password) = Credentials(
    472474                self.bug_server_host, git_prefix="bugzilla").read_credentials()
     
    484486            # "invalid" assume it's the login failure page.
    485487            if match and re.search("Invalid", match.group(1), re.IGNORECASE):
    486                 log("Bugzilla login failed: %s" % match.group(1))
     488                errorMessage = "Bugzilla login failed: %s" % match.group(1)
     489                # raise an exception only if this was the last attempt
     490                if attempts < 5:
     491                    log(errorMessage)
     492                else:
     493                    raise Exception(errorMessage)
    487494            else:
    488495                self.authenticated = True
Note: See TracChangeset for help on using the changeset viewer.