Pluto
  1. Pluto
  2. PLUTO-485

Need to handle URIs that contain a question mark

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.5
    • Fix Version/s: 1.1.6
    • Component/s: portal driver
    • Labels:
      None

      Description

      The handling of question marks in the URI has already been fixed in trunk, but needs to be applied to the 1.1.x branch.
      pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
      . .
      //This is a list of characters that need to be encoded to be protected
      //The ? is necessary to protect URI's with a query portion that is being passed as a parameter
      private static final String[][] ENCODINGS = new String[][] {
      new String[]

      { "_", "0x1" }

      ,
      new String[]

      { ".", "0x2" }

      ,
      new String[]

      { "/", "0x3" }

      ,
      new String[]

      { "\r", "0x4" }

      ,
      new String[]

      { "\n", "0x5" }

      ,
      new String[]

      { "<", "0x6" }

      ,
      new String[]

      { ">", "0x7" }

      ,
      new String[]

      { " ", "0x8" }

      ,
      new String[]

      { "#", "0x9" }

      ,
      new String[]

      { "?", "0xa" }

      ,
      new String[]

      { "\\", "0xb" }

      ,
      new String[]

      { "%", "0xc" }

      ,
      };

      Note, the last 3 encodings above were added in trunk but are missing in 1.1.x.

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12565051 ] jira [ 12586154 ]
        Mark Thomas made changes -
        Workflow jira [ 12431076 ] Default workflow, editable Closed status [ 12565051 ]
        Craig Doremus made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Hide
        Craig Doremus added a comment -

        Patch applied in SVN rev 662388. Thanks Donald!

        Show
        Craig Doremus added a comment - Patch applied in SVN rev 662388. Thanks Donald!
        Donald Woods made changes -
        Field Original Value New Value
        Attachment Pluto-485-1.1.x.patch [ 12382063 ]
        Hide
        Donald Woods added a comment -

        Patch created against 1.1.x at r643117.

        Show
        Donald Woods added a comment - Patch created against 1.1.x at r643117.
        Donald Woods created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Donald Woods
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development