Bug 57473

Summary: WarWatcher does not throw any warning if permissions are broken
Product: Tomcat 8 Reporter: Théo Chamley <theo.ch>
Component: ClusterAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement CC: theo.ch
Priority: P2    
Version: 8.0.x-trunk   
Target Milestone: ----   
Hardware: All   
OS: All   
Attachments: WarWatcher patch for improved checks and logging

Description Théo Chamley 2015-01-21 12:35:32 UTC
Created attachment 32386 [details]
WarWatcher patch for improved checks and logging

This is a follow-up to the "FarmWarDeployer not checking watchDir" thread on tomcat-users.

In the FarmWarDelpoyer and WarWatcher components, if the permissions of the watchDir are broken (i.e 644 instead of 755), Tomcat does not inform the user that something is wrong, with no log whatsoever after putting a war file in the watchDir.

A patch by Christopher Schultz is attached that adds some checking and logging to WarWatcher to allow an easier debugging.
Comment 1 Christopher Schultz 2015-01-21 15:32:25 UTC
Fixed in trunk in r1653550.
Back-ported to Tomcat 8 in r1653552. Will be in Tomcat 8.0.18.
Back-ported to Tomcat 7 in r1653559. Will be in Tomcat 7.0.58.