Need to handle URIs that contain a question mark
------------------------------------------------
Key: PLUTO-485
URL: https://issues.apache.org/jira/browse/PLUTO-485
Project: Pluto
Issue Type: Bug
Components: portal driver
Affects Versions: 1.1.5
Reporter: Donald Woods
Fix For: 1.1.6
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.