Bug impact: Tomcat doesn't fully autodeploy applications dropped into /var/lib/tomcat6/webapps: it fails to autodeploy the context file into /etc/tomcat6/Catalina/localhost. This results in half-deployed applications and a difficult problem to troubleshoot.
Versions affected: Intrepid (tomcat6 didn't exist before)
Fix in development branch: Was fixed in 6.0.18-0ubuntu4 (see comment 5)
Minimal patch: see comment 6 just above. This will be released as a combined SRU with bug 283852.
TEST CASE:
Download the attached test-deploy.war, then:
$ sudo apt-get install tomcat6
$ sudo cp test-deploy.war /var/lib/tomcat6/webapps/
After a few seconds, you should be able to access http://localhost:8080/test-deploy/
Without the fix, the displayed context parameter value is "null". /etc/tomcat6/Catalina/localhost doesn't exist.
With the fix, the displayed context parameter value is "My Company, Incorporated". An /etc/tomcat6/Catalina/localhost/test-deploy.xml file was automatically created.
Regression potential:
The patch basically creates the Catalina/localhost directories in tomcat6 (rather than waiting for a webapp package to create them) and changes the permissions from root:root 755 to 775 root:tomcat6. This is a targeted and permissive change, so the regression potential is very low.
Intrepid SRU Report
Bug impact: Tomcat doesn't fully autodeploy applications dropped into /var/lib/ tomcat6/ webapps: it fails to autodeploy the context file into /etc/tomcat6/ Catalina/ localhost. This results in half-deployed applications and a difficult problem to troubleshoot.
Versions affected: Intrepid (tomcat6 didn't exist before)
Fix in development branch: Was fixed in 6.0.18-0ubuntu4 (see comment 5)
Minimal patch: see comment 6 just above. This will be released as a combined SRU with bug 283852.
TEST CASE: tomcat6/ webapps/ localhost: 8080/test- deploy/ Catalina/ localhost doesn't exist. Catalina/ localhost/ test-deploy. xml file was automatically created.
Download the attached test-deploy.war, then:
$ sudo apt-get install tomcat6
$ sudo cp test-deploy.war /var/lib/
After a few seconds, you should be able to access http://
Without the fix, the displayed context parameter value is "null". /etc/tomcat6/
With the fix, the displayed context parameter value is "My Company, Incorporated". An /etc/tomcat6/
Regression potential:
The patch basically creates the Catalina/localhost directories in tomcat6 (rather than waiting for a webapp package to create them) and changes the permissions from root:root 755 to 775 root:tomcat6. This is a targeted and permissive change, so the regression potential is very low.