No Code Attached Yet
avatar Hielkio
Hielkio
18 Aug 2021

Steps to reproduce the issue

Create a new database
Create and assign a user with a password that doesn't meet the admin password requirements. (for example "Joomla1234" which doesn't comply with the minimum of 12 characters required)
Install Joomla V4.0.0 Stable
Follow the steps to get the stuff up and running

Now try to change a randomly chosen setting and save!
You know should receive one of these errors:

  • RuntimeException: Unable to save plugin settings (When trying to accept diagnostics submission to Joomla)
  • 1044 Access denied for user 'database_user'@'database_host' to database 'database_name'

I didn't change the users' password to meet the requirement, because this would have impact on other databases, so I added a new user with a password that does meet the requirements: "Joomla12345!" and correct permissions.

Now try to change a random setting again and the problem has been gone!

Expected result

The installation script shouldn't interfere with the database-user account. Users should be responsible for choosing their passwords carefully for their database-users, as well as the admin account in my opinion.

Actual result

Because you think the installation went well, without any error, you don't expect such problem-origin when there were no errors when installing and everything is working (usually such things give, IF they were intentional implemented, an error at the right place and time)

I think this would drive some users crazy and leaving Joomla behind (I know, I know, users are just as lazy as h**l, but that doesn't change the situation. Keep people happy and they're staying)

I hope everything made sense

Greetz,
Hielkio

System information (as much as possible)

Joomla V4.0.0

Additional comments

avatar Hielkio Hielkio - open - 18 Aug 2021
avatar Hielkio Hielkio - change - 18 Aug 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Aug 2021
avatar brianteeman
brianteeman - comment - 18 Aug 2021

I am unable to replicate this

My database password is not 12 characters

My test joomla admin password is 22 characters

No problems at all with installation.
The database password is not changed
The database password is not checked for 12 characters

avatar PhilETaylor
PhilETaylor - comment - 18 Aug 2021

1044 Access denied for user 'database_user'@'database_host' to database 'database_name'

You have not created your mysql user correctly in your mysql server. Ensure you have granted the correct permissions to the mysql user so it can UPDATE as well as SELECT

You would not be able to get as far as " trying to accept diagnostics submission to Joomla" if the password length was an issue.

avatar richard67
richard67 - comment - 18 Aug 2021

You have not created your mysql user correctly in your mysql server. Ensure you have granted the correct permissions to the mysql user so it can UPDATE as well as SELECT

... and CREATE TABLE ...

avatar PhilETaylor
PhilETaylor - comment - 18 Aug 2021

I doubt he would have been able to install Joomla without create table :)

avatar richard67
richard67 - comment - 18 Aug 2021

Without UPDATE and SELECT either ?

avatar PhilETaylor
PhilETaylor - comment - 18 Aug 2021

I just select ALL :)

avatar richard67
richard67 - comment - 18 Aug 2021

Yes that's the normal good way, one user with all privileges for each database. Never same user, and never never root.

avatar johnjunior00
johnjunior00 - comment - 18 Aug 2021

to install joomla he would need a create table , otherwise he woulnd't be able to instal it


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35219.

avatar Hielkio
Hielkio - comment - 18 Aug 2021

The install went without without any problem.
I also ALWAYS select ALL permissions (at once) when assigning a user to a specific database... BUT.. it looks that there's a catch..

There were a couple of options unchecked afterwards (in the database permission-table of the server), which should not be possible because I have NO permissions set as default and never use manual permission settings, but always "ALL PERMISSIONS". If I didn't give the user any permissions, the install would never happen. This is something I never experienced before... very, very, very strange!

Would it be possible that the installer changed the permissions maybe? (maybe a really dumb answer)

I think I'm gonna reproduce the situation AGAIN to find out if it was a server-flaw or eventually a bug elsewhere


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35219.

avatar brianteeman
brianteeman - comment - 18 Aug 2021

I think I'm gonna reproduce the situation AGAIN to find out if it was a server-flaw or eventually a bug elsewhere

Please do

avatar Hielkio
Hielkio - comment - 18 Aug 2021

Richard: "Never same user, and never never root."
Of course, for a LIVE situation this would be not appropriate, but for testing purposes, it wouldn't make any sense to create a lot of separate accounts and keep maintaining SIMPLE, DEVelopment environments without any personal or important data. Agreed?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35219.

avatar PhilETaylor
PhilETaylor - comment - 19 Aug 2021

This should be closed as obviously not a core Joomla bug as described else we would all be hitting it.

avatar richard67
richard67 - comment - 19 Aug 2021

Richard: "Never same user, and never never root."
Of course, for a LIVE situation this would be not appropriate, but for testing purposes, it wouldn't make any sense to create a lot of separate accounts and keep maintaining SIMPLE, DEVelopment environments without any personal or important data. Agreed?

@Hielkio Agreed.

avatar richard67 richard67 - change - 19 Aug 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-08-19 17:51:36
Closed_By richard67
avatar richard67
richard67 - comment - 19 Aug 2021

This should be closed as obviously not a core Joomla bug as described else we would all be hitting it.

Agree. Closing as not a core issue.

avatar richard67 richard67 - close - 19 Aug 2021

Add a Comment

Login with GitHub to post a comment