This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132177 - " are not escaped in json response
Summary: " are not escaped in json response
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-07 12:26 UTC by Lukas Jungmann
Modified: 2008-06-24 15:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-04-07 12:26:48 UTC
-have some table in DB which has value in some column like: <object id="someId">....</object>
-create new web app
-create new entity class from DB and use that table
-create REST service from that entity class
-deploy the application
-create another webapp
-create new REST client stubs
-run TestStubs.html

=> fails
cause is that response from the REST service in json format for given field is like:
{..."available":"true","description":""some"","manufacturerRef":...} which is invalid (""some"")

workaround is to replace " in a script for creating a DB by ''


all steps to reproduce are at http://wiki.netbeans.org/MusicAppUsingRESTRemoting
Comment 1 Jeffrey Rubinoff 2008-04-07 13:54:46 UTC
Also, please let me know whether I should change the Music Application SQL script to reflect the workaround or wait for
bug fix.

Jeff
Comment 2 Ayub Khan 2008-04-08 01:51:03 UTC
Jeff,

Please fix the music db script for now. This issue is due to jersey 0.6 issue
https://jersey.dev.java.net/issues/show_bug.cgi?id=57, which I think will take a while to get into NB.

Thanks
Ayub
Comment 3 Ayub Khan 2008-04-08 19:25:03 UTC
The fix for this issue is in jersey trunk, when we switch to 0.7 release of jersey, this issue can be closed.
Comment 4 Jeffrey Rubinoff 2008-04-13 20:22:53 UTC
Forgot to mention, I've fixed the music script for now. This script should still work, I hope, after Jersey 0.7 is
implemented.
Comment 5 Peter Liu 2008-05-27 22:32:52 UTC
According to Ayub, this issue is already fixed in jersey 0.7 and since we the 0.7 update is now available, I am closing
this issue as fixed. Lukas, please verify.

Comment 6 Lukas Jungmann 2008-06-24 15:55:18 UTC
v.