Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-485

Need to handle URIs that contain a question mark

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.5
    • 1.1.6
    • portal driver
    • 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.

      Attachments

        1. Pluto-485-1.1.x.patch
          2 kB
          Donald Woods

        Activity

          People

            Unassigned Unassigned
            drwoods Donald Woods
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: