installer drops trailing character from MySQL dbpassword
While trying to install ownCloud 5.0.10 using MySQL and nginx, I kept getting the message
MDB2 Error: connect failed: _doConnect: [Error message: unable to establish a connection] [Native code: 0]
I confirmed at the command line that the username and password I was supplying were correct with mysql -u owncloud -p. That worked fine.
Looking in the config/config.php file I saw that the value for the dbpassword written there was missing the last character. In my case, the last character was an exclamation point (!).
Manually editing the config.php to supply the missing character allowed me to proceed with the installation. I did not do any additional testing to see whether this is limited to exclamation points specifically, or punctuation generally.
@bantu @ringmaster can you please have a look? THX
I am unable to reproduce this. It wrote 'dbpassword' => '*** removed for security reasons', to the config file for me.
I tested it on Apache with "password!", and that worked fine. I'll have to spin up an Nginx to see if that's part of the issue, but I don't see any way in code that ownCloud could have dropped a character, unless maybe there's something in the Nginx config that did something to the values in $_POST. Or maybe there's something else in the password ("escaped" values that get unescaped during processing - lots of percents, ampersands, and dollar signs?) that made it eat the exclamation point? The full password used might be helpful.
Let's call this a false alarm. A fresh install on another host using the same password worked fine.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.