Author: markt
Date: Fri May 26 11:31:46 2017
New Revision: 1796275
URL: http://svn.apache.org/viewvc?rev=1796275&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=61125
Ensure that WarURLConnection returns the correct value for calls to
getLastModified() as this is required for the correct detection of JSP
modifications when the JSP is packaged in a WAR file.
Modified:
tomcat/trunk/java/org/apache/catalina/webresources/war/WarURLConnection.java
tomcat/trunk/webapps/docs/changelog.xml
Modified:
tomcat/trunk/java/org/apache/catalina/webresources/war/WarURLConnection.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/webresources/war/WarURLConnection.java?rev=1796275&r1=1796274&r2=1796275&view=diff
==============================================================================
---
tomcat/trunk/java/org/apache/catalina/webresources/war/WarURLConnection.java
(original)
+++
tomcat/trunk/java/org/apache/catalina/webresources/war/WarURLConnection.java
Fri May 26 11:31:46 2017
@@ -57,4 +57,10 @@ public class WarURLConnection extends UR
public Permission getPermission() throws IOException {
return wrappedJarUrlConnection.getPermission();
}
+
+
+ @Override
+ public long getLastModified() {
+ return wrappedJarUrlConnection.getLastModified();
+ }
}
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1796275&r1=1796274&r2=1796275&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Fri May 26 11:31:46 2017
@@ -65,6 +65,12 @@
Update the Servlet 4.0 implementation to add support for setting
trailer fields for HTTP responses. (markt)
</update>
+ <fix>
+ <bug>61125</bug>: Ensure that <code>WarURLConnection</code> returns the
+ correct value for calls to <code>getLastModified()</code> as this is
+ required for the correct detection of JSP modifications when the JSP is
+ packaged in a WAR file. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]