[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-6280) [tester] full response (body and headers) should be shown for REST requests
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Mon Jun 14 07:23:58 EDT 2010
[ https://jira.jboss.org/browse/JBIDE-6280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen resolved JBIDE-6280.
----------------------------------------
Resolution: Done
> [tester] full response (body and headers) should be shown for REST requests
> ----------------------------------------------------------------------------
>
> Key: JBIDE-6280
> URL: https://jira.jboss.org/browse/JBIDE-6280
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Webservices
> Affects Versions: 3.2.x
> Reporter: Lukas Jungmann
> Assignee: Brian Fitzpatrick
> Fix For: 3.2.0.M1
>
>
> Response from the server for wrong/invalid REST request has usually set other than HTTP 2xx status code and contains some explanatory message. Currently status code is hidden/wrapped in IOException message printed to the response body tab in the tester and explanatory message is completely hidden from the user and this should be fixed.
> steps:
> do GET http://www.zvents.com/rest/event_update in a tester
> Actual:
> bug 1: exception dialog with message Exception: Server returned HTTP response code: 401 for URL: http://www.zvents.com/rest/event_update? appears
> bug 2: response body shows: "java.io.IOException: Server returned HTTP response code: 401 for URL: http://www.zvents.com/rest/event_update?" which is kind of wrong from tester behavior point of view
> bug 3: response headers tab is empty
> Expected:
> -no exception window appears
> -response body shows proper message returned from the server, in this particular case it is:
> <?xml version="1.0" encoding="UTF-8"?>
> <rsp status="failed">
> <msg>Invalid API Key.</msg>
> </rsp>
> -response headers tab shows at least correct HTTP status code, in this case: "Status Code: 401 Unauthorized"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list