mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2026-04-26 16:15:54 +03:00
[GH-ISSUE #73] some more changes appear to be necessary for api v1 compatibility #42
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
question
upstream
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsedit#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZaphodB on GitHub (Jan 8, 2016).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/73
Originally assigned to: @tuxis-ie on GitHub.
I was only able to restore function with api v1 doing the following but i'm sure there is a cleaner way to get there, so this is more a note that there seem to be some issues and not a suggestion to make use of the changes below. ;-)
@tuxis-ie commented on GitHub (Jan 13, 2016):
I don't get the $url part. https://github.com/tuxis-ie/nsedit/blob/master/includes/misc.inc.php#L54 should set $apipath if needed.
@Stary2001 commented on GitHub (Jan 28, 2016):
with APIv1, the zoneurl returned by powerdns looks like "api/v1/zone/path", this patch fixes it by not including $apipath if the path already starts with "api/v1", the problem before was the API path was being added twice: once by powerdns, once by us. Possibly a cleaner fix would be to fix zoneurl when we get it either in the list action or in get_all_zones.
@celevra commented on GitHub (Feb 16, 2016):
the patch worked for me until there is a real fix, thank you!
@thekoma commented on GitHub (Feb 26, 2016):
More and more changes are coming on the 4.0 (alpha 2 has added new features)
@celevra commented on GitHub (Mar 2, 2016):
jep, i've updated today and now nsedit can't fetch my records anymore
@tuxis-ie commented on GitHub (Mar 2, 2016):
You've updated what?
@celevra commented on GitHub (Mar 2, 2016):
pdns
ns html # dpkg -l | grep pdns
ii pdns-backend-mysql 0.0.781gfbb356b-1pdns.trusty amd64 generic MySQL backend for PowerDNS
ii pdns-server 0.0.781gfbb356b-1pdns.trusty amd64 extremely powerful and versatile nameserver
@tuxis-ie commented on GitHub (Mar 2, 2016):
Yes. Well, as long as pdns has not completely finished their API, I'm not in the mood to adjust nsedit for it. e.g., https://github.com/PowerDNS/pdns/issues/3253 is open and that's something I would really like to see. If anyone is willing to fix this, please send a PR. But keep in mind that stable pdns should still work..
@HLFH commented on GitHub (Mar 2, 2016):
In the meantime before the final release of PowerDNS 4.0, we could use pdnsutil in CLI.
@tuxis-ie commented on GitHub (Mar 2, 2016):
@zeha has just created https://github.com/PowerDNS/pdns/pull/3495 which should make this pretty easy. I'll track that PR and make sure nsedit supports it ASAP. (Feel free to write a PR to implement this).
@petzsch commented on GitHub (Apr 27, 2016):
just wanted to note that alpha2 is included in ubuntu 16.04. The patch above got rid of some 404 api errors when editing zones. But trying to add an A Record, I still get:
API Error 422: Key 'ttl' not an Integer or not present
Any help with this would be appreciated.
@julian7 commented on GitHub (Jun 10, 2016):
It looks like there are a lot of API changes.
Certainly all of the methods might require some changes.
@tuxis-ie commented on GitHub (Jun 10, 2016):
Yes. I`m planning to create a 2.0 branche to fix compatibility with the new pdns api. Help would be much appreciated
@tuxis-ie commented on GitHub (Aug 4, 2016):
Working on this, nearing completion.
I'm expection to release NSEdit 1.0 tomorrow.