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

Generate Proper Resource Paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.14, 2.3.10, 2.3-next-M7, 3.0.2, 4.0.0-RC2
    • 2.3.11, 3.0.3, 2.3-next-M8, 4.0.0-RC3
    • None
    • None

    Description

      The TCK tested incorrect resource paths which means MyFaces has been incorrect the whole time (along with Mojarra until 4.0.0).

      For non faces requests, the resource path (using the attached TCK app) would be generated like this:

      /jsf_appl_resource_web/TestServlet/jakarta.faces.resource/duke-boxer.gif?ln=images
      

      where TestServlet is the servlet mapping. However, the correct path should use the appropriate faces mapping instead (i.e prefix with /faces/ or use the xhtml extension)

      You can read BalusC's reply in this issue: https://github.com/jakartaee/faces/issues/1663

      Additionally, Mojarra updated to use Servlet 4 API Mappings (https://github.com/eclipse-ee4j/mojarra/pull/4956), and it might be good for us to update to that as well. I'll create a separate JIRA – MYFACES-4525)

      Attachments

        1. jsf_appl_resource_web.war
          23 kB
          Volodymyr Siedlecki

        Issue Links

          Activity

            People

              volosied Volodymyr Siedlecki
              volosied Volodymyr Siedlecki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: