You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In some situations, getting domain info for a DNSSEC enabled domain in CentralNIC causes problems:
Traceback (most recent call last):
File "/home/thms/projects/epp/test.py", line 35, in <module>
domain_check = domain.info('solutions.gl')
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thms/projects/epp/venv/lib64/python3.11/site-packages/pyepp/domain.py", line 182, in info
'flag': raw_response.find('flag').text,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The reason appears to be CentralNIC using unexpected names under the dns_key sections.
If I change the names in both dns_key sections in domain.py function definition for info(), changing:
flag -> flags algorithm -> alg public_key -> pubKey
Describe the bug
In some situations, getting domain info for a DNSSEC enabled domain in CentralNIC causes problems:
The reason appears to be CentralNIC using unexpected names under the
dns_key
sections.If I change the names in both
dns_key
sections indomain.py
function definition forinfo()
, changing:flag
->flags
algorithm
->alg
public_key
->pubKey
Like this:
...it starts working for me. This is obviously not a solution, as it would most likely break something else.
To Reproduce
This is a real life raw_response from CentralNIC, of a response that causes the problem.
Expected behaviour
Everything should work and return the info present in the domain
Desktop (please complete the following information):
Python version
Additional context
Running out of a venv with nothing but pyepp installed.
I have
The text was updated successfully, but these errors were encountered: