#956 Error message for Duplicate DNS record does not get forwarded to WebUI
Closed: Fixed None Opened 13 years ago by admiyo.

Add an AAAA record.
Add another with exactly the same values.

Front end shows "AN internal error occurs.

Error log has the following.

[Sat Feb 12 02:15:55 2011] [error] ipa: ERROR: non-public: TypeError: object of type 'NoneType' has no len()
[Sat Feb 12 02:15:55 2011] [error] Traceback (most recent call last):
[Sat Feb 12 02:15:55 2011] [error]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 211, in wsgi_execute
[Sat Feb 12 02:15:55 2011] [error]     result = self.Command[name](*args, **options)
[Sat Feb 12 02:15:55 2011] [error]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 422, in __call__
[Sat Feb 12 02:15:55 2011] [error]     ret = self.run(*args, **options)
[Sat Feb 12 02:15:55 2011] [error]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 728, in run
[Sat Feb 12 02:15:55 2011] [error]     return self.execute(*args, **options)
[Sat Feb 12 02:15:55 2011] [error]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/baseldap.py", line 510, in execute
[Sat Feb 12 02:15:55 2011] [error]     entry_attrs = self.args_options_2_entry(*keys, **options)
[Sat Feb 12 02:15:55 2011] [error]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/dns.py", line 594, in args_options_2_entry
[Sat Feb 12 02:15:55 2011] [error]     has_cli_options(options, self.no_option_msg)
[Sat Feb 12 02:15:55 2011] [error]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/dns.py", line 149, in has_cli_options
[Sat Feb 12 02:15:55 2011] [error]     map(lambda x: len(x), entry.values()))
[Sat Feb 12 02:15:55 2011] [error]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/dns.py", line 149, in <lambda>
[Sat Feb 12 02:15:55 2011] [error]     map(lambda x: len(x), entry.values()))
[Sat Feb 12 02:15:55 2011] [error] TypeError: object of type 'NoneType' has no len()

This seems to be a bug in the DNS plugin. Stealing from Rob.

Adam, the patch is on list but I couldn't reproduce the issue. Would you mind retesting it with the patch applied?

The patch makes the error go away in the log: I think that is why I am not seeing it.

created a record:

test6 aaaa FEC0::ABCD

Tried to create and identical one afterwards. Record Add succeeded, but no new record was created.

I suspect that that this is OK, since the DNS back end code did not complain.

Metadata Update from @admiyo:
- Issue assigned to jhrozek
- Issue set to the milestone: FreeIPA 2.0.1 RC (bug fixing)

7 years ago

Login to comment on this ticket.

Metadata