Bug 57473 - WarWatcher does not throw any warning if permissions are broken
Summary: WarWatcher does not throw any warning if permissions are broken
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Cluster (show other bugs)
Version: 8.0.x-trunk
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-21 12:35 UTC by Théo Chamley
Modified: 2015-01-21 15:32 UTC (History)
1 user (show)



Attachments
WarWatcher patch for improved checks and logging (3.61 KB, text/plain)
2015-01-21 12:35 UTC, Théo Chamley
Details

Note You need to log in before you can comment on or make changes to this bug.
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.