| Summary: | Jetty deploys new version of WAR incorrectly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Mark Phippard <markphip> | ||||
| Component: | server | Assignee: | Greg Wilkins <gregw> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | blocker | ||||||
| Priority: | P3 | CC: | jesse.mcconnell, jetty-inbox | ||||
| Version: | 7.0.2 | ||||||
| Target Milestone: | 7.1.x | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Mark Phippard
If you have any questions about the jetty.xml we are using, you can view it here: https://ctf.open.collab.net/integration/viewvc/viewvc.cgi/trunk/console/svn-server/appserver/etc/jetty.xml?revision=1271&root=svnedge&system=exsy1005&view=markup http://bit.ly/9nZkbI Ah! Strange that we've never had this reported before... seams so obvious now that you mention it! We will get it fixed for the next release. Created attachment 179072 [details]
Small change to webapp unpack logic to fully remove old folder
This patch fully clears the unpacked webapp location prior to extracting a newer version. This is particularly needed if the new WAR file has deletions (such as updated lib jars with new version names).
The existing logic uses File.delete() to remove the old exploded dir, but this will silently fail if the folder has any content. The patch instead uses org.eclipse.jetty.util.IO.delete(), which makes recursive deletes of all child elements.
We applied this patch to our 7.0.2 version, rebuilt it and confirm that it resolves our problem. thanks for the patch. Applied in r2284 |