oracle / vagrant-projects

Vagrant projects for Oracle products and other examples
Universal Permissive License v1.0
940 stars 478 forks source link

+ is not allowed in password and causes infinite loop #514

Open ole-tange opened 1 month ago

ole-tange commented 1 month ago

Describe the issue

export VM_ORACLE_PWD=t7jJqhjr+Ty7
cd OracleDatabase/23.4.0-Free
vagrant up

This causes an inifite loop.

It would be better if the password was checked early in the installation, so you do not have to wait to discover this.

Environment (please complete the following information):

Additional information

I get this in the infinite loop:

oracle23ai-free-vagrant: Password cannot be null. Enter password:

It is clearly wrong. Removing the '+' seems to solve it.

PaulNeumann commented 1 month ago

Yes, spaces and special characters in the password cause database creation to fail. This is documented in the README.md file in bold text, and also noted in the .env and Vagrantfile files.

The special character restrictions and the "Password cannot be null" error message are part of the database creation assistant (DBCA) code, which this project has no control over. The restrictions may or may not be intentional. As far as I know, the list of invalid characters isn't documented, so accurately validating a user-supplied password before passing it to the oracle-free-23ai script isn't feasible.