Page MenuHomeSolus

Username field doesn't strip trailing spaces in os-installer
Open, LowPublicBUG

Description

Summary : Cannot complete an installaion on a VM virtual disk drive using the MATE .ISO file.

I used GPartEd to delete the partitions I had previously created in a 32 GB virtual disk drive that was meant for a MATE VM. Starting the installation, I selected the option to allow the installer to create its own partitions. It did that, and continued with the installation.

On the page that prompts for a user name, full name, password and confirmation, I entered correct information. The password and confirmation fields agreed, and all four fields were market with a chekmark, indicating correct data. But I couldn't continue the installation past that point.

Steps to reproduce

  1. Create a VM with the VirtualBox virtual macine manager, starting with a 32 GB virtual disk drive. Attach the MATE 4.4 .ISO file, and assign customary settings.
  2. Launch the "live" session, and start the OS installer.
  3. Begin the installation as usual, and continue up to the page that prompts for a user name, real name, and password.
  4. Enter correct information for all four fields, noting that the password and confirmation field are identical. The validity of the fields is confirmed by at checkmark at the end of each field.

Expected result

I expected the disabled [+Add now] button to be enabled, allowing me to add the user. And the diabled [Next] button to be enabled, allowing me to continue with the installation.

Actual result

The buttons both remained disabled, preventing me from continuing.

Event Timeline

Looking at that page again in the forum, I'm now aware that the field for my user name does not have a checkmark. It has the 0 with a diagonal line through it, My user name, jerry, has never been rejected before. I was paying attention to make sure my password matched the confirmation field, and didn't notice that the user name was not checked.

It turns out that the problem was a space after the user name. The installation is now continuing. Since adding a space after typing a word is a common habit in most circumstances, this could be a frequent problem for users. They wouldn't expect that to be the problem any more than I did. I suggest that these text fields be trimmed to prevent errors like this from happening.

Probably can be ignored for now, as this might not be a problem in Calameres.

EbonJaeger renamed this task from Cannot complete an installation using the MATE .ISO file. to Username field doesn't strip trailing spaces in os-installer.Jun 26 2023, 5:29 PM
EbonJaeger triaged this task as Low priority.
EbonJaeger edited projects, added Installation; removed Lacks Project.

Thanks for the detailed bug report. Since we are retiring os-installer, this won't be fixed for that. We will keep this issue in mind for its replacement.

While Calamares doesn't strip leading/trailing spaces, it does actually tell you very clearly what's wrong. So this will indeed be resolved by switching to Calamares.