collect failed to properly parse passwords with repeated special characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Eric MacDonald |
Bug Description
Brief Description
-----------------
The starlingX collect tool handles escaping single cases of ] [ \ " $ but not multiple.
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
Create a sysadmin password with double of the aforementioned special characters. Like $$$passwd123$$$.
Expected Behavior
------------------
Collect parses the sudo pw properly
Actual Behavior
----------------
Collect fails to parse the sudo passwd properly
Reproducibility
---------------
100%
System Configuration
-------
Any
Branch/Pull Time/Commit
-------
Any prior to this issue report
Last Pass
---------
Test escape, never tested.
Timestamp/Logs
--------------
controller-0:~$ collect
[sudo] password for sysadmin:
can't read "word123": no such variable
while executing
"send "'@Pa\$
invoked from within
"expect {
"assword:" {
send "'@Pa\$
expect {
..."
Error: failed to create_
Test Activity
-------------
Normal use
Workaround
----------
Avoid sysadmin passwords with more that one of each of the following characters \ [ ] $ "
Changed in starlingx: | |
importance: | Undecided → Low |
assignee: | nobody → Eric MacDonald (rocksolidmtce) |
tags: | added: stx.9.0 stx.tools |
Fix proposed to branch: master /review. opendev. org/c/starlingx /utilities/ +/883153
Review: https:/