Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363344

Summary: Test suite does not handle service URIs with query parameters
Product: [Technology] Lyo Reporter: Samuel Padgett <samuel.padgett>
Component: TestSuiteAssignee: Samuel Padgett <samuel.padgett>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: fiedler.mf, samuel.padgett, sspeiche
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Samuel Padgett CLA 2011-11-09 11:08:54 EST
The test suite adds query parameters to service URIs (like query capabilities) by appending "?name=value" to the URI. This doesn't work if the service URI already has query parameters, however.

For instance, the Bugzilla adapter has a query URI like this.

http://localhost:8282/bugz/changerequests?productId=2

The test suite will try to run this query

http://localhost:8282/bugz/changerequests?productId=2?oslc.where=oslc_cm%3Astatus%3D%22NEW%22&oslc.select=oslc_cm%3Astatus

which is not correct.
Comment 1 Samuel Padgett CLA 2011-11-09 11:28:32 EST
I have a fix. See this pull request from github.

https://github.com/eclipse/lyo.testsuite/pull/1
Comment 3 Michael Fiedler CLA 2011-11-11 13:18:53 EST
Resolved by comment 2
Comment 5 Samuel Padgett CLA 2013-05-23 09:13:23 EDT
Closing...