Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4326

Incorrect Last-Modified header for resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.3
    • 2.3.7, 3.0.0-RC1, 2.3-next-M3
    • None
    • None
    • Tomcat 9

    Description

      We conduct an issue that our resources have incorrect header: Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT.

      After investigating the issue, I found that we deploy using Tomcat with a version tag and a path to resources contains special characters (#).

      And the method `getResourceLastModified` can not read the resources, because the URL (file path) contains URL Encoded characters (for OS this is not a valid path) like this: /some-path/tomcat/webapps/v3%23%233.2.1/resources/layout/js/layout.js.

      I created a PR with a solution which solved the issue for us https://github.com/apache/myfaces/pull/90

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            astappiev Oleh Astappiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: