Bug 37688 - Traceback in 0001-CheckJoinScript.py
Traceback in 0001-CheckJoinScript.py
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: ucslint
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Sönke Schwardt-Krummrich
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-04 15:45 CET by Sönke Schwardt-Krummrich
Modified: 2015-02-09 11:02 CET (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): External feedback
Max CVSS v3 score:


Attachments
Fix for the traceback (1.25 KB, patch)
2015-02-04 15:53 CET, Sönke Schwardt-Krummrich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>