Univention Bugzilla – Full Text Bug Listing |
Summary: | Read-Only Attribute FQDN | ||
---|---|---|---|
Product: | UCS | Reporter: | Stefan Gohmann <gohmann> |
Component: | UMC - Computers | Assignee: | Andreas Büsching <buesching> |
Status: | CLOSED FIXED | QA Contact: | Alexander Kläser <klaeser> |
Severity: | enhancement | ||
Priority: | P5 | CC: | buesching, gohmann, hahn, requate, schwardt |
Version: | UCS 2.4 | ||
Target Milestone: | UCS 2.4-3 | ||
Hardware: | Other | ||
OS: | Linux | ||
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: | |||
Bug Depends on: | 21493, 22693 | ||
Bug Blocks: | 22142, 34327 |
Description
Stefan Gohmann
2011-04-07 13:53:08 CEST
Bitte auch direkt für UCS DVS bereitstellen. Es kann jetzt nach dem Attribut gesucht werden. Einfache und komplexere Filter müssen funktionieren: udm computers/windows list --filter fqdn=wins1.uvmm.test oder auch udm computers/windows list --filter '(&(fqdn=wins1.uvmm.test)(ip=192.168.0.190))' ChangeLog-Eintrag wurde hinzugefügt In UMC wird dem Filter String None übergeben. Das wird jetzt vorher geprüft. QA: Soweit OK, es tritt derzeit noch ein Traceback auf, wenn bspw. nach '*' im Filter gesucht wird, da der String nach '.' aufgesplittet wird. Sobald ein '.' im Suchstring enthalten ist, ist das Verhalten wie erwartet: ==================== root@qamaster:~# udm computers/mobileclient list --filter fqdn="mobile2.*" | grep DN DN: cn=mobile2,cn=computers,dc=univention,dc=qa root@qamaster:~# udm computers/mobileclient list --filter fqdn="*" Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 233, in doit output = univention.admincli.admin.doit(arglist) File "/usr/lib/python2.4/site-packages/univention/admincli/admin.py", line 1055, in doit for object in univention.admin.modules.lookup(module, co, lo, scope='sub', superordinate=superordinate, base=position.getDn(), filter=filter): File "/usr/lib/python2.4/site-packages/univention/admin/modules.py", line 740, in lookup tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit) File "/usr/lib/python2.4/site-packages/univention/admin/handlers/computers/mobileclient.py", line 604, in lookup filter_s = univention.admin.filter.replace_fqdn_filter( filter_s ) File "/usr/lib/python2.4/site-packages/univention/admin/filter.py", line 222, in replace_fqdn_filter host, domain = value.split( '.', 1 ) ValueError: need more than 1 value to unpack ==================== → REOPENED QA: Changelog-Eintrag vorhanden. (In reply to comment #4) > QA: Soweit OK, es tritt derzeit noch ein Traceback auf, wenn bspw. nach '*' im > Filter gesucht wird, da der String nach '.' aufgesplittet wird. Sobald ein '.' > im Suchstring enthalten ist, ist das Verhalten wie erwartet: Es funktionieren jetzt auch Suchfilter ohne Punkt. In dem Fall wird der Suchfilter im Hostname und der Domäne gesucht. Es muss aber nur in einem von beiden existieren. Eine neue Version baut. QA: OK, das Verhalten ist jetzt wie erwartet: ==================== root@qamaster:~# function udm_fqdn { udm computers/mobileclient list --filter fqdn="$1" | grep DN ; } root@qamaster:~# udm_fqdn "*" DN: cn=mobile1,cn=computers,dc=univention,dc=qa DN: cn=mobile2,cn=computers,dc=univention,dc=qa root@qamaster:~# udm_fqdn "*.*" DN: cn=mobile1,cn=computers,dc=univention,dc=qa DN: cn=mobile2,cn=computers,dc=univention,dc=qa root@qamaster:~# udm_fqdn "*.*vent*" DN: cn=mobile1,cn=computers,dc=univention,dc=qa DN: cn=mobile2,cn=computers,dc=univention,dc=qa root@qamaster:~# udm_fqdn "*.*ven*.qa" DN: cn=mobile1,cn=computers,dc=univention,dc=qa DN: cn=mobile2,cn=computers,dc=univention,dc=qa root@qamaster:~# udm_fqdn "*.*ven*.qa" DN: cn=mobile1,cn=computers,dc=univention,dc=qa DN: cn=mobile2,cn=computers,dc=univention,dc=qa root@qamaster:~# udm_fqdn "*ob*.*ven*.qa" DN: cn=mobile1,cn=computers,dc=univention,dc=qa DN: cn=mobile2,cn=computers,dc=univention,dc=qa root@qamaster:~# udm_fqdn "mob*.*vent*" DN: cn=mobile1,cn=computers,dc=univention,dc=qa DN: cn=mobile2,cn=computers,dc=univention,dc=qa ==================== UCS 2.4-3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug". |