Bug 23593 - UDM-UMC: Suche nach allen DNS-Objekten nicht möglich
UDM-UMC: Suche nach allen DNS-Objekten nicht möglich
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Domain management (Generic)
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0 - MS2
Assigned To: Andreas Büsching
Alexander Kläser
: interim-6
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-13 09:58 CEST by Alexander Kläser
Modified: 2011-12-13 15:49 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2011-09-13 09:58:33 CEST
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":"*"}'
Comment 1 Andreas Büsching univentionstaff 2011-09-21 20:36:18 CEST
Das funktioniert mittlerweile
Comment 2 Alexander Kläser univentionstaff 2011-09-23 11:40:13 CEST
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
Comment 3 Andreas Büsching univentionstaff 2011-09-25 17:48:25 CEST
(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
Comment 4 Alexander Kläser univentionstaff 2011-09-26 16:58:36 CEST
(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
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2011-12-13 15:49:41 CET
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"