Status: Accepted
Owner:
[hidden email]
Labels: Type-Defect Priority-Medium GLASS-Swazoo Version-Swazoo2.2.0.3
New issue 283 by
[hidden email]: Swazoo incorrectly parses query
containing url encoded characters
http://code.google.com/p/glassdb/issues/detail?id=283The following two expressions should result in the same URI:
| ans1 ans2 |
ans1 := SwazooURI
fromString: 'www.foo.com/index.html?foo=1&bar=', 'bar"sample method"^#($&)'
encodeForHTTP.
ans2 := SwazooURI new.
ans2 fromStream: ('www.foo.com/index.html?foo=1&bar=', 'bar"sample
method"^#($&)' encodeForHTTP) readStream.
ans1 printString = ans2 printString
SwazooURI>>fromString: ends up url decoding the input string before calling
SwazooURI>>fromStream:. SwazooURI>>fromStream: correctly parses and decodes
the values of the queries