{"action":"created","issue":{"url":"https://api.github.com/repos/CESNET/libyang/issues/481","repository_url":"https://api.github.com/repos/CESNET/libyang","labels_url":"https://api.github.com/repos/CESNET/libyang/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/CESNET/libyang/issues/481/comments","events_url":"https://api.github.com/repos/CESNET/libyang/issues/481/events","html_url":"https://github.com/CESNET/libyang/issues/481","id":313210043,"number":481,"title":"When condition with prefixed value failed","user":{"login":"frimpler","id":30437497,"avatar_url":"https://avatars1.githubusercontent.com/u/30437497?v=4","gravatar_id":"","url":"https://api.github.com/users/frimpler","html_url":"https://github.com/frimpler","followers_url":"https://api.github.com/users/frimpler/followers","following_url":"https://api.github.com/users/frimpler/following{/other_user}","gists_url":"https://api.github.com/users/frimpler/gists{/gist_id}","starred_url":"https://api.github.com/users/frimpler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frimpler/subscriptions","organizations_url":"https://api.github.com/users/frimpler/orgs","repos_url":"https://api.github.com/users/frimpler/repos","events_url":"https://api.github.com/users/frimpler/events{/privacy}","received_events_url":"https://api.github.com/users/frimpler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-11T07:49:23Z","updated_at":"2018-04-11T08:48:19Z","closed_at":"2018-04-11T08:09:09Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nwith the testcase test_when_value_prefix() in this commit https://github.com/frimpler/libyang/commit/a9451c16ab9c82ae8e64b915f269377365ee0ecc an issue of the XPATH evaluator is triggered.\r\n\r\n### Description\r\nWhen a when condition is evaluated which contains a prefixed identityref value and this identityref comes from an augmentig module the evaluated expression looks like \"identityref = prefix:identityref\" and this fails of course. The reason is that on the node side of the equality expression the value is assumed to come from the augmented module (resulting in no prefix) instead of the augmenting module.\r\n\r\n### Proposed Solution\r\n\r\nThe proposed solution in xpath.c (https://github.com/frimpler/libyang/commit/9b58e81db7a8f8ffe9b8a703a58842f25d78f466) uses the module of the actual node to determine the prefix for the value."},"comment":{"url":"https://api.github.com/repos/CESNET/libyang/issues/comments/380376598","html_url":"https://github.com/CESNET/libyang/issues/481#issuecomment-380376598","issue_url":"https://api.github.com/repos/CESNET/libyang/issues/481","id":380376598,"user":{"login":"rkrejci","id":6471899,"avatar_url":"https://avatars3.githubusercontent.com/u/6471899?v=4","gravatar_id":"","url":"https://api.github.com/users/rkrejci","html_url":"https://github.com/rkrejci","followers_url":"https://api.github.com/users/rkrejci/followers","following_url":"https://api.github.com/users/rkrejci/following{/other_user}","gists_url":"https://api.github.com/users/rkrejci/gists{/gist_id}","starred_url":"https://api.github.com/users/rkrejci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkrejci/subscriptions","organizations_url":"https://api.github.com/users/rkrejci/orgs","repos_url":"https://api.github.com/users/rkrejci/repos","events_url":"https://api.github.com/users/rkrejci/events{/privacy}","received_events_url":"https://api.github.com/users/rkrejci/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T08:48:19Z","updated_at":"2018-04-11T08:48:19Z","author_association":"CONTRIBUTOR","body":"Can you provide a link? I see `derived-from-or-self()` in RFCs:\r\n* https://tools.ietf.org/html/rfc8022\r\n* https://tools.ietf.org/html/rfc8349"}}
{"actor":{"display_login":"rkrejci"}}