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

Bug 363339

Summary: Bugzilla adapter gives back invalid XML for query responses
Product: [Technology] Lyo Reporter: Samuel Padgett <samuel.padgett>
Component: ServerAssignee: 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 10:59:20 EST
For instance,

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

results in this error parsing the response:

FatalError: The reference to entity "oslc.paging" must end with the ';' delimiter.[Line = 17, Column = 97]

Here is the problematic line:

<oslc:ResponseInfo rdf:about="http://localhost:8282/bugz/changerequests?productId=2&oslc.paging=true">

The '&' should instead be '&amp;'.

As an aside, we should be using Jena to generate our RDF/XML rather than JSPs, which avoids this kind of problem altogether.
Comment 1 Samuel Padgett CLA 2011-11-09 11:03:23 EST
Mike or Steve, can you assign to me?
Comment 2 Samuel Padgett CLA 2011-11-09 13:54:44 EST
I have a fix ready. See

https://github.com/eclipse/lyo.server/pull/1

I am now using Jena for RDF/XML query results.
Comment 4 Michael Fiedler CLA 2011-11-10 19:09:49 EST


Resolved by this additional commit:

http://git.eclipse.org/c/lyo/org.eclipse.lyo.server.git/commit/?id=97ffbcc05a36a7ef9c9dd468dba5b8f0365c02fa
Comment 6 Samuel Padgett CLA 2013-05-23 09:13:22 EDT
Closing...