You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/05/25 20:27:32 UTC

[Bug 61125] New: WarURLConnection always returns 0 from getLastModified() which prevents JSP modifications from triggering recompilation

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

            Bug ID: 61125
           Summary: WarURLConnection always returns 0 from
                    getLastModified() which prevents JSP modifications
                    from triggering recompilation
           Product: Tomcat 8
           Version: 8.5.15
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: awilkinson@pivotal.io
  Target Milestone: ----

When JspCompilationContext is attempting to get the last modified time for a
JSP it gets a URL for it and opens a connection. When this is a war: URL it
gets a WarURLConnection and calls getLastModified(). This method always returns
zero. As a result, a JSP is compiled the first time it is accessed but any
subsequent changes are then ignored, even across a restart of Tomcat (assuming
that the work directory is left intact).

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


[Bug 61125] WarURLConnection always returns 0 from getLastModified() which prevents JSP modifications from triggering recompilation

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61125

--- Comment #2 from Andy Wilkinson <aw...@pivotal.io> ---
As far as I know, this isn't a regression.

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


[Bug 61125] WarURLConnection always returns 0 from getLastModified() which prevents JSP modifications from triggering recompilation

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61125

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
I can reproduce this and I'm working on a fix. Out of interest is this a
regression or a bug you've just noticed?

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


[Bug 61125] WarURLConnection always returns 0 from getLastModified() which prevents JSP modifications from triggering recompilation

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61125

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
Thanks. And thanks for the report.

Fixed in:
- trunk for 9.0.0.M22 onwards
- 8.5.x for 8.5.16 onwards
- 8.0.x for 8.0.45 onwards

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