HI All,
I am using HP QC/ALM Rest services to read/update/query the defects in HP QC, read and update are working fine but we are facing problems while querying using the REST services.
The exact problem what we have drilled down is that when there are spaces in the value part then we get 505(Internal server error), if there are no spaces in the value part the query works fine.
For example:
http://localhost:8080/qcbin/rest/domains/DEFAULT/projects/test1/defects?query={user-03['abc123' ]} - This works fine.
http://localhost:8080/qcbin/rest/domains/DEFAULT/projects/test1/defects?query={user-03['abc 123']} - This fails, if you observe there is a space after "abc"
Similarly
http://localhost:8080/qcbin/rest/domains/DEFAULT/projects/test1/defects?query={user-03['abc123'OR'2everything']} this works fine
http://localhost:8080/qcbin/rest/domains/DEFAULT/projects/test1/defects?query={user-03['abc123' OR '2everything']} this fails because there is space before and after "OR".
I tried encoding the value alone but still there was no luck.
Quick help would be appreciated.
Thank You,
Rohit.