{"action":"created","issue":{"url":"https://api.github.com/repos/PowerDNS/pdns/issues/4132","repository_url":"https://api.github.com/repos/PowerDNS/pdns","labels_url":"https://api.github.com/repos/PowerDNS/pdns/issues/4132/labels{/name}","comments_url":"https://api.github.com/repos/PowerDNS/pdns/issues/4132/comments","events_url":"https://api.github.com/repos/PowerDNS/pdns/issues/4132/events","html_url":"https://github.com/PowerDNS/pdns/issues/4132","id":164292779,"number":4132,"title":"API zone create  - nameservers array / NS RrSet","user":{"login":"adrpp","id":15801649,"avatar_url":"https://avatars.githubusercontent.com/u/15801649?v=3","gravatar_id":"","url":"https://api.github.com/users/adrpp","html_url":"https://github.com/adrpp","followers_url":"https://api.github.com/users/adrpp/followers","following_url":"https://api.github.com/users/adrpp/following{/other_user}","gists_url":"https://api.github.com/users/adrpp/gists{/gist_id}","starred_url":"https://api.github.com/users/adrpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrpp/subscriptions","organizations_url":"https://api.github.com/users/adrpp/orgs","repos_url":"https://api.github.com/users/adrpp/repos","events_url":"https://api.github.com/users/adrpp/events{/privacy}","received_events_url":"https://api.github.com/users/adrpp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PowerDNS/pdns/labels/auth","name":"auth","color":"eb6420"},{"url":"https://api.github.com/repos/PowerDNS/pdns/labels/defect","name":"defect","color":"cccccc"},{"url":"https://api.github.com/repos/PowerDNS/pdns/labels/web","name":"web","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/PowerDNS/pdns/milestones/27","html_url":"https://github.com/PowerDNS/pdns/milestones/auth-4.0.x","labels_url":"https://api.github.com/repos/PowerDNS/pdns/milestones/27/labels","id":1791646,"number":27,"title":"auth-4.0.x","description":"","creator":{"login":"pieterlexis","id":731232,"avatar_url":"https://avatars.githubusercontent.com/u/731232?v=3","gravatar_id":"","url":"https://api.github.com/users/pieterlexis","html_url":"https://github.com/pieterlexis","followers_url":"https://api.github.com/users/pieterlexis/followers","following_url":"https://api.github.com/users/pieterlexis/following{/other_user}","gists_url":"https://api.github.com/users/pieterlexis/gists{/gist_id}","starred_url":"https://api.github.com/users/pieterlexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pieterlexis/subscriptions","organizations_url":"https://api.github.com/users/pieterlexis/orgs","repos_url":"https://api.github.com/users/pieterlexis/repos","events_url":"https://api.github.com/users/pieterlexis/events{/privacy}","received_events_url":"https://api.github.com/users/pieterlexis/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":2,"state":"open","created_at":"2016-05-27T09:40:44Z","updated_at":"2016-07-07T12:06:40Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-07T12:00:33Z","updated_at":"2016-07-07T12:24:23Z","closed_at":null,"body":"Hello,\r\n\r\nI've noticed 'strange' behavior while creating new zone containing NS records via API.\r\npdns version / dist package: 4.0.0~alpha2-3build1 @ ubuntu 16.04 lts\r\n\r\nassume having two NS fqdns (ns1.example.org. and ns2.example.org.)\r\n\r\nscenario A)\r\n- zone's nameservers array filled with valid NS fqdn's\r\n- NS rrset present (containing two records, each record.content equals to certain NS fqdn)\r\n- result is newly created zone, but NS RrSet contains 4 records (each NS fqdn duplicated)\r\n\r\nscenario B)\r\n- zones nameservers array empty\r\n- NS rrset present (containing two records, each record.content equals to certain NS fqdn)\r\n- result is newly created zone with 2 Records inside of the NS RrSet - which is correct\r\n\r\nIs this by design or may it be considered as a bug ?\r\nAfaik there needs to be checked whether the incoming zone object contains RrSet of type NS or not.\r\nIf so, there shouldn't take palce any 'appending' of RR's\r\n\r\nThank you,\r\nRegards,\r\nAdrian"},"comment":{"url":"https://api.github.com/repos/PowerDNS/pdns/issues/comments/231062552","html_url":"https://github.com/PowerDNS/pdns/issues/4132#issuecomment-231062552","issue_url":"https://api.github.com/repos/PowerDNS/pdns/issues/4132","id":231062552,"user":{"login":"adrpp","id":15801649,"avatar_url":"https://avatars.githubusercontent.com/u/15801649?v=3","gravatar_id":"","url":"https://api.github.com/users/adrpp","html_url":"https://github.com/adrpp","followers_url":"https://api.github.com/users/adrpp/followers","following_url":"https://api.github.com/users/adrpp/following{/other_user}","gists_url":"https://api.github.com/users/adrpp/gists{/gist_id}","starred_url":"https://api.github.com/users/adrpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrpp/subscriptions","organizations_url":"https://api.github.com/users/adrpp/orgs","repos_url":"https://api.github.com/users/adrpp/repos","events_url":"https://api.github.com/users/adrpp/events{/privacy}","received_events_url":"https://api.github.com/users/adrpp/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T12:24:23Z","updated_at":"2016-07-07T12:24:23Z","body":"@zeha \r\nwhy ? because of including custom NS RrSet into the body ?"}}
{"actor":{"display_login":"adrpp"}}