[MXS-3896] When reading password from stdin via redirect, interactive use is no longer possible Created: 2021-11-30 Updated: 2022-01-04 Resolved: 2022-01-04 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | maxctrl |
| Affects Version/s: | 2.4.18, 2.5.16, 6.1.4, 6.2.0 |
| Fix Version/s: | 6.2.1 |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Hartmut Holzgraefe | Assignee: | markus makela |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Since The feature is of no use for the interactive use case. |
| Comments |
| Comment by markus makela [ 2021-12-06 ] |
|
The case where both the password and commands are read from the standard input doesn't work correctly. In version 6 the sending of commands via the standard input was improved so that it can be reliably used for command execution. Unfortunately the way the password is read from the standard input when the input is redirected seems to consume the whole input, interpreting any commands that follow it as a part of the password. |
| Comment by markus makela [ 2022-01-04 ] |
|
hholzgra can you describe the actual problem a bit more? The way I understand the description is that the input redirection method only works when the stdin is redirected from somewhere else and the password is read from a non-interactive input. If the input is redirected for the password, how would you redirect it back to the interactive terminal? |
| Comment by markus makela [ 2022-01-04 ] |
|
Needs more details, closing until we get those. |