Commit
59adc93ff6e55e09ca971f71360aadb1fb2c1533
by Claudio Guglielmo
FormBasedLogin: forwarding to login page does not always work
If the requested url contains subfolders, the forwarding to the login page does not work. Reason: the login resources (login.js etc.) are located in the root folder, but if a sub resource returns the login.html, the login resources cannot be loaded because they are addressed relatively (e.g. /subfolder/login.js).
Fixed by remembering the original path on the http session and redirecting after successful login.
Note: normally (if page reloading is sufficient), no session will be created during the login process. The new redirect feature requires a session to store the redirect url, but the session is only used temporarily and will be invalidated after a successful login. So compared to today, the existing regular login process has not changed and behaves as usual, only if the new redirect process is activated a temporary session is created and the regular session is created a little bit earlier in the process (right after invalidation).
Commit
8a127744ca1d4b90b208c7c3080165ede8d21965
by Claudio Guglielmo
FormBasedLogin: redirect to url with special characters does not work
If the url contains special characters the redirecting may fail, e.g. with Safari on os x.
Example: http://localhost:8082/help/Einführung.htm will be redirected to http://localhost:8082/help/Einf%FChrung.htm
%FC is the char ü with ISO 8859.
To make it work it has to be encoded with UTF-8. This needs to be done manually because sendRedirect does not encode. Each part of the url needs to be encoded separately, so that / won't be changed.
Additionally, the query string was missing after redirecting -> it is now saved along with the path info.
Improve processed text when copying rows from table
For each cell, the value is splitted into lines, tabs replaced by blanks to keep structure, trimmed, empty lines removed and joined separated with single newlines.