https://bz.apache.org/bugzilla/show_bug.cgi?id=60351

            Bug ID: 60351
           Summary: WAR unpacking creates META-INF/war-tracker file too
                    early after each unpacked file
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: harry.elfue...@gmail.com
  Target Milestone: ----

WAR unpacking creates META-INF/war-tracker file too early after each unpacked
file. Noticed this when Tomcat was killed while it was unpacking files. It
happily used the partially extracted files, and of course the application did
not work anymore.

https://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/startup/ExpandWar.java

Here you can see that warTracker file is created inside the unpacking loop,
right after each file:

                // Create the warTracker file and align the last modified time
                // with the last modified time of the WAR
                warTracker.createNewFile();
                warTracker.setLastModified(warLastModified);
            }
            success = true;

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to