Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-19

PortletExternalContextImpl.encodeResourceURL seems to return prepend the context path twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0-alpha-2
    • 1.0.0-alpha
    • Impl
    • None
    • exo-enterprise-webos-r21645 (includes Tomcat 6.0.10), JSF RI 1.2_05 and Windows XP

    Description

      I've been experimenting with several portlet bridges with the standard guessnumber app. The following JSF tag declaration:

      <h:graphicImage id="waveImg" url="/wave.med.gif" />

      Generates this URL with the portlet bridge:

      <img id="I26380823I:j_id_jsp_1712459602_0:helloForm:waveImg" src="/guessnumberportlet-301/guessnumberportlet-301/wave.med.gif" />

      In this application, the web app and the portlet have the same name "guessnumberportled-301". I've tested eXo with he MyFaces and Apache Portals bridges, and neither of them have this problem, so I think this may be a problem with this particular bridge.

      Everything works fine with if you remove the first slash:

      <h:graphicImage id="waveImg" url="wave.med.gif" />

      This generates the expected outcome:

      <img id="I26380823I:j_id_jsp_1712459602_0:helloForm:waveImg" src="/guessnumberportlet-301/wave.med.gif" />

      I haven't had a chance to actually step through the bridge's code or try this in Pluto.

      Attachments

        1. guessnumberportlet-301.war
          1.54 MB
          Kito D. Mann
        2. jira_19.patch
          0.9 kB
          Michael Freedman
        3. jira_19b.patch
          3 kB
          Michael Freedman

        Activity

          People

            mike_freedman Michael Freedman
            kito75 Kito D. Mann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: