[Bug 64089] Resource paths resolve symlinks

2020-03-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #15 from Marvin Fröhlich --- If you can, please delete today's comments here (except for the first one) to avoid confusion for others. -- You are receiving this mail because: You are the assignee for the bug. -

[Bug 64089] Resource paths resolve symlinks

2020-03-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 Marvin Fröhlich changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug 64089] Resource paths resolve symlinks

2020-03-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #13 from Marvin Fröhlich --- Sure. This one is for the variant with only "${catalina.base}/foo/bar/myentity.xml" java.net.MalformedURLException: no protocol: ${catalina.base}/foo/bar/myentity.xml at java.base/java.net.URL.(

[Bug 64089] Resource paths resolve symlinks

2020-03-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #12 from Mark Thomas --- I'll take a look. Meanwhile, can you provide the full stack trace please. -- You are receiving this mail because: You are the assignee for the bug. -

[Bug 64089] Resource paths resolve symlinks

2020-03-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #11 from Marvin Fröhlich --- I also tried which led to: java.io.FileNotFoundException: ${catalina.base}/foo/bar/myentity.xml (Datei oder Verzeichnis nicht gefunden) -- You are receiving this mail because: You are the assignee f

[Bug 64089] Resource paths resolve symlinks

2020-03-03 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 Marvin Fröhlich changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug 64089] Resource paths resolve symlinks

2020-03-02 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #9 from Marvin Fröhlich --- Wow, that was quick. Unfortunately I missed the notification. Sorry for that. This solution is perfect. Thanks a lot. -- You are receiving this mail because: You are the assignee for the bug. -

[Bug 64089] Resource paths resolve symlinks

2020-01-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 64089] Resource paths resolve symlinks

2020-01-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #7 from Mark Thomas --- Glad we are thinking in the same direction. The EntityResolver isn't currently configurable. I'll consider that option as well but adding support for ${...} looks like the simplest solution at the moment. -

[Bug 64089] Resource paths resolve symlinks

2020-01-29 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #6 from Marvin Fröhlich --- Yes, I was about to suggest that. I was thinking about using ${CATALINA_BASE} as part of the import path. So, yes, that would help a lot. Is it possible by the way to specify a custom entity resolver, w

[Bug 64089] Resource paths resolve symlinks

2020-01-28 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #5 from Mark Thomas --- Would it help if Tomcat added ${...} property replacement support so you could do something like: ## ]> ## And then you could add property.containing.correct.path=/

[Bug 64089] Resource paths resolve symlinks

2020-01-28 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 Steve Sanders changed: What|Removed |Added CC||stevesander...@gmail.com -- You are r

[Bug 64089] Resource paths resolve symlinks

2020-01-27 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #4 from Mark Thomas --- Dealing with this first. The behaviour on Linux and Windows is the same. There is no platform specific code in Tomcat's resource handling. Junctions != symbolic links and the JRE treats them differently. Unf

[Bug 64089] Resource paths resolve symlinks

2020-01-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #3 from Marvin Fröhlich --- How about the difference between Linux and Windows? Shouldn't this fail on Windows, too, if it does on Linux? Or vice versa, work on both? -- You are receiving this mail because: You are the assignee fo

[Bug 64089] Resource paths resolve symlinks

2020-01-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #2 from Marvin Fröhlich --- Hi Mark, thanks a lot for taking a look at this. What a pity, that this is considered correct behavior. Couldn't this be configurable like allowLinking? I mean, it may be correct for many, but not for a

[Bug 64089] Resource paths resolve symlinks

2020-01-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64089 --- Comment #1 from Mark Thomas --- I'm afraid I am going to take a different view. The behaviour you were relying on was a bug and, now that bug has been fixed, the behaviour has changed. For reference the change was as a result of this thre