Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-648

Unable to invoke no-args RPC using apidoc explorer

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Won't Do
    • Magnesium
    • None
    • restconf-nb
    • None

    Description

      RPC with no input arguments can't be invoked using apidocs explorer.

      An attempt to do so will result in HTTP 415 (with no payload)

      This is equivalent cURL:

      curl -v 'http://localhost:8181/restconf/operations/jsonrpc:force-reload' -H 'Accept: application/json' -H 'Content-Type: text/plain;charset=UTF-8' -H 'Authorization: Basic YWRtaW46YWRtaW4=' --data ''

      But this one works

      curl -v 'http://localhost:8181/restconf/operations/jsonrpc:force-reload' -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46YWRtaW4=' --data ''

      Seems like 'Content-Type: text/plain;charset=UTF-8' header is causing issue.

       

      Attachments

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

        Activity

          People

            jluhrsen Jamo Luhrsen
            rkosegi Richard Kosegi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: