https://issues.apache.org/bugzilla/show_bug.cgi?id=50156
Summary: AccessLogValve.rotate() overwrites the existing file
Product: Tomcat 6
Version: 6.0.29
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=26210)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26210)
patch for AccessLogValve.java
AccessLogValve.rotate() rename the existing log file to something else via JMX.
If you specify "../log.txt" for a new filename, the existing log file is
renamed to "<Tomcat boot directory>/../log.txt".
And, rotate() overwrite other existing files, if tomcat startup user has the
write permission on those files.
For example...
---
Tomcat install directory: /opt/tomcat6
Install & Startup user : tomcat6
Specified new filename : /opt/tomcat6/lib/catalina.jar
---
If this is the case, the access log file overwrites catalina.jar.
I attached the patch file.
Best regards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]