Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTCONF GET request of single-key list with empty string returns all elements #213

Closed
olofhagsand opened this issue Apr 28, 2021 · 0 comments
Labels

Comments

@olofhagsand
Copy link
Member

Consider a list value with a single list, such as:

list list1 {
		 key "k1";

If such a llst is accessed in RESTCONF with an empty key string: curl http://localhost/restconf/module/list1= , all elements of that list are returned. Correct behavior according ti RFC 8040 3.5.3 /4.3 is to return the instance with an empty key string.

olofhagsand added a commit that referenced this issue May 5, 2021
…FC 8040 it should mean the "empty string".

  * Example: `GET restconf/data/x:a=`
  * Previous meaning (wrong): Return all `a` elements.
  * New meaning (correct): Return the `a` instance with empty key string: "".
* [RESTCONF GET request of single-key list with empty string returns all elements #213](#213)
* [RESTCONF GETof lists with empty string keys does not work #214](#214)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant