Univention Bugzilla – Attachment 11167 Details for
Bug 56937
Exam mode throws traceback if local Windows user is logged into a computer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
workaround.patch
computerroom.patch (text/plain), 1.02 KB, created by
Julia Bremer
on 2023-12-22 16:04:38 CET
(
hide
)
Description:
workaround.patch
Filename:
MIME Type:
Creator:
Julia Bremer
Created:
2023-12-22 16:04:38 CET
Size:
1.02 KB
patch
obsolete
>--- /root/univention-support/room_management.py.bak 2023-12-22 13:06:57.604699671 +0100 >+++ /usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/room_management.py 2023-1 >2-22 13:32:29.610403419 +0100 >@@ -94,11 +94,14 @@ > > def validate_userstr(self, userstr): # type: (str) -> str > match = self._user_regex.match(userstr) >- if not match or not userstr: >+ if not userstr: > raise AttributeError("invalid key {!r}".format(userstr)) >- username = match.groupdict()["username"] >- if not username: >- raise AttributeError("username missing: {!r}".format(userstr)) >+ if match: >+ username = match.groupdict()["username"] >+ else: >+ username = "" >+ #if not username: >+ # raise AttributeError("username missing: {!r}".format(userstr)) > return username > > @LDAP_Connection() >
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 56937
: 11167