14 years ago
Incorrect URL path encoding.
I have a REST method with a parameterized path element (note this is in the path, not a query parameter)
http://mydomain/station/{channel}
When {channel} contains a space or %20, soapUI encodes the space as a + in the request sent to the REST service. This is incorrect behavior for encoding strings in the path portion of the URL. The space should be encoded as '%20', not a +. Using a + to encode a space is correct within a query parameter, but not in the URL path. The rules are different for each section of the URL.
{channel}='big town' OR {channel} = 'big%20town'
soapUI Result: http://mydomain/station/big+town
correct: http://mydomain/station/big%20town
This article is a good review of the problems encoding URLs.
---------------------------
I am using soapUI 4.5.0
Build Date 2012/03/26 16:10 (Running on Mac OSX 10.6.
http://mydomain/station/{channel}
When {channel} contains a space or %20, soapUI encodes the space as a + in the request sent to the REST service. This is incorrect behavior for encoding strings in the path portion of the URL. The space should be encoded as '%20', not a +. Using a + to encode a space is correct within a query parameter, but not in the URL path. The rules are different for each section of the URL.
{channel}='big town' OR {channel} = 'big%20town'
soapUI Result: http://mydomain/station/big+town
correct: http://mydomain/station/big%20town
This article is a good review of the problems encoding URLs.
---------------------------
I am using soapUI 4.5.0
Build Date 2012/03/26 16:10 (Running on Mac OSX 10.6.
