New install of Joomla 3.7.5 no sample data
Add 2 new users through administrator (both as 'registered')
Add new menu item to main menu for 'Edit User Profile'
In front end login as 1st new registered user
Go to Edit User Profile Page
Change email address and confirm email address to the 2nd registered user
Click Submit
You see the warning message 'The email address you entered is already in use or invalid. Please enter another email address.' - This is expected
Now click Home (to go away from the profile page)
Click Edit User Profile in menu
Page is now populated with the email address previously submitted but rejected
Once the new email address has been rejected, it should be cleared from the cache, if the user misses the warning message, and then return to the user profile page, it looks like the email was successfully changed even though it wasn't.
Returning to the user profile page shows the rejected email address of the other user
Database Version 5.6.37-log
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 5.6.31
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.7.5 Stable [ Amani ] 14-August-2017 12:09 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0
This is a usability issue
Now tested with Firefox, Chrome and Safari
This is NOT an autocomplete error.
Further test,
Login as 1 of the users
Go to edit profile page
Change email address to address of other user but DO NOT change the confirm email address (now both email addresses are different)
Click Submit
You get an error message as expected
Now go to homepage
Then return to Edit Profile Page
The 2 email addresses are different
The issue is that the 'bad data' is being held in the session, from a userbility perspective it should be cleared after the submit because it is bad data. By holding it in the session cache, when you return to the page it gives the impression the profile has been updated.
Sorry for jumping to a conclusion - i can confirm this issue
Status | New | ⇒ | Discussion |
If form is submited and saving fails
Normally we need some way to decide how to clear the data from session
The profile controller is overriding the "edit" task
// This line is missing from edit task of profile coontroller
\JFactory::getApplication()->setUserState('com_users.edit.profile.data', null);
// Redirect to the edit screen.
$this->setRedirect(JRoute::_('index.php?option=com_users&view=profile&layout=edit', false));
so if the edit task is patced to have the missing statement this will be fixed
index.php?option=com_users&task=profile.edit&user_id=770
but if you use link from menu "edit user profile":
index.php?option=com_users&view=profile&layout=edit&Itemid=NNN
then you will not go through edit task and you will have same problem
Labels |
Added:
J3 Issue
|
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-05 06:10:46 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17875
This is almost certainly a browser autocomplete issue.
To verify that please try and create the first user in browser a and the second user in browser b.