Bug 8384 - Some config paths in tl-config can't be tab completed
Summary: Some config paths in tl-config can't be tab completed
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.19.0
Assignee: Samuel Mannehed
URL:
Keywords: relnotes
Depends on:
Blocks: 8553
  Show dependency treegraph
 
Reported: 2024-07-12 11:18 CEST by Samuel Mannehed
Modified: 2025-04-01 18:12 CEST (History)
0 users

See Also:
Acceptance Criteria:
MUST * No folders should be missing when tab completing with tl-config


Attachments

Description Samuel Mannehed cendio 2024-07-12 11:18:35 CEST
When tab completing, only the following top-level folders are suggested:

> $ tl-config /
> /profiles/      /shadowing/     /vsmagent/      /webaccess/     
> /sessionstart/  /vsm/           /vsmserver/     

As seen below, there are some folders missing from our tab completion suggestions:

> $ tl-config --all-entries /
> printing/
> profiles/
> sessionstart/
> shadowing/
> utils/
> vsm/
> vsmagent/
> vsmserver/
> webaccess/

The folders “printing” and “utils” are missing.
Comment 1 Samuel Mannehed cendio 2024-08-23 10:37:29 CEST
When working on bug 8359 I found that the issue comes from incorrect assumptions that file names and hiveconf's folder-names always match. For example, see hivetool:252.

The file which contains the “printing” folder is called “nearest.hconf”. While the “utils” folder is found in three different files.

We should use `hive.get_folders("/")` instead of `hive.sources`.
Comment 6 Samuel Mannehed cendio 2025-03-31 14:37:08 CEST
With bug 8553, this issue has become more widespread. When tab completing, only the following top-level folders are suggested:

> $ tl-config /
> /profiles/      /shadowing/     /vsmagent/      /webaccess/     
> /sessionstart/  /vsm/           /vsmserver/     


As seen below, there are some folders missing from our tab completion suggestions:

> $ tl-config --all-entries /
> subclusters/
> agents/
> HA/
> printing/
> profiles/
> sessionstart/
> shadowing/
> utils/
> vsm/
> vsmagent/
> vsmserver/
> webaccess/

The folders "subclusters", "agents", "HA", “printing” and “utils” are missing.

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