Univention Bugzilla – Bug 23593
UDM-UMC: Suche nach allen DNS-Objekten nicht möglich
Last modified: 2011-12-13 15:49:41 CET
Es sollte möglich sein (wie bei computers/computer) nach allen DNS-Objekten im UMC zu suchen. Dies ist derzeit auch über umc-client mit objekttype=dns/dns nicht möglich: umc-client -U root -P univention command udm/query -f dns/dns -e -o \ '{"superordinate":"zoneName=umc2.dev,cn=dns,dc=umc2,dc=dev",'\ ' "objectType":"dns/dns","objectProperty":"name","objectPropertyValue":"*"}'
Das funktioniert mittlerweile
QA: Funktioniert prinzipiell, folgende Fehler sind aufgefallen (1) Die Suche mit einem Superordinate und name=* liefert den untenstehenden Traceback: umc-client -U **** -P **** command udm/query -f dns/dns \ -o superordinate=zoneName=univention.qa,cn=dns,dc=univention,dc=qa \ -o objectType=dns/dns -o objectProperty=name -o objectPropertyValue='*' ==================== string index out of range File '/usr/lib/pymodules/python2.6/notifier/threads.py', line 75, in _run tmp = self._function() File '/usr/lib/pymodules/python2.6/notifier/__init__.py', line 107, in __call__ return self._function( *tmp ) File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 245, in _thread result = module.search( request.options.get( 'container' ), request.options[ 'objectProperty' ], request.options[ 'objectPropertyValue' ], superordinate ) File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/ldap.py', line 232, in search return self.module.lookup( None, lo, filter_s, base = container, superordinate = superordinate, scope = scope ) File '/usr/lib/pymodules/python2.6/univention/admin/handlers/dns/dns.py', line 108, in lookup ret+= univention.admin.handlers.dns.srv_record.lookup(co, lo, filter_s, base, superordinate, scope, unique, required, timeout, sizelimit) File '/usr/lib/pymodules/python2.6/univention/admin/handlers/dns/srv_record.py', line 172, in lookup univention.admin.filter.walk(filter_p, univention.admin.mapping.mapRewrite, arg=mapping) File '/usr/lib/pymodules/python2.6/univention/admin/filter.py', line 206, in walk expression_walk_function(filter, arg) File '/usr/lib/pymodules/python2.6/univention/admin/mapping.py', line 184, in mapRewrite v=mapping.mapValue(filter.variable, filter.value) File '/usr/lib/pymodules/python2.6/univention/admin/mapping.py', line 112, in mapValue res=self._map[map_name][1](value) File '/usr/lib/pymodules/python2.6/univention/admin/handlers/dns/srv_record.py', line 100, in mapName return('_%s._%s' % (old[0], old[1])) ==================== (2) Die Suche ohne Superordinate nach name=* liefert eine leere Liste. umc-client -U **** -P **** command udm/query -f dns/dns \ -o superordinate=None -o objectType=dns/dns \ -o objectProperty=name -o objectPropertyValue='*' → REOPENED
(In reply to comment #2) > QA: Funktioniert prinzipiell, folgende Fehler sind aufgefallen > > (1) Die Suche mit einem Superordinate und name=* liefert den untenstehenden > Traceback: > > umc-client -U **** -P **** command udm/query -f dns/dns \ > -o superordinate=zoneName=univention.qa,cn=dns,dc=univention,dc=qa \ > -o objectType=dns/dns -o objectProperty=name -o objectPropertyValue='*' Das ist gefixt. > (2) Die Suche ohne Superordinate nach name=* liefert eine leere Liste. > > umc-client -U **** -P **** command udm/query -f dns/dns \ > -o superordinate=None -o objectType=dns/dns \ > -o objectProperty=name -o objectPropertyValue='*' Das ist nicht so einfach zu lösen. Dazu habe ich einen separaten Bug aufgemacht Bug #23804
(In reply to comment #3) > > QA: Funktioniert prinzipiell, folgende Fehler sind aufgefallen > > > > (1) Die Suche mit einem Superordinate und name=* liefert den untenstehenden > > Traceback: > > > > umc-client -U **** -P **** command udm/query -f dns/dns \ > > -o superordinate=zoneName=univention.qa,cn=dns,dc=univention,dc=qa \ > > -o objectType=dns/dns -o objectProperty=name -o objectPropertyValue='*' > > Das ist gefixt. → OK (In reply to comment #3) > > (2) Die Suche ohne Superordinate nach name=* liefert eine leere Liste. > > > > umc-client -U **** -P **** command udm/query -f dns/dns \ > > -o superordinate=None -o objectType=dns/dns \ > > -o objectProperty=name -o objectPropertyValue='*' > > Das ist nicht so einfach zu lösen. Dazu habe ich einen separaten Bug aufgemacht > > Bug #23804 → OK → VERIFIED
UCS 3.0-0 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert werden: "Clone This Bug"