Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-5489

Fix ReST "count" requests, refactor PUT/POST to use Post/Redirect/Get pattern

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.4
    • Fix Version/s: 1.10.5
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:

      Description

      Reported in support ticket https://mynms.opennms.com/Ticket/Display.html?id=1557

      The following message in output.log points straight to the problem:

      ==> output.log <==Aug 15, 2012 12:10:18 PM
      com.sun.jersey.spi.container.ContainerResponse writeSEVERE: A message body
      writer for Java class java.lang.Integer, and Java type int, and MIME media type
      text/plain was not found

      Changing the provider methods in RequisitionRestService to return a String rather than an int, and wrapping the return value in Integer.toString(int), resolves the problem. I'll commit the fix momentarily.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jeffg Jeff Gehlbach
                Reporter:
                jeffg Jeff Gehlbach
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: