Bug 41164

Summary: univention.admin.syntax import depends on previous import
Product: UCS Reporter: Jens Thorp-Hansen <thorp-hansen>
Component: UDM (Generic)Assignee: UMC maintainers <umc-maintainers>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P5 CC: best, geerds, gohmann, troeder, walkenhorst
Version: UCS 3.2   
Target Milestone: ---   
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: 33359    
Bug Blocks:    

Description Jens Thorp-Hansen univentionstaff 2016-04-27 15:22:56 CEST
Possible regression - have a look at 
Ticket#2016042521000127

This makes the line "import base64“ in at least WindowsCertificateHook.py neccessary (line is atm missing)

+++ This bug was initially created as a clone of Bug #33359 +++

root@master:~# python
Python 2.6.6 (r266:84292, Jul 19 2013, 07:37:05) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import univention.admin.syntax as udm_syntax
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 37, in <module>
    import univention.admin.modules
  File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 978, in <module>
    univention.admin.syntax.import_syntax_files()
AttributeError: 'module' object has no attribute 'syntax'
>>>

Python 2.6.6 (r266:84292, Jul 19 2013, 07:37:05) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import univention.admin.modules as udm_modules
>>> import univention.admin.syntax as udm_syntax
>>>
Comment 1 Florian Best univentionstaff 2016-04-27 15:37:39 CEST
(In reply to Jens Thorp-Hansen from comment #0)
Yes, base64 is not used in syntax.py and has therefore been removed from it.
It is a bug in WindowsCertificateHook.py which didn't import its necessary modules.