Bug 37688

Summary: Traceback in 0001-CheckJoinScript.py
Product: UCS Reporter: Sönke Schwardt-Krummrich <schwardt>
Component: ucslintAssignee: Sönke Schwardt-Krummrich <schwardt>
Status: CLOSED FIXED QA Contact: Florian Best <best>
Severity: normal    
Priority: P5 CC: schwardt, walkenhorst
Version: UCS 4.0   
Target Milestone: UCS 4.0-0-errata   
Hardware: Other   
OS: Linux   
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): External feedback
Max CVSS v3 score:
Attachments: Fix for the traceback

Description Sönke Schwardt-Krummrich univentionstaff 2015-02-04 15:45:27 CET
Reported traceback by a partner:

Traceback (most recent call last):
 File "/usr/bin/ucslint", line 306, in <module>
   chk.check()
 File "/usr/bin/ucslint", line 106, in check
   obj.check( self.path )
 File "/usr/lib/pymodules/python2.7/univention/ucslint/0001-CheckJoinScript.py", line 177, in check
   self.addmsg( '0001-9', 'failed to open and read file', fn )
UnboundLocalError: local variable 'fn' referenced before assignment
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2015-02-04 15:53:54 CET
Created attachment 6645 [details]
Fix for the traceback

Attached a patch for the traceback
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-02-06 14:13:48 CET
Traceback has been fixed and ucslint has been rebuilt in errata4.0-0:
Version 4.0.0-7.66.201502051248

YAML: 2015-02-05-ucslint.yaml
Comment 3 Florian Best univentionstaff 2015-02-06 14:39:56 CET
OK, reproduced: rm *.inst debian/rules; ucslint; echo %?
OK: YAML
Comment 4 Janek Walkenhorst univentionstaff 2015-02-09 11:02:50 CET
<http://errata.univention.de/ucs/4.0/80.html>