Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-520

Invoking an RPC with no expend input should not fail when content type is set to application/json

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Helium
    • None
    • restconf
    • None
    • Operating System: Mac OS
      Platform: PC

    • 1100

    Description

      When I invoke an RPC which expects no input, it shouldn't matter what the content/type header is set to. Unfortunately you MUST have a content type other than application/json (or xml, or their variants) in order to get the call routed to the correct REST method. This happens because the code that deserializes the string into a composite node asserts that there be something defined.

      Instead of enforcing content at the deserialization (which is not aware of whether input is required or not) we should allow deserialization to return null, and perform the proper validation when have the RPC call definition.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            devin.avery@brocade.com Devin Avery
            devin.avery@brocade.com Devin Avery
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: