{"action":"closed","issue":{"url":"https://api.github.com/repos/sysrepo/sysrepo/issues/483","repository_url":"https://api.github.com/repos/sysrepo/sysrepo","labels_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/483/comments","events_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/483/events","html_url":"https://github.com/sysrepo/sysrepo/issues/483","id":186352747,"number":483,"title":"sr_get_item fails when a container nested in grouping is referred to from another container","user":{"login":"jktjkt","id":2631925,"avatar_url":"https://avatars.githubusercontent.com/u/2631925?v=3","gravatar_id":"","url":"https://api.github.com/users/jktjkt","html_url":"https://github.com/jktjkt","followers_url":"https://api.github.com/users/jktjkt/followers","following_url":"https://api.github.com/users/jktjkt/following{/other_user}","gists_url":"https://api.github.com/users/jktjkt/gists{/gist_id}","starred_url":"https://api.github.com/users/jktjkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jktjkt/subscriptions","organizations_url":"https://api.github.com/users/jktjkt/orgs","repos_url":"https://api.github.com/users/jktjkt/repos","events_url":"https://api.github.com/users/jktjkt/events{/privacy}","received_events_url":"https://api.github.com/users/jktjkt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T17:56:46Z","updated_at":"2016-11-02T09:22:09Z","closed_at":"2016-11-02T09:22:09Z","body":"I have the following indirection in my YANG model:\r\n\r\n```\r\ncontainer something {\r\n\r\n  grouping my-stage {\r\n    // some config leaves are defined here\r\n    leaf my-config-thing ...\r\n\r\n    container sensors {\r\n      config false;\r\n      // some operational leaves are here\r\n     leaf my-op-data-thing ...\r\n    }\r\n  }\r\n\r\n  container stage-1 {\r\n    uses my-stage;\r\n  }\r\n  container stage-2 {\r\n    uses my-stage;\r\n  }\r\n\r\n}\r\n```\r\n\r\nWhen my client code calls ``sr_get_item`` about any piece of config data contained within my ``stage-1``, I get the following error:\r\n\r\n```\r\n[ERR] (rp_dt_xpath_requests_state_data:684) Unable to find schema node for /my-module:something/my-stage/sensors\r\n[ERR] (rp_dt_prepare_data:811) rp_dt_xpath_requests_state_data failed\r\n[ERR] (rp_dt_get_value_wrapper:876) rp_dt_prepare_data failed Request contains unknown element\r\n[ERR] (rp_dt_get_value_wrapper:897) Get value failed for xpath '/my-module:something/stage-1/my-config-thing'\r\n```\r\n\r\nCommenting out the ``container sensors`` block in the YANG scheme makes this problem go away."}}
{"actor":{"display_login":"lukasmacko"}}