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

Resource Name in mapping for two menu images is incorrect

    Details

      Description

      Two image urls in packed.css, contextmenu.css and dropdownmenu.css are referenced as:

      url(../org.richfaces.images/menu_item_bg.gif.png)
      url(../org.richfaces.images/menu_list_bg.gif.png)
      

      However, the mapping file at /META-INF/richfaces/staticResourceMapping/Packed.properties contains the following entries:

      org.richfaces.images\:menu_item_bg.gif=org.richfaces.staticResource/4.2.2.Final/Packed/%skin%/org.richfaces.images/menu_item_bg.gif.png
      org.richfaces.images\:menu_list_bg.gif=org.richfaces.staticResource/4.2.2.Final/Packed/%skin%/org.richfaces.images/menu_list_bg.gif.png
      

      Stepping through the RF Resource code it's possible to see that it's trying to retrieve a resource with name "menu_item_bg.gif.png" from the URL, but there is no resource name specified in the mapping to match, so a null Resource is returned.

      If I manually updated the Packed.properties file by adding .png to the resource name as below:

      org.richfaces.images\:menu_item_bg.gif.png=org.richfaces.staticResource/4.2.2.Final/Packed/%skin%/org.richfaces.images/menu_item_bg.gif.png
      org.richfaces.images\:menu_list_bg.gif.png=org.richfaces.staticResource/4.2.2.Final/Packed/%skin%/org.richfaces.images/menu_list_bg.gif.png
      

      then the Resource is correctly retrieved.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kenfinni Ken Finnigan
                  Reporter:
                  kenfinni Ken Finnigan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: