Bug 41164 - univention.admin.syntax import depends on previous import
univention.admin.syntax import depends on previous import
Status: RESOLVED INVALID
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on: 33359
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-27 15:22 CEST by Jens Thorp-Hansen
Modified: 2018-04-13 13:28 CEST (History)
5 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 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.