? Failure

User tests: Successful: Unsuccessful:

avatar atpatil11
atpatil11
18 Oct 2014

Improper validation message is displayed while adding existing name in User manage Viewing access Level.

Steps to reproduce the issue

1.Go to User Manager: Add New Viewing Access Level
2. Enter public in name field(existing name)
3. Click save button verify the result
4. Following error is displayed.

 Error
  Save failed with the following error: Duplicate entry 
'Public' for key 'idx_assetgroup_title_lookup' SQL=INSERT INTO 
`b12lm_viewlevels`
(`id`,`title`,`rules`) VALUES 
('0','Public','[]')

Expected result

Proper validation message should display.

Actual result

Validation message with sql query is displayed.screen shot 2014-10-17 at 02 03 02

System information (as much as possible)

PHP Built On Windows NT 6.2 build 9200
Database Version 5.6.12-log
Database Collation utf8_general_ci
PHP Version 5.4.12
Web Server Apache/2.4.4 (Win64) PHP/5.4.12
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.3.7-dev Development [ Ember ] 01-October-2014 02:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar atpatil11 atpatil11 - open - 18 Oct 2014
avatar jissues-bot jissues-bot - change - 18 Oct 2014
Labels Added: ?
avatar zero-24 zero-24 - change - 18 Oct 2014
Category Administration UI/UX
avatar zero-24 zero-24 - change - 18 Oct 2014
The description was changed
Title
Amol tekdi committed patch for 4727
Improper validation message is displayed while adding existing name in User manage Viewing access Level.patch for #4727
avatar manojLondhe manojLondhe - test_item - 18 Oct 2014 - Tested successfully
avatar manojLondhe
manojLondhe - comment - 18 Oct 2014

Tested, patch works for me

screen shot 2014-10-18 at 09 27 36

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

avatar infograf768
infograf768 - comment - 20 Oct 2014

The strings should rather be

JLIB_DATABASE_ERROR_USERLEVEL_NAME_EXISTS="Level with the name "%s" already exists."

And the patch should be done in ~/libraries/joomla/table/viewlevel.php in the check() method, similar to usergroup.

avatar infograf768
infograf768 - comment - 20 Oct 2014

Closing this one in favor of #4858

please test

avatar infograf768 infograf768 - close - 20 Oct 2014
avatar infograf768 infograf768 - change - 20 Oct 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-10-20 09:02:20

Add a Comment

Login with GitHub to post a comment