I don’t think 201 is the proper response REST should be returning, I manged to get the following from the log file:
12.07.22 18:04:11.867 MODULE ( INFO ) : Found LDAP object relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus
12.07.22 18:04:11 INFO ( 4018) : 201 PUT /udm/dns/host_record/relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus (127.0.0.1) 37.20ms
12.07.22 18:04:11 INFO ( 4039) : 201 PUT /udm/dns/host_record/relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus (0.0.0.0) 35.78ms
12.07.22 18:04:11.897 ADMIN ( INFO ) : identify: found module dns/host_record on relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus
12.07.22 18:04:11.900 ADMIN ( INFO ) : identify: found module dns/forward_zone on zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus
12.07.22 18:04:11.900 LDAP ( INFO ) : uldap.search filter=(&(objectClass=dNSZone)(relativeDomainName=@)(!(zoneName=*.in-addr.arpa))(!(zoneName=*.ip6.arpa))) base=zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus scope=base attr=['*', 'entryUUID', 'entryCSN', 'modifyTimestamp'] unique=1 required=1 timeout=-1 sizelimit=0
12.07.22 18:04:11.904 MODULE ( INFO ) : Moving LDAP object relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus to relativeDomainName=test,relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus
12.07.22 18:04:11.904 ADMIN ( INFO ) : move: called for relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus to relativeDomainName=test,relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus
12.07.22 18:04:11.905 MODULE ( WARN ) : Failed to move LDAP object relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus: invalidOperation: Objects of the "dns/host_record" object type can not be moved.
12.07.22 18:04:11 ERROR ( 4039) : Uncaught exception PUT /udm/dns/host_record/relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus (0.0.0.0)
HTTPServerRequest(protocol='http', host='oogieboogie.nightmare.haus', method='PUT', uri='/udm/dns/host_record/relativeDomainName=test,zoneName=nightmare.haus,cn=dns,dc=nightmare,dc=haus', version='HTTP/1.1', remote_ip='0.0.0.0')
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 586, in move
obj.move(dest)
File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 706, in move
raise univention.admin.uexceptions.invalidOperation(_('Objects of the "%s" object type can not be moved.') % (self.module,))
univention.admin.uexceptions.invalidOperation: Objects of the "dns/host_record" object type can not be moved.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "/usr/lib/python3/dist-packages/univention/admin/rest/module.py", line 2849, in put
yield self.move(module, dn, position)
File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "/usr/lib/python3/dist-packages/univention/admin/rest/module.py", line 3012, in move
dn = yield self.pool.submit(module.move, dn, position)
File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 590, in move
UDM_Error(e).reraise()
File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 363, in reraise
six.reraise(self.__class__, self, self.exc_info[2])
File "/usr/lib/python3/dist-packages/six.py", line 692, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 586, in move
obj.move(dest)
File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 706, in move
raise univention.admin.uexceptions.invalidOperation(_('Objects of the "%s" object type can not be moved.') % (self.module,))
univention.management.console.modules.udm.udm_ldap.UDM_Error: This operation is not allowed on this object. Objects of the "dns/host_record" object type can not be moved.
12.07.22 18:04:11.985 MODULE ( INFO ) : Searching for LDAP objects: container = , filter = relativeDomainName=test, superordinate = None
12.07.22 18:04:11.986 LDAP ( INFO ) : uldap.search filter=(&(objectClass=dNSZone)(!(relativeDomainName=@))(!(zoneName=*.in-addr.arpa))(!(zoneName=*.ip6.arpa))(!(cNAMERecord=*))(!(sRVRecord=*))(|(aRecord=*)(aAAARecord=*)(mXRecord=*)(univentionObjectType=dns/host_record))(relativeDomainName=test)) base= scope=sub attr=['*', 'entryUUID', 'entryCSN', 'modifyTimestamp'] unique=0 required=0 timeout=-1 sizelimit=400000