[NETCONF-451] When list have binary type key it's not possible to write item to this list Created: 11/Aug/17  Updated: 15/Mar/19  Resolved: 21/Aug/17

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Michal Vrsansky Assignee: Jakub Morvay
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


External issue ID: 8977

 Description   

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.



 Comments   
Comment by Jakub Toth [ 14/Aug/17 ]

https://git.opendaylight.org/gerrit/#/c/61610/

Comment by Andrej Vanko [ 21/Aug/17 ]

merged to master,
carbon merge pending - to be done after freeze

Generated at Wed Feb 07 20:15:04 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.