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

Account field is not set while createZoneFromResource #47

Closed
rodehoed opened this issue Nov 6, 2020 · 2 comments · Fixed by #48
Closed

Account field is not set while createZoneFromResource #47

rodehoed opened this issue Nov 6, 2020 · 2 comments · Fixed by #48

Comments

@rodehoed
Copy link

rodehoed commented Nov 6, 2020

The account field is not set when using the createZoneFromResource function and setting:

$newZone->setAccount("1024");

Detailed description

Below is the object before it is send to pdns api:

  ["name":"Exonet\Powerdns\Resources\Zone":private]=>
  string(21) "example.net."
  ["kind":"Exonet\Powerdns\Resources\Zone":private]=>
  string(6) "Native"
  ["serial":"Exonet\Powerdns\Resources\Zone":private]=>
  NULL
  ["notifiedSerial":"Exonet\Powerdns\Resources\Zone":private]=>
  NULL
  ["masters":"Exonet\Powerdns\Resources\Zone":private]=>
  array(0) {
  }
  ["dnssec":"Exonet\Powerdns\Resources\Zone":private]=>
  bool(false)
  ["nsec3param":"Exonet\Powerdns\Resources\Zone":private]=>
  NULL
  ["soaEdit":"Exonet\Powerdns\Resources\Zone":private]=>
  string(5) "EPOCH"
  ["soaEditApi":"Exonet\Powerdns\Resources\Zone":private]=>
  string(5) "EPOCH"
  ["apiRectify":"Exonet\Powerdns\Resources\Zone":private]=>
  bool(true)
  ["account":"Exonet\Powerdns\Resources\Zone":private]=>
  string(2) "1024"
  ["nameservers":"Exonet\Powerdns\Resources\Zone":private]=>
  array(3) {
    [0]=>
    string(16) "ns1.example.net."
    [1]=>
    string(16) "ns2.example.eu."
    [2]=>
    string(16) "ns3.example.net."
  }
}

Lookin in the database field, it's just empty not even null.

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

  • Version used (e.g. PHP 7.1): PHP 7.4.11
  • PDNS: 4.3
  • Operating system and version (e.g. Ubuntu 16.04, Windows 7): RHEL 8
@rodehoed
Copy link
Author

rodehoed commented Nov 6, 2020

I forget to mention that this is the request being send (using the cli logger) and account is missing:

payload:

{"name":"exampl.net.","kind":"Native","dnssec":false,"api_rectify":true,"soa_edit":"EPOCH","soa_edit_api":"EPOCH","masters":[],"nameservers":["ns1.example.nl.","ns2.example.nl.","ns3.example.nl."],"nsec3param":null}

@styxit
Copy link
Member

styxit commented Nov 6, 2020

Thanks for reporting this. We were able to reproduce this and a fix will be released soon. See #48

@trizz trizz closed this as completed in #48 Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants