{"action":"closed","issue":{"url":"https://api.github.com/repos/sysrepo/sysrepo/issues/1529","repository_url":"https://api.github.com/repos/sysrepo/sysrepo","labels_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/1529/labels{/name}","comments_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/1529/comments","events_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/1529/events","html_url":"https://github.com/sysrepo/sysrepo/issues/1529","id":459925961,"node_id":"MDU6SXNzdWU0NTk5MjU5NjE=","number":1529,"title":"RPC subscription not work with x-path /ietf-netconf:copy-config","user":{"login":"molyland","id":2271009,"node_id":"MDQ6VXNlcjIyNzEwMDk=","avatar_url":"https://avatars1.githubusercontent.com/u/2271009?v=4","gravatar_id":"","url":"https://api.github.com/users/molyland","html_url":"https://github.com/molyland","followers_url":"https://api.github.com/users/molyland/followers","following_url":"https://api.github.com/users/molyland/following{/other_user}","gists_url":"https://api.github.com/users/molyland/gists{/gist_id}","starred_url":"https://api.github.com/users/molyland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molyland/subscriptions","organizations_url":"https://api.github.com/users/molyland/orgs","repos_url":"https://api.github.com/users/molyland/repos","events_url":"https://api.github.com/users/molyland/events{/privacy}","received_events_url":"https://api.github.com/users/molyland/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-06-24T14:31:11Z","updated_at":"2020-01-08T14:14:48Z","closed_at":"2020-01-08T14:14:47Z","author_association":"NONE","body":"I implemented two rpc subscription, \r\n\r\nsr_subscription_ctx_t *subscr = NULL;\r\n\r\n// first\r\nsr_rpc_subscribe(session, \"/my-module:exec-cmd\", RpcCallback, this, SR_SUBSCR_DEFAULT, &subscr);\r\n\r\n// second\r\nsr_rpc_subscribe(session, \"/ietf-netconf:copy-config\", RpcCallback, this, SR_SUBSCR_DEFAULT, &subscr);\r\n\r\nI test with two xml by netopeer2-cli:\r\n\r\n// first\r\n\\<exec-cmd xmlns=\"http://example.com/ns/yang/my-module\"\\>\r\n    \\<commandType>test</commandType\\>\r\n\\</exec-cmd\\>\r\n\r\nuser-rpc --content /home/user/test_rpc_call_1.xml\r\n\r\n// second\r\n\\<copy-config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"\\>\r\n   \\<target\\>\r\n        \\<startup/\\>\r\n    \\</target\\>\r\n    \\<source\\>\r\n        \\<running/\\>\r\n    \\</source\\>\r\n\\</copy-config\\>\r\n\r\nuser-rpc --content /home/user/test_rpc_call_2.xml\r\n\r\nIn the first case I see the log of callback (RpcCallback), in second case callback not called correctly\r\n\r\n\r\n"}}
{"actor":{"display_login":"michalvasko"}}