Re: Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-11 Thread Jacques Le Roux
Fixed with OFBIZ-10635 Mathieu, I fear you will have to update your patch, let's see... Jacques Le 11/01/2019 à 11:48, Jacques Le Roux a écrit : Hi Deepak, This works: Index: framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java

Re: Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-11 Thread Jacques Le Roux
Actually forget it, I needed that in a 1st attempt. With the patch below it's almost OK OOTB, unrelated to this issue: OFBIZ-10789 "Webpos key buttons don't show when using an empty or having a slash inside mountpoint name" So using an empty mountpoint name is OK as long as you don't use the

Re: Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-11 Thread Jacques Le Roux
Forgot to say, for that to work OOTB you need to set stats.persist.visit=ftrue stats.persist.visitor=ftrue Le 11/01/2019 à 11:48, Jacques Le Roux a écrit : Hi Deepak, This works: Index: framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java

Re: Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-11 Thread Jacques Le Roux
Hi Deepak, This works: Index: framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java === --- framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java (révision 1851027) +++

Re: Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-10 Thread Mathieu Lirzin
Hello, Deepak Nigam writes: > Thank you, Jacques, for looking into it. > > In my case, there is only one webapp with the empty mount point and I want > to use the autoLogin cookie. But the code is written in such a way that in > case of empty mount point 'webappInfo' object is coming null due

Re: Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-10 Thread Deepak Nigam
Thank you, Jacques, for looking into it. In my case, there is only one webapp with the empty mount point and I want to use the autoLogin cookie. But the code is written in such a way that in case of empty mount point 'webappInfo' object is coming null due to which autoLogin cookie is not getting

Re: Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-10 Thread Jacques Le Roux
Hi Deepak, It's not a problem if we create an autologin cookie even if it's not used, just unclean. So in this case we could force the same cookie values but the name and path to "root". But what happens if we have several empty mountpoints, is that a problem? I guess if we deploy on root

Re: Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-10 Thread Jacques Le Roux
Thanks Deepak, I'll have a look ASAP Jadques Le 10/01/2019 à 09:26, Deepak Nigam a écrit : Hello all, 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

Unable to set the autoLogin Cookie when mount-point is set as an empty string

2019-01-10 Thread Deepak Nigam
Hello all, 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 the arguments. *WebappInfo webappInfo =