Bug 7940 - tl-config crashes when printing contents of a folder with trailing slash
Summary: tl-config crashes when printing contents of a folder with trailing slash
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-31 14:31 CEST by Linn
Modified: 2023-09-27 16:23 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Linn cendio 2022-05-31 14:31:38 CEST
This is a regression from 4.13.0, 'tl-config -a /vsm/' works in 4.12.1 but after the Python3 conversion:

> [cendio@lab-87 ~]$ /opt/thinlinc/bin/tl-config -a /vsm/
> Traceback (most recent call last):
>   File "/opt/thinlinc/bin/../bin/hivetool", line 309, in <module>
>     main()
>   File "/opt/thinlinc/bin/../bin/hivetool", line 304, in main
>     print_walk(hive, foldername, recursive)
>   File "/opt/thinlinc/bin/../bin/hivetool", line 165, in print_walk
>     value = safe_string(value)
>   File "/opt/thinlinc/bin/../bin/hivetool", line 18, in safe_string
>     return s.encode(enc, errors="replace").decode(enc)
> AttributeError: 'NoneType' object has no attribute 'encode'

This commit looks suspicious: r37284
Comment 3 Samuel Mannehed cendio 2023-09-27 16:23:50 CEST
Note that we must remember to push fixes to hiveconf upstream.

Note You need to log in before you can comment on or make changes to this bug.