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

Doesn't work on Ubuntu 16.04 - multiple errors, XML 3.6 not supported (yet) #48

Open
dagelf opened this issue May 14, 2016 · 3 comments

Comments

@dagelf
Copy link

dagelf commented May 14, 2016

First off, Bind9 uses XML 3.6 which isn't supported. Editing the xml library to just use the XML 3.5 parser seems to work... but then it fails not supporting any of the HMACs - no matter which one you use - "TSIG algorithm hmac-sha256. is not supported"

I'm not proficient enough in Python to fix this myself. The XML library claims:
XmlError at /info/127.0.0.1/

u'Support must be added before being able to support newly-encountered XML version 3.6.'

Request Method: GET
Request URL: http://127.0.0.1:8000/info/127.0.0.1/
Django Version: 1.9.6
Exception Type: XmlError
Exception Value:

u'Support must be added before being able to support newly-encountered XML version 3.6.'

Exception Location: /usr/local/lib/python2.7/dist-packages/pybindxml/reader.py in get_stats, line 68
Python Executable: /usr/bin/python
Python Version: 2.7.11
Python Path:

['/usr/src/binder',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']

Server time: Sat, 14 May 2016 05:23:23 -0400

I'm keen to learn, any ideas? How do I add Unicode support to XML 3.6 library? Is that the main problem? Easier to just use an older BIND?

@jforman
Copy link
Owner

jforman commented May 16, 2016

I've got the 3.6 fix in a local client, just adding tests now. Should hopefully submit in the next 24 hours.

I'm keen to hear about your sha256 problems. Could you post your key section (edit the key to change some of the hash if you so choose?) I can try that out locally here on my bind 9.10.3-P3 install.

@jforman
Copy link
Owner

jforman commented May 16, 2016

This is fixed by jforman/pybindxml@bba5c1a

Upgrade to that commit to pybindxml v0.6 on pypi.

@jforman
Copy link
Owner

jforman commented May 16, 2016

As for Unicode support, I have not spent much time digging into that. Do you have any specific errors you've encountered trying to do it on your own?

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

No branches or pull requests

2 participants