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 131545

Summary: incorrect uri in generated .js from WADL
Product: webservices Reporter: Lukas Jungmann <jungi>
Component: RESTAssignee: Ayub Khan <ayubskhan>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: used WADL file

Description Lukas Jungmann 2008-03-30 12:24:44 UTC
-create new rest stub from attached WADL
-open created localhost_8080_WebApplication4_resources.js in the editor

=> there one can find:

localhost_8080_WebApplication4_resources.prototype = {

   uri : 'http://localhost:8080/localhost_8080_WebApplication4_resources/resources',
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

but the correct uri is: http://localhost:8080/WebApplication4/resources

Also if I use some 3rd party WADL, say from http://api.my.org than the uri in .js file will be pointing to
http://localhost:8080/api.my.org (or sth very similar to this) - seems like pointer to localhost:8080 is hardcoded
there, but it definitely shouldn't
Comment 1 Lukas Jungmann 2008-03-30 12:37:31 UTC
Created attachment 59362 [details]
used WADL file
Comment 2 Lukas Jungmann 2008-03-31 20:15:34 UTC
feature does not work correctly now => P1, has to be fixed for FCS
Comment 3 Ayub Khan 2008-04-01 17:25:39 UTC
Hi Lukas,

Fix checked in trunk. Please verify.

changesets
http://hg.netbeans.org/main/rev/74b9f0b12c1c
http://hg.netbeans.org/main/rev/4da8335c974f


Thanks
Ayub
Comment 4 Ayub Khan 2008-04-01 20:09:13 UTC
3rd changeset (disable stub from wadl when jMaki is selected, not supported for now)

http://hg.netbeans.org/main/rev/9d4c7c72d731
Comment 5 Peter Liu 2008-04-01 20:50:40 UTC
Just went through the changesets and tried it out. It looks good.

Peter
Comment 6 Lukas Jungmann 2008-04-01 23:06:34 UTC
v. in trunk. Merge the fix into the release61 clone, please.

Thanks.
Comment 7 Lukas Jungmann 2008-04-03 15:08:27 UTC
f. in release61: http://hg.netbeans.org/release61?cmd=changeset;node=2a62f739dec8

v.

PS: Ayub, don't forget to put a note into IZ that you already fixed sth in release61 so I get to know what to verify, please