ICEfaces
  1. ICEfaces
  2. ICE-10654

ace:dynamicResource - fileName and mimeType issues

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-4.0.0.GA
    • Fix Version/s: 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P1
    • Support Case References:
    • Affects:
      Compatibility/Configuration
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      For Issue #2: In debugging this issue with an isolated test case I was unable to reproduce the issue. I found that the major different was that my welcome page was defined as faces/index.xhtml, where as the Showcase and customer sample does not.

      In my sample it hovering over the download link had the following URL:
       - http://localhost:8080/Case13396Example/faces/javax.faces.resource/78f7b9ba
      Compared to (notice the missing /faces/ in the url):
       - http://localhost:8080/Case13396Example/javax.faces.resource/78f7b9ba.jsf

      Having my sample start with the /faces/ servlet mapping allowed the resources to not have the .jsf extension added.
       
      Show
      For Issue #2: In debugging this issue with an isolated test case I was unable to reproduce the issue. I found that the major different was that my welcome page was defined as faces/index.xhtml, where as the Showcase and customer sample does not. In my sample it hovering over the download link had the following URL:  - http://localhost:8080/Case13396Example/faces/javax.faces.resource/78f7b9ba Compared to (notice the missing /faces/ in the url):  - http://localhost:8080/Case13396Example/javax.faces.resource/78f7b9ba.jsf Having my sample start with the /faces/ servlet mapping allowed the resources to not have the .jsf extension added.  

      Description

      Two issues have been found with the ace:dynamicResource component. These issues can be reproduced/demonstrated with the Showcase demo.

      Issue #1: Setting the fileName attribute has no effect on the resulting file. For example the Showcase demo uses fileName="icemobile.pdf". The resulting file is 7c8f5d0a.jsf.

      Issue #2: Somewhat related to above, when downloading the file it has a .jsf file extension added to the resource. In some cases this can cause issues as it is a PDF file and not a JSF page. It seems like the resource is being processed by the Faces Servlet as a page and not a file.

        Activity

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: