Wed, 08 Mar 2017 12:42:53 +0100[login-cleanup] Complete javadoc information
Carlos Aristu <carlos.aristu@openbravo.com> [Wed, 08 Mar 2017 12:42:53 +0100] rev 31859
[login-cleanup] Complete javadoc information

Wed, 08 Mar 2017 11:09:38 +0100[login-cleanup] Removed method and variables which are no longer needed
Carlos Aristu <carlos.aristu@openbravo.com> [Wed, 08 Mar 2017 11:09:38 +0100] rev 31858
[login-cleanup] Removed method and variables which are no longer needed

Wed, 08 Mar 2017 11:03:37 +0100[login-cleanup] Merge with pi
Carlos Aristu <carlos.aristu@openbravo.com> [Wed, 08 Mar 2017 11:03:37 +0100] rev 31857
[login-cleanup] Merge with pi

Wed, 08 Mar 2017 10:59:02 +0100[login-cleanup] Avoid redirection to /security/Menu.html on login
Carlos Aristu <carlos.aristu@openbravo.com> [Wed, 08 Mar 2017 10:59:02 +0100] rev 31856
[login-cleanup] Avoid redirection to /security/Menu.html on login

After login the LoginHandler does not redirect to /security/Menu.html anymore. Before this change, the StartPage preference was calculated after that redirection. Now the preference is calculated in the LoginHandler itself.

Together with this, the Preferences API has been increased with the ability to provide the default filters (active, readable clients and readable orgs) to look for the desired preference. This was needed because the retrieval of the StartPage preference in the LoginHandler was being done with the system user context.

Tue, 07 Mar 2017 13:10:53 +0100[login-cleanup] Keep redirect when command is FORCE_NAMED_USER
Carlos Aristu <carlos.aristu@openbravo.com> [Tue, 07 Mar 2017 13:10:53 +0100] rev 31855
[login-cleanup] Keep redirect when command is FORCE_NAMED_USER

Do the redirect if the command is FORCE_NAMED_USER. This means that we are doing a login with a user that already has an existing session active having a license that prevents multiple sessions for the same user.
In this case, we perform a redirect directly as at this point the login response has already been handled in the client.

Tue, 07 Mar 2017 10:49:54 +0100[login-cleanup] Removed redirection as login result
Carlos Aristu <carlos.aristu@openbravo.com> [Tue, 07 Mar 2017 10:49:54 +0100] rev 31854
[login-cleanup] Removed redirection as login result

Since now always a JSON object is returned with the login result

Tue, 07 Mar 2017 08:42:00 +0100[login-cleanup] Prevent login failure when entering an empty user name
Carlos Aristu <carlos.aristu@openbravo.com> [Tue, 07 Mar 2017 08:42:00 +0100] rev 31853
[login-cleanup] Prevent login failure when entering an empty user name

Now after entering an empty user name, the LoginHandler returns an error message which is captured property in the client.

Mon, 06 Mar 2017 18:34:45 +0100[login-cleanup] Removed redirect to /security/Menu.html after login
Carlos Aristu <carlos.aristu@openbravo.com> [Mon, 06 Mar 2017 18:34:45 +0100] rev 31852
[login-cleanup] Removed redirect to /security/Menu.html after login

Mon, 06 Mar 2017 16:40:57 +0100Removed redirect to Log.html after logout
Carlos Aristu <carlos.aristu@openbravo.com> [Mon, 06 Mar 2017 16:40:57 +0100] rev 31851
Removed redirect to Log.html after logout

To validate this changeset, it has been checked that the login page continues being shown properly in the followin scenarios:

1) After a logout
2) When the session is expired, and a manual window (old 2.50 style) is opened.
3) When the session is expired, and a button is clicked on a process pop-up (for example, the Order Post process).
4) When the session is expired, and the alert ping is fired.

Fri, 03 Mar 2017 18:09:30 +0100[login-cleanup] Updated copyright year
Carlos Aristu <carlos.aristu@openbravo.com> [Fri, 03 Mar 2017 18:09:30 +0100] rev 31850
[login-cleanup] Updated copyright year