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

Bridge mishandles encodings of urls with targets containing same prefix as contextpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 2.0.0, 3.0.0-alpha
    • 2.0.1, 3.0.0
    • Impl
    • None

    Description

      If a target is prefixed with the same name/string as the context path, the bridge mishandles encoding/decoding the URLs as portlet urls. For example if the contextpath is /simple and the path is /simple.jspx code in the bridge's ExternalContext will break as there are several locations where the bridge either needs to adds the ContextPath during encoding or strip the ContextPath during decoding. In both cases the bridge incorrectly recognizes the CP in the above example (/simple.jspx) when its not there. All tests for context path must therefore not only check that string startwith the CP but in fact ends with a /.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: