Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-785

Can't display JSON representation of task in tasks-rs QS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.0.0.DR9
    • 7.0.0.DR8
    • Quickstarts
    • 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

            sgilda_jira Sande Gilda (Inactive)
            nziakova@redhat.com Nikoleta Ziakova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: