VFSUtils.unzip() does not preserve file modified time

Solution Unverified - Updated -

Issue

  • Unzip does not set the last-modified time on the files it creates to that of the original ZipEntries, therefore they default to their creation time. This causes problems for JBAS, where web clients will always be forced to re-download files (and not use their cache) whenever the server is restarted or application is redeployed.

  • HTTP Last-modified timestamp for static files are different to those in .war

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.