Bug 21493 - Read-Only Attribute FQDN
Read-Only Attribute FQDN
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 2.4
Other Linux
: P5 enhancement (vote)
: UCS 2.4-2
Assigned To: Andreas Büsching
Alexander Kläser
:
Depends on:
Blocks: 22139 22142 22693
  Show dependency treegraph
 
Reported: 2011-02-07 12:15 CET by Andreas Büsching
Modified: 2014-03-12 17:10 CET (History)
2 users (show)

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 Andreas Büsching univentionstaff 2011-02-07 12:15:32 CET
Es sollte am Rechner-Objekt ein Attribut geben, dass den FQDN des Rechners. Das ist in mehreren Fällen hilfreich.
Comment 1 Andreas Büsching univentionstaff 2011-02-07 15:50:14 CET
Das Attribut ist jetzt an allen Computer-Typen verfügbar, wenn name und domainname gesetzt sind.

ChangeLog-Eintrag ist hinzugefügt
Comment 2 Alexander Kläser univentionstaff 2011-02-25 11:59:43 CET
QA: OK, Funktionalität konnte erfolgreich geteste werden:

root@qamaster:~# udm computers/domaincontroller_master list | grep fqdn
  fqdn: qamaster.univention.qa
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2011-03-07 13:47:07 CET
Folgender Traceback ist bei den ucs-test UDM-Tests aufgetreten:

* Starting '/usr/share/ucs-test/scripts/68_udm-extendedattribute/48_hook_open' at Sa 12. Feb 07:29:01 CET 2011
* Message: 'Check hook_open'

[...]

info 2011-02-12 07:29    EXECUTING: univention-directory-manager 'computers/managedclient' remove --dn "cn=fwvltang,cn=computers,dc=univention,dc=qa"
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 1033, in doit
    object.remove(recursive)
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 430, in remove
    return self._remove(remove_childs)
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 852, in _remove
    self._ldap_pre_remove()
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/computers/managedclient.py", line 484, in _ldap_pre_remove
    self.open()
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/computers/managedclient.py", line 379, in open
    univention.admin.handlers.simpleComputer.open( self )
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 1167, in open
    self[ 'fqdn' ] = '%s.%s' % ( self[ 'name' ], self[ 'domain' ] )
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 2233, in __setitem__
    super(simpleComputer, self).__setitem__(key, value)
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 189, in __setitem__
    raise univention.admin.uexceptions.valueMayNotChange, _('key=%s old=%s new=%s') % (key, self[key], value)
valueMayNotChange: key=fqdn old=fwvltang.yqbdyofn new=fwvltang.stitwsbw
info 2011-02-12 07:29    failed removing computers/managedclient object fwvltang
Comment 4 Andreas Büsching univentionstaff 2011-03-21 17:25:53 CET
Das Attribut wird jetzt direkt über self.info geschrieben. Damit wird die Prüfung in __setitem__ umgangen.
Comment 5 Alexander Kläser univentionstaff 2011-03-22 15:40:16 CET
QA: Ok, der hook_open-Test in ucs-test-udm-extendedattribute lief jetzt erfolgreich durch.
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2011-04-04 15:47:38 CEST
UCS 2.4-2 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".