// Launch the page
A decoded the URL string, "http://localhost/myapp/object/display/ObjRef///MainSite/5100.MT1", was sent to the browser and resulted in an error.
3 Answers, 1 is accepted
answered on 15 Aug 2011, 12:09 PM
I'm sorry you are running into this problem. It is a well known problem caused by the .Net logic we use and not by some implementation specific to Test Studio. The culprit is this URI class and more specifically:
By default, any reserved characters in the URI are escaped in accordance with RFC 2396. This behavior changes if International Resource Identifiers or International Domain Name parsing is enabled in which case reserved characters in the URI are escaped in accordance with RFC 3986 and RFC 3987.
As part of canonicalization in the constructor for some schemes, escaped representations are compacted. The schemes for which URI will compact escaped sequences include the following: file, http, https, net.pipe, and net.tcp. For all other schemes, escaped sequences are not compacted. For example: if you percent encode the two dots ".." as "%2E%2E" then the URI constructor will compact this sequence for some schemes. For example, the following code sample shows a URI constructor for the http scheme.
Uri uri = new Uri("http://myUrl/%2E%2E/%2E%2E"); Console.WriteLine(uri.AbsoluteUri); Console.WriteLine(uri.PathAndQuery); When this code is executed, it returns the following output with the escaped sequence compacted.