Bug 533284 - JSON is assembled by hand in JSP pages
Summary: JSON is assembled by hand in JSP pages
Status: NEW
Alias: None
Product: Lyo
Classification: Technology
Component: Tools (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Mac OS X
: P3 major (vote)
Target Milestone: 2.x.x   Edit
Assignee: Andrii Berezovskyi CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-05 17:18 EDT by Andrii Berezovskyi CLA
Modified: 2018-04-07 15:47 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrii Berezovskyi CLA 2018-04-05 17:18:06 EDT
Thankfully, Landfill users quickly hacked together a bug title that broke our generator.

I escaped the strings.

Then those escaped strings bit us back AGAIN because delegatedUI.js creates JSON for the OSLC DUI messaging transmission BY HAND AGAIN.

Relevant code:

"oslc:results": [
<% int i = 0; for (BugzillaChangeRequest r : resources) { %>
  <% if (i > 0) { %>,<% } %>
  {
    "oslc:label" : <%= StringUtils.quote(r.toString()) %>,
    "rdf:resource" : "<%= r.getAbout() %>"
  }
<% i++; } %>


and:

    var oslcResponse = 'oslc-response:{ "oslc:results": ['
Comment 1 Jad El-khoury CLA 2018-04-07 15:47:26 EDT
Can you please clarify. I cannot find the code below in the delegatedUI.js file.
Could it be that you are running an older version of that code?