Bug 5843 - unattended tl-setup ignores (and continues with) invalid answers
Summary: unattended tl-setup ignores (and continues with) invalid answers
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: 4.4.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Henrik Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-13 10:50 CEST by Henrik Andersson
Modified: 2021-11-02 14:09 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Henrik Andersson cendio 2016-04-13 10:50:33 CEST
When running tl-setup in interactive text mode and giving an answer which is not correct, the prompt is shown once again until correct value is entered:

  Server type [Master/agent]?c
  Server type [Master/agent]?_

However when running tl-setup with an answer file, an invalid value will make tl-setup to choose the default value for the question. So if the above answer was given to server type prompt, master is selected and installed.

The problem get worse when the interactive text prompts supports shortening, eg. for the value agent, a user can write 'a' to selecting agent installation. When doing so in an answer file, the value is invalid and defaults will be used.

Expectations are that, if there is an invalid value given for a prompt in the answer file, the same logic should apply as when handling 'missing-values' either ask for a value or abort.

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