Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016775Openbravo ERPA. Platformpublic2011-04-12 17:272011-05-31 09:44
shuehner 
iperdomo 
normalminorhave not tried
closedfixed 
5
 
3.0MP0 
Core
No
0016775: index.jsp code related to Authentication manager not having same behavior then copy in HSAS
When code in index.jsp does throw an exception if the configured authentication manager cannot be found.

The central code in HSAS, does log an error to the log and transparently (for the user) uses the DefaultAuthenticationManager instead of breaking the login.

Attached patch add the same error handling and also improves the error message in HSAS to more specifically point to the problem.
No tags attached.
diff 16775.diff (1,912) 2011-04-12 17:28
https://issues.openbravo.com/file_download.php?file_id=3865&type=bug
Issue History
2011-04-12 17:27shuehnerNew Issue
2011-04-12 17:27shuehnerAssigned To => alostale
2011-04-12 17:27shuehnerModules => Core
2011-04-12 17:28shuehnerFile Added: 16775.diff
2011-04-12 17:28shuehnerAssigned Toalostale => iperdomo
2011-04-12 18:35shuehnerNote Added: 0035871
2011-05-02 10:47alostaleStatusnew => scheduled
2011-05-05 17:46dmitry_mezentsevNote Added: 0036418
2011-05-05 17:46dmitry_mezentsevTarget Version3.0RC7 => 3.0MP0
2011-05-27 17:45hgbotCheckin
2011-05-27 17:45hgbotNote Added: 0037677
2011-05-27 17:45hgbotStatusscheduled => resolved
2011-05-27 17:45hgbotResolutionopen => fixed
2011-05-27 17:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3bf5295a7f03f8de258c51e9e636e85d203a0a97 [^]
2011-05-30 11:50iperdomoNote Added: 0037708
2011-05-30 11:50iperdomoStatusresolved => closed
2011-05-31 09:44hudsonbotCheckin
2011-05-31 09:44hudsonbotNote Added: 0037787

Notes
(0035871)
shuehner   
2011-04-12 18:35   
Note: even with that patch behavior is not optimal. HSAS code does log an error is auth-manager cannot be loaded. But that happen only after login using builtin classic login page.

We should check if we can log similar error directly from index.jsp or centralize both code-copies.
(0036418)
dmitry_mezentsev   
2011-05-05 17:46   
Does not fit RC7.
(0037677)
hgbot   
2011-05-27 17:45   
Repository: erp/devel/pi
Changeset: 3bf5295a7f03f8de258c51e9e636e85d203a0a97
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Fri May 27 17:45:12 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3bf5295a7f03f8de258c51e9e636e85d203a0a97 [^]

Fixed 16775: Improve error handling if defined authentication.manager is missing
In case the defined authentication.manager can't be loaded log an error message
and use the default one instead of crashing with ClassNotFoundException.
Also improve error message in that case pointing to config option in config file

---
M src/index.jsp
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0037708)
iperdomo   
2011-05-30 11:50   
Changes made by Stefan.
Tested in pi @ rev b1c830dd5ee0
(0037787)
hudsonbot   
2011-05-31 09:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ea275e03a164 [^]

Maturity status: Test