Domino Does Not Normalize Multiple Sequential Escape Characters in a URL
OK... this one bit me today. We are undergoing a migration of servers from 5.x to 6.5.1. Our internal web server has been running fine. But today, a user called and said that a document that had Word attachments was returning an HTTP error 400 when clicking on the attachments. Two of the attachments were fine, but the other three were in error. And it worked in R5 but not now. What's the problem?
During some troubleshooting, a stray random thought hit me and I figured it out. The failing Word attachments all had percent signs in their names. When I changed the name of the document and reattached it, all was fine. I then went looking in the Knowledgebase to figure out *why* it worked before and not now. This is the answer...
Domino Does Not Normalize Multiple Sequential Escape Characters in a URL
Document Number: 1107117
Problem
You have an application that is coded to use URLs that contain multiple escape characters in order to represent their ASCII or UTF8 equivalent, as in this example:
http://<server-name>/dbname.nsf/Files/$File/master%2520news%25201.txt
With Lotus Domino R5 this works as desired and displays the text file indicated in the URL. When executed on a Domino 6 server, these URLs no longer work but return the following error message:
"Error 400 Reason: HTTP Request contains a malformed escape sequence."
Content
This issue was reported to Lotus software Quality Engineering and has been addressed in Domino 6.0.3 with the addition of the NOTES.INI parameter HTTPAllowDecodedUrlPercent=1. Add this parameter to the server's NOTES.INI file to avoid the error.
To work around the issue in earlier releases, do not use multiply encoded escape character sequences; special characters should be singly encoded instead.



Comments
Posted by At 00:06:16 On 15/07/2005 | - Website - |