Issue 283 in glassdb: Swazoo incorrectly parses query containing url encoded characters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 283 in glassdb: Swazoo incorrectly parses query containing url encoded characters

glassdb
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=283

The 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

Reply | Threaded
Open this post in threaded view
|

Re: Issue 283 in glassdb: Swazoo incorrectly parses query containing url encoded characters

glassdb
Updates:
        Status: Fixed

Comment #1 on issue 283 by [hidden email]: Swazoo incorrectly parses  
query containing url encoded characters
http://code.google.com/p/glassdb/issues/detail?id=283

fixed in ... ConfigurationOfSwazoo2 2.2.0.4 (dkh.35)...

Reply | Threaded
Open this post in threaded view
|

Re: Issue 283 in glassdb: Swazoo incorrectly parses query containing url encoded characters

glassdb

Comment #2 on issue 283 by [hidden email]: Swazoo incorrectly parses  
query containing url encoded characters
http://code.google.com/p/glassdb/issues/detail?id=283

Incorporated Nic's failing test[1] and expanded fix to remove the extra  
decoding step in  SwazooURI>>fromString:

fix in ConfigurationOfSwazoo2 2.2.0.4 (DataCurator.36)

[1]  
http://forum.world.st/Swazoo-incorrectly-parses-query-containing-url-encoded-characters-td3748585.html