Bug 7743 - Using tl-config/hivetool to set parameters and specifying type is broken
Summary: Using tl-config/hivetool to set parameters and specifying type is broken
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: 2021-07-12 14:43 CEST by Frida Flodin
Modified: 2021-08-24 13:21 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Frida Flodin cendio 2021-07-12 14:43:37 CEST
When setting parameters with tl-config you can specify an optional type of the data. But this handling is broken, for example:

Setting HA enabled to false:
> $ tl-config  bool:/vsmserver/HA/enabled=false
And then checking the result: 
> $ tl-config /vsmserver/HA/enabled
> true
No matter what you try to set a bool parameter to it will evaluate to true.


Another thing that is broken is binary data*. ThinLinc does not have any parameters that is saved as binary but if you try to set or get a parameter as binary it will fail.

*OBS: this worked before converting hiveconf to Python 3 (bug 7557). This is because Python 2 handled bytes and string the same.

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