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.
Summary: | Testing RESTful WebService fails when clicking "Test Resource Uri" from witin NetBeans | ||
---|---|---|---|
Product: | webservices | Reporter: | Nabi |
Component: | REST | Assignee: | Denis Anisimov <ads> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Anda77 |
Priority: | P3 | Keywords: | USABILITY |
Version: | 7.0.1 | ||
Hardware: | Macintosh (x86) | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | 8080 |
Description
Nabi
2011-08-06 19:01:58 UTC
It seems that the entry <url-pattern>/*</url-pattern> in web.xml is causing the issue. The REST test feature cannot handle it correctly. If changiung it to something like <url-pattern>/rest/*</url-pattern> everything seems to work. I hope this helps to solve the issue. There is no steps to reproduce. Please provide exact NB UI steps what do you use to get this issue. All works fine for me if REST service has been created via NB wizards. It seems you have created the REST service by hand ( avoiding NB wizards ). Is it true ? So the reason of the issue is the bad url which is used to REST WS access : http://localhost:8080/service//test/helloworld There should be no double "/" symbol. It not happens if REST WS is created by NB wizards. So this is not a big issue actually. But I'm going to fix double slashes in the URL. yes - you are right. I did not use the wizard. instead i implemented ther REST service by hand. But from my point of view the behviour should be the same. and yes - i also believe that the double slashes are the problem. and i agree that this is actually not a big issue, but it is still a small bug. so i am glad to hear that you are going to fix it. i would re-test it once it is fixed... thanks OK, so the bug is : incorrect URL is used in "Test Resource Uri" action. It could happen when RESTful WS is created without NB wizards . I will fix it in 7.1. exactly. as i said once 7.1 is out i will re-test. web-main#a72d724cae3e Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a72d724cae3e User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#200724 - Testing RESTful WebService fails when clicking "Test Resource Uri" from witin NetBeans |