[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-08-21 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 Mark Thomas changed: What|Removed |Added Resolution|--- |FIXED

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #10 from Mark Thomas --- A slightly bigger hint: JULI cannot have any external dependencies. The "Does this file exist?" test needs to happen in a privileged block. That privileged block needs to be located in a

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #9 from Coty Sutherland --- I've been meaning to circle back to this (and a few others...) but haven't been able to make time just yet. I do recall being a bit confused by your last hint because I couldn't see

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #8 from Mark Thomas --- Coty, I have a patch for this but I thought you might want to figure this out for yourself. If you want another hint (or just want me to apply my patch), let me know. -- You are receiving

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-06-26 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #7 from Mark Thomas --- There is a way to do this. Hint: Take a look at org.apache.juli.WebappProperties and how it is used. -- You are receiving this mail because: You are the assignee for the bug.

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-06-26 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #6 from Mark Thomas --- It fails because the call originates in JULI and JULI doesn't have permissions to read the file. All the Privileged block does is stop the security manager also checking that all of the

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-06-26 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #5 from Coty Sutherland --- Created attachment 35077 --> https://bz.apache.org/bugzilla/attachment.cgi?id=35077=edit First attempt Here's my first attempt at checking whether or not the file exists before

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-06-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #4 from Coty Sutherland --- (In reply to Mark Thomas from comment #2) > I was thinking add a privileged block that tested if the file existed and > don't trigger the warning if it doesn't. Note I haven't dug

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-06-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #3 from Coty Sutherland --- (In reply to Konstantin Kolinko from comment #1) > 1. From your logs, you are running Tomcat 8.5.15. I am changing the Version > field to match that. I tested with 8.5.x too,

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-06-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 --- Comment #2 from Mark Thomas --- I was thinking add a privileged block that tested if the file existed and don't trigger the warning if it doesn't. Note I haven't dug into the code to see hwo easy this would be yet. --

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-06-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 Konstantin Kolinko changed: What|Removed |Added Version|8.5.x-trunk |8.5.15

[Bug 61210] When using the Security Manager, Tomcat prints warning about a non-existent file

2017-06-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61210 Coty Sutherland changed: What|Removed |Added Component|Util|JULI -- You