]> source.dussan.org Git - jgit.git/commit
eclipse-ipzilla: Make sure login was successful 37/337/2
authorShawn O. Pearce <spearce@spearce.org>
Thu, 11 Mar 2010 19:19:50 +0000 (11:19 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 11 Mar 2010 23:15:03 +0000 (15:15 -0800)
commit41bc1738a4bbec12406a611b5d9f6ff7669c9431
treeb3ce4f92e24e8da12b6fed7e5852e392fe884340
parent6c64148f666dad0046086b65eb4912dafafe7a20
eclipse-ipzilla: Make sure login was successful

If the login fails due to an invalid username or password, the only
way we can tell this is by looking at the page title and seeing if
the error message "Invalid Username or Password" is present.

If the user made a typo on their password, we shouldn't plow through
and try to run a query.  Doing so returns an HTML login page that
can't be parsed as a CSV file.

Change-Id: Ia6d7f862435a52ae09ebe29c3835bcee3cf73b93
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IPZillaQuery.java