On 12/03/2019 11:45, Jäkel, Guido wrote:
>> -----Original Message-----
>> From: Mark Thomas [mailto:ma...@apache.org]
>> Sent: Tuesday, March 12, 2019 12:51 AM
>> To: users@tomcat.apache.org
>> Subject: Re: Followup2: Changed behaviour of Tomcat 
>> Deployment/Context/Lifecycle Manager concerning symbolic links
> 
>> Looking at the code in ContextConfig.fixDocBase() it looks like it
>> should be possible to switch lines 585 and 587 to use getAbsolutePath()
>> without having too much impact on any performance improvements we may
>> want to consider. That should address the regression. @Guido can you
>> confirm that please?
> 
> 
> Using  getAbsolutePath()  instead of  getPath()  ...
> 
>               File file = new File(docBase);
>               if (!file.isAbsolute()) {
>       -            docBase = (new File(appBase, docBase)).getCanonicalPath();
>       +            docBase = (new File(appBase, docBase)).getAbsolutePath();
>               } else {
>       -            docBase = file.getCanonicalPath();
>       +            docBase = file.getAbsolutePath();
>               }
> 
> also still solve the issue for me.

Good to hear. That change will be in the next 9.0.x and 8.5.x releases.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to