Bug 37867 - \x25 in ucr var description
\x25 in ucr var description
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.0
Other Linux
: P5 enhancement (vote)
: UCS@school 4.0 R2
Assigned To: Florian Best
Sönke Schwardt-Krummrich
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-23 14:49 CET by Florian Best
Modified: 2015-05-11 19:24 CEST (History)
2 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): Typo/text changes
Max CVSS v3 score:
best: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-02-23 14:49:04 CET
# ucr info ucsschool/ldap/default/groupname/exam
ucsschool/ldap/default/groupname/exam: OU%(ou)s-Klassenarbeit
 Default group name for the exam mode (in Python string syntax, default: "OU\x25(ou)s-Klassenarbeit")
 Categories: ucsschool-base

\x25 → %

patch:
sed 's/\\x25/%/g' -i ucs-school-umc-exam/debian/ucs-school-umc-exam-master.univention-config-registry-variables
Comment 1 Florian Best univentionstaff 2015-04-17 13:07:59 CEST
The attached patch was not enough, the UCR implementation (ConfigParser) disallows to have %(foo)s in a variable description. I had to workaround with '%' + '(foo)s'.

As the variable descriptions are under /etc/ it will only be updated for new installations.

Fix: (svn r59705), svn r59821
Package: ucs-school-umc-exam-master
Comment 2 Alexander Kramer univentionstaff 2015-04-24 09:57:56 CEST
root@master44:~# ucr info ucsschool/ldap/default/groupname/exam
ucsschool/ldap/default/groupname/exam: OU%(ou)s-Klassenarbeit
 'Default group name for the exam mode (in Python string syntax, default: "OU%'+'(ou)s-Klassenarbeit")'
 Categories: ucsschool-base

Looks like a problem with escaping
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2015-04-27 14:35:38 CEST
Please revert existing changes in SVN and then remove the target milestone.
Comment 4 Florian Best univentionstaff 2015-04-27 18:05:11 CEST
Last try:
I am now using '\x20\x08' (space + backspace) for the variable. This has the effect that parsing works, the empty space char is not displayed on the CLI, copy+paste on CLI works.

Fix: svn r60234
Comment 5 Florian Best univentionstaff 2015-04-27 18:10:08 CEST
+svn r60235
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2015-04-29 16:23:50 CEST
OK: code change
OK: package built (4.0.2-2.93.201504281457)
OK: xml changelog entry
Comment 7 Florian Best univentionstaff 2015-05-11 19:24:49 CEST
UCS@school 4.0 R2 v1 has been released:
http://docs.univention.de/release-notes-ucsschool-4.0R2v1-de.html

If this error occurs again, please use "Clone This Bug".