/[Apache-SVN]
ViewVC logotype

Revision 1851074


Jump to revision: Previous Next
Author: jleroux
Date: Fri Jan 11 16:26:13 2019 UTC (5 years, 3 months ago)
Changed paths: 1
Log Message:
Fixed: Correct behaviour of Autologin cookies
(OFBIZ-10635)

In the method to set the autoLogin cookie, LoginWorker::autoLoginSet,
system fetches the webAppInfo by using the
method ComponentConfig::getWebappInfo. In this method, serverId and
applicationName are passed as arguments.

*WebappInfo webappInfo = ComponentConfig.getWebappInfo((String)
context.getAttribute("_serverId"), UtilHttp.getApplicationName(request));*

If the mount-point of the web app is set as an empty string, then 'root'
will be used as the application name, due to which the object webAppInfo
will come null. If the webAppInfo is null then the autoLogin cookie will
not be created and added to the response object by the system.

Thanks: Aditya for report and Mathieu Lirzin for discussion

Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26