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

EncodeResource url improperly recognizes non context path encoded urls beginning with / as being an internal url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.1, 2.0.1, 3.0.0
    • None
    • None

    Description

      If you have an url that is passed to encodeResourceUrl which begins /foo/bar.jpg where /foo isn't this applications context-path, the bridge recognizes this url as a internal app url and prefixs it with the context-path. However, because JSF doesn't do auto-context path appending the above url is invalid in regular (serlvet) JSF as its neither relative to the current page nor the current server. Hence all resource urls that begin with / should be seen as external urls – i.e. assumed to be urls that are full path (including the context-path) to another application in this server.

      As ADF's GoLink uses encodeActionUrl for its targets – we should also review and consider correct behavior there as well.

      Attachments

        1. pbr-tck.patch
          6 kB
          Alexandr Smirnov

        Issue Links

          Activity

            People

              mike_freedman Michael Freedman
              mike_freedman Michael Freedman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: