Univention Bugzilla – Attachment 10875 Details for
Bug 54196
crash at the VERY end of the SYSVOL copy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug54196.patch
bug54196.patch (text/plain), 1.24 KB, created by
Arvid Requate
on 2021-12-09 11:29:42 CET
(
hide
)
Description:
bug54196.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2021-12-09 11:29:42 CET
Size:
1.24 KB
patch
obsolete
>diff --git management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >index 4e6f766ff4..211e3d2607 100644 >--- management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >+++ management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >@@ -31,6 +31,8 @@ > # /usr/share/common-licenses/AGPL-3; if not, see > # <https://www.gnu.org/licenses/>. > >+import chardet >+import codecs > import os > import re > import sys >@@ -1917,9 +1919,12 @@ def check_gpo_presence(): > gpcversion = obj["versionNumber"][0] > config = ConfigParser.ConfigParser() > try: >- with open(os.path.join(gpo_path, 'GPT.INI')) as f: >+ gpo_filepath = os.path.join(gpo_path, 'GPT.INI') >+ with open(gpo_filepath) as f: >+ encoding = chardet.detect(f)['encoding'] >+ with codecs.open(gpo_filepath, 'rb', encoding) as f: > try: >- config.readfp(f) >+ config.read_file(f) > fileversion = config.get('General', 'version') > if fileversion < gpcversion: > log.error("File version %s of GPO %s is lower than GPO container versionNumber (%s)" % (fileversion, name, gpcversion))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54196
:
10873
|
10874
|
10875
|
10876