Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
amithadkar opened this issue Oct 17, 2014 · 7 comments

Comments

@amithadkar
Copy link

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

@roland-d
Copy link
Contributor

Changed status to Medium since this is not critical. However I do agree the message should be more userfriendly.

@ghost
Copy link

ghost commented Oct 17, 2014

I have also tested this issue in joomla 3.7-dev.

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

@amithadkar
Copy link
Author

Same issue exist in Edit case too.
Edit any access level and change the level title with existing one.screen shot 2014-10-17 at 04 09 18

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

@irfanmomin
Copy link

I have tested with Joomla! 3.3.7-dev version
I have also found same issue which is described by @amithadkar .

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

@atpatil11
Copy link

Yes. Replicated issue on my side as well & added patch. Please find the patch for this issue here. #4838

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

@jissues-bot
Copy link

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/4727

@zero-24
Copy link
Contributor

zero-24 commented Oct 18, 2014

Closing as we have a PR by @atpatil11 for this #4838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants