Bug 22439

Summary: Übernahme der UDM Module
Product: UCS Reporter: Stefan Gohmann <gohmann>
Component: GeneralAssignee: Stefan Gohmann <gohmann>
Status: CLOSED FIXED QA Contact: Andreas Büsching <buesching>
Severity: normal    
Priority: P5 CC: botner, buesching, walkenhorst
Version: UCS 3.0   
Target Milestone: UCS 3.0 - MS1   
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:    
Bug Blocks: 28664    
Attachments: baseconfig gibt es nicht mehr
Das laden der Module funktioniert nicht mehr
Laden der Module
Laden der Syntax-Dateien

Description Stefan Gohmann univentionstaff 2011-05-06 11:40:53 CEST
Die UDM Module & Co. sollten nach UCS 3.0 übernommen werden:

 univention-directory-manager-module-example
 univention-directory-manager-modules
 univention-directory-reports
 univention-dojo

Das example Modul sollte nach branches/ucs-3.0/ucs/packaging, der Rest nach branches/ucs-3.0/ucs/management.
Comment 1 Stefan Gohmann univentionstaff 2011-05-09 15:24:10 CEST
*** Bug 22459 has been marked as a duplicate of this bug. ***
Comment 2 Stefan Gohmann univentionstaff 2011-05-10 06:50:17 CEST
(In reply to comment #0)
> Die UDM Module & Co. sollten nach UCS 3.0 übernommen werden:
> 
>  univention-directory-manager-module-example
>  univention-directory-manager-modules
>  univention-directory-reports
>  univention-dojo

Pakete sind übernommen, da UCR fehlt wurden die Pakete bisher nicht gebaut und getestet.
Comment 3 Andreas Büsching univentionstaff 2011-05-12 15:56:09 CEST
Created attachment 3263 [details]
baseconfig gibt es nicht mehr

Traceback beim Laden der Module
Comment 4 Andreas Büsching univentionstaff 2011-05-12 15:57:01 CEST
Created attachment 3264 [details]
Das laden der Module funktioniert nicht mehr

Traceback beim Laden der UDM Module
Comment 5 Andreas Büsching univentionstaff 2011-05-12 16:10:07 CEST
Created attachment 3265 [details]
Laden der Module

(In reply to comment #3)
> Created an attachment (id=3263) [details]
> baseconfig gibt es nicht mehr
> 
> Traceback beim Laden der Module

Mit dem Patch sollten die Module wieder geladen werden können
Comment 6 Stefan Gohmann univentionstaff 2011-05-13 06:48:04 CEST
(In reply to comment #3)
> Created an attachment (id=3263) [details]
> baseconfig gibt es nicht mehr
> 
> Traceback beim Laden der Module

Wie besprochen, das wird wieder rückgängig gemacht.
Comment 7 Andreas Büsching univentionstaff 2011-05-13 16:16:57 CEST
Es gibt noch einen Fehler beim Laden der Module:

  File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 914, in <module>
    update()
  File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 73, in update
    os.path.walk(dir, _walk, p)
  File "/usr/lib/python2.6/posixpath.py", line 236, in walk
    walk(name, func, arg)
  File "/usr/lib/python2.6/posixpath.py", line 228, in walk
    func(arg, top, names)
  File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 63, in _walk
    mod=__import__(mod, globals(), locals(), name)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/self.py", line 45, in <module>
    import univention.admin.handlers.users.user
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 607, in <module>
    syntax=univention.admin.syntax.module('shares/share'),
  File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 198, in __init__
    mymodule = __import__( 'univention/admin/handlers/%s' % type)
ImportError: Import by filename is not supported.
Comment 8 Andreas Büsching univentionstaff 2011-05-16 10:35:53 CEST
Created attachment 3272 [details]
Laden der Syntax-Dateien

Wenn ich mit dem Patch das Problem aus comment 7 fixe, dann komme ich zum nächsten Traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 38, in <module>
    import univention.admin.modules
  File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 915, in <module>
    update()
  File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 74, in update
    os.path.walk(dir, _walk, p)
  File "/usr/lib/python2.6/posixpath.py", line 236, in walk
    walk(name, func, arg)
  File "/usr/lib/python2.6/posixpath.py", line 228, in walk
    func(arg, top, names)
  File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 64, in _walk
    mod=__import__(mod, globals(), locals(), name)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/self.py", line 37, in <module>
    import univention.admin.handlers.settings.user
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/settings/user.py", line 263, in <module>
    class object(univention.admin.handlers.simpleLdap):
AttributeError: 'module' object has no attribute 'handlers'
Comment 9 Stefan Gohmann univentionstaff 2011-05-16 16:43:47 CEST
Das update() am Ende von modules.py habe ich auskommentiert, ansonsten sind wir in einer Import-Rekursion. Bisher habe ich noch keine negativen Auswirkungen feststellen können.
Comment 10 Andreas Büsching univentionstaff 2011-05-30 16:49:53 CEST
Ich kriege beim Laden der UMD Module noch folgende DeprecationWarnungs:

/usr/lib/pymodules/python2.6/univention/admin/localization.py:64: DeprecationWarning: object.__init__() takes no parameters
  super (str, self).__init__ (self.data)
/usr/lib/pymodules/python2.6/univention/admin/handlers/networks/network.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sys, string, re , copy, time, sha
   ...done.
Comment 11 Stefan Gohmann univentionstaff 2011-06-07 09:21:00 CEST
Die Pakete wurden soweit übernommen.
Comment 12 Janek Walkenhorst univentionstaff 2011-06-16 15:46:01 CEST
univention-directory-reports hängt von python-univention-directory-reports hängt von univention-webui ab, was es in UCS 3.0 nicht mehr gibt.
Comment 13 Stefan Gohmann univentionstaff 2011-07-25 07:31:38 CEST
*** Bug 23012 has been marked as a duplicate of this bug. ***
Comment 14 Stefan Gohmann univentionstaff 2011-07-25 15:25:28 CEST
(In reply to comment #12)
> univention-directory-reports hängt von python-univention-directory-reports
> hängt von univention-webui ab, was es in UCS 3.0 nicht mehr gibt.

Die Abhängigkeit wurde entfernt.
Comment 15 Andreas Büsching univentionstaff 2011-08-06 11:08:46 CEST
Die Pakete wurden übernommen
Comment 16 Sönke Schwardt-Krummrich univentionstaff 2011-12-13 15:41:45 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"