Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13893

Resource optimization - Invalid reference for gradientA.png

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.0.CR2
    • Fix Version/s: 4.5.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      WildFly 8.2.0.CR1-SNAPSHOT
      MyFaces 2.2.5
      RichFaces 4.5.0.CR2

      Description

      When enabling resource optimazation in web.xml using

      <context-param>
          <param-name>org.richfaces.resourceOptimization.enabled</param-name>
          <param-value>true</param-value>
      </context-param>

      a call to the file gradientA.png is made using the following URL resulting in a 404 error:

      http://localhost:8080/myContextPath/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.5.0.CR2/PackedCompressed/plain/org.richfaces.images/gradientA.png

      The cause is simple to find, an invalid reference using syntax

      url(#{resource["org.richfaces.images:gradientA.png"]})

      in popupPanel.ecss https://github.com/richfaces/richfaces/blob/d9ed9ce8336de4b0aa416574f824d212f21ebef4/components/rich/src/main/resources/META-INF/resources/org.richfaces/popupPanel.ecss#L45

      All other references to gradientA.png in other .ecss files are using the syntax:

      "#{a4jSkin.imageUrl('gradientA.png')}"

      And there is also a commented code in notify.ecss https://github.com/richfaces/richfaces/blob/d9ed9ce8336de4b0aa416574f824d212f21ebef4/components/rich/src/main/resources/META-INF/resources/org.richfaces/notify.ecss#L100 using an even older reference.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                tgreiser Torben Greiser
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: