alex-sherwin / missing-link

Simple ant http plugin
0 stars 1 forks source link

Equal sign in query value #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a query with a parameter that has equal sign in the value.
<http 
url="https://testorg.cs10.my.salesforce.com/services/data/v32/query/?q=SELECT 
Id,Email FROM Account WHERE Email = 'test@test.com'" method="GET">

What is the expected output? What do you see instead?
Expected:
[http] HTTP GET 
https://testorg.cs10.my.salesforce.com/services/data/v32.0/query/?q=SELECT+Id%2C
Email+FROM+Account+WHERE+Email+%3D+%test%test.com%27

Actual:
[http] HTTP GET 
https://testorg.cs10.my.salesforce.com/services/data/v32.0/query/?q=SELECT+Id%2C
Email+FROM+Account+WHERE+Email+

What version of the product are you using? On what operating system?
1.1.3 / Windows 7 / JRE 1.7

Please provide any additional information below.
Currently, only second part of the split by equal sign is used to set the value 
(HttpClient.java file). I added a loop to add the rest of the values if there 
are more than two parts.
The patch is attached.

Original issue reported on code.google.com by ashevt...@rbauction.com on 7 Apr 2015 at 1:25

Attachments: