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

Incorrect Error mappings in 8040 code

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • High
    • Resolution: Done
    • Oxygen, Fluorine, Neon, Fluorine SR1
    • Neon, Fluorine SR2
    • restconf-nb
    • None
    • Tested with json rpc but shows with other data too too.

    Description

      The new 8040 code returns bogus errors when trying to create data resources which already exist via post.

      Instead of returning 409 (same as the old code) or another appropriate 4xx code for a conflict it returns 503 - server failed. This is broken, there is no server failure, the server did its job and determined that a conflict is in place. It should neither pollute the logs nor return bogus error codes to the client.

       

      Attachments

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

        Activity

          People

            aivanov Anton Ivanov
            aivanov Anton Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: