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

When list have binary type key it's not possible to write item to this list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • None
    • restconf-nb
    • None
    • Operating System: Windows
      Platform: PC

    • 8977

      When list have binary type key it's not possible to write item to this list because its thrown error message:

      {
      "errors": {
      "error": [

      { "error-type": "protocol", "error-tag": "invalid-value", "error-message": "The value '[B@514641da' for key 'lldpLocManAddr' specified in the URI doesn't match the value '[B@5f81a45a' specified in the message body. " }

      ]
      }
      }

      This is caused in class \netconf\restconf\sal-rest-connector\src\main\java\org\opendaylight\netconf\sal\restconf\impl\RestconfImpl.java.
      There is check if key is also present in message body but it fails on comparison of byte arrays even when arrays have equal content.

      Tested on version 1.5.0-Carbon.

            jmorvay@cisco.com Jakub Morvay
            michal.vrsansky@pantheon.sk Michal Vrsansky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: