-
Bug
-
Resolution: Done
-
Critical
-
7.0.0.DR8
-
None
When following instructions in readme, the response is empty:
[nziakova@localhost tasks-rs]$ curl -H "Accept: application/json" -u 'quickstartUser:quickstartPwd1!' -X GET http://localhost:8080/jboss-tasks-rs/tasks/1
The response for XML representation is empty too, in this case.
However, when I create the task again, it can be displayed in both JSON and XML, as expected:
[nziakova@localhost tasks-rs]$ curl -H "Accept: application/xml" -u 'quickstartUser:quickstartPwd1!' -X GET http://localhost:8080/jboss-tasks-rs/tasks/1 [nziakova@localhost tasks-rs]$ curl -H "Accept: application/json" -u 'quickstartUser:quickstartPwd1!' -X GET http://localhost:8080/jboss-tasks-rs/tasks/1 {"id":1,"title":"task1","ownerName":"quickstartUser"}[nziakova@localhost tasks-rs]$
The only difference between the working and non-working instructions is:
- in non-working instructions (included in readme) the task is created before rebuilding and redeploying the application
- in working instructions the task is created after the QS is rebuilt and redeployed