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

PUT fails to validate outer object name in json

    XMLWordPrintable

Details

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

    • 1582

    Description

      I found that if I perform a PUT to toaster I am able to define any content for the outer module name. That is I can do a PUT to:

      http://localhost:8181/restconf/config/toaster:toaster

      with this body:

      {
      "ANY_TEXT_YOU_WANT":

      { darknessFactor:"4" }

      }

      Essentially the ANY_TEXT_YOU_WANT is completely ignored by the parser. We should either validate it, or better yet, do NOT require it. That is I should be able to PUT to the above toaster URL just

      {
      darknessFactor:"4"
      }

      since I am already in the context of toaster based on the URL.

      I do not know if the same problem exists with XML.

      Attachments

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

        Activity

          People

            jgloncak Jozef Gloncak
            devin.avery@brocade.com Devin Avery
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: