Description of problem: Failed to Sign In as a Fedora user Version-Release number of selected component (if applicable): Zanata version 2.1-SNAPSHOT (20121112-1056) and Zanata version 2.0.3-SNAPSHOT (20121116-0019) How reproducible: Sometime (may be a cache issue) More likely to reproduce with a newly opened browser Steps to Reproduce: 0. Suppose you use firefox. 1. Close all firefox instances 2. Open a firefox instance. 3. Sign in as a Fedora user in an open ID enabled Zanata server. Actual results: Web UI Error message: Login failed No server log reflect this error. Expected results: Either "Login to the Fedora Accounts System" or "Approve OpenID Request" web page is invoked. Additional info: Temporary workaround: Try sign in with different account name (fake one does not matter), then sign in with your username.
This is caused by a very particular scenario where a login attempt fails initially with internal authentication, followed by another attempt to login with the same user name but using any open id authentication. Since open id does not care for any provided password, Zanata assumes that because the user name is the same and the password has not changed since the last attempt, that the login must be invalidated. Other scenarios might cause the issue to be seen, like enabling an account and subsequently re-trying to log in. The solution for this is to reset the account credentials after every failed login attempt. See: https://github.com/zanata/zanata/commit/4eb4911f5254bce9b6565512f23f3eb25df2974c
Tested with Zanata version 2.0.3-SNAPSHOT (20121128-1507) Problem is not fixed. However. Zanata version 2.1-SNAPSHOT (20121128-1048) is fixed. Please apply the fixed to release branch.
Back-ported this fix to release branch (2.0.x). See: https://github.com/zanata/zanata/commit/4fcdf63cd515ab52a2f8928bc3df46cdb2684712
VERIFIED with Zanata version 2.0.3-SNAPSHOT (20121129-1430)