Anti-slash is not authorized by tomcat for URL by default
---------------------------------------------------------
Key: NXP-6312
URL: https://jira.nuxeo.com/browse/NXP-6312
Project: Nuxeo Enterprise Platform
Issue Type: Bug
Reporter: Benjamin Jalon
By default tomcat return a ERROR 400 bad request, if there is backslah
(antislash) in the URL. See here :
public class CoyoteAdapter implements Adapter {
protected static final boolean ALLOW_BACKSLASH =
Boolean.valueOf(System.getProperty("org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH",
"false")).booleanValue();
...
public static boolean normalize(MessageBytes uriMB) {
...
for (pos = start; pos < end; pos++) {
if (b[pos] == (byte) '\\') {
if (ALLOW_BACKSLASH) {
b[pos] = (byte) '/';
} else {
return false;
}
So backslash will be forbidden into a document name (as it is used into the
path, used for the URL). and will be replaced by a minus character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.nuxeo.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets