You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (Jira)" <de...@myfaces.apache.org> on 2020/04/11 18:07:00 UTC

[jira] [Resolved] (MYFACES-4326) Incorrect Last-Modified header for resources

     [ https://issues.apache.org/jira/browse/MYFACES-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Andraschko resolved MYFACES-4326.
----------------------------------------
    Resolution: Fixed

> Incorrect Last-Modified header for resources
> --------------------------------------------
>
>                 Key: MYFACES-4326
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4326
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.3
>         Environment: Tomcat 9
>            Reporter: Oleh Astappiev
>            Priority: Major
>             Fix For: 2.3.7, 3.0.0, 2.3-next-M3
>
>
> 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|https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Naming] 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]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)