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

Path problems in PortletExternalContextImpl.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-alpha-2
    • 1.0.0-alpha
    • Impl
    • None

    Description

      encodeResourceURL currently only creates a context-path relative path when asked to encode a relative path before passing to the portlet container for encoding – however the portlet API requires this be a fully qualified path (i.e. include the ContextPath).

      isAbsoluteURL doesn't properly test if the url is absolute or not – What it needs to do is only return true if the url starts with a valid scheme. I.e. the characters before the : don't contain any of the URI reserved characters. for example "javascript:;" currently claims it isn't "absolute" when it should be marked as it is.

      Attachments

        1. extctxpath.patch
          2 kB
          Michael Freedman

        Activity

          People

            darkarena Scott O'Bryan
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: