Bug 34209 - rename_class script throws traceback on errors
rename_class script throws traceback on errors
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 3.2 R2
All Linux
: P5 normal (vote)
: UCS@school 3.2 R2
Assigned To: Sönke Schwardt-Krummrich
Florian Best
:
Depends on: 32692
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-28 15:37 CET by Sönke Schwardt-Krummrich
Modified: 2014-06-12 09:20 CEST (History)
0 users

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 Sönke Schwardt-Krummrich univentionstaff 2014-02-28 15:37:24 CET
+++ This bug was initially created as a clone of Bug #32692 +++
[…]
When commenting out the sys.exit(0), the script runs further but hits a bug, on lines 2770 and 2783:
> ...
>				messages.append("Renaming of group %s to %s failed: %s" % (oldname, newName, str(e)))
> ...
> 				messages.append("Renaming of share %s to %s failed: %s" % (oldname, newName, str(e)))

oldname is not defined, it is oldName instead.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2014-04-01 13:16:08 CEST
Typo has been fixed: ucs-school-import (10.0.5-1)
Package has been rebuild and changelog entry has been added.
Comment 2 Florian Best univentionstaff 2014-05-08 10:37:59 CEST
Fix: OK
Code: OK
Changelog: OK
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2014-06-12 09:19:28 CEST
UCS@school 3.2 R2 has been released:
http://docs.univention.de/release-notes-ucsschool-3.2R2-de.html

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