Wrong error message when executing ALTER ROLE without ALTER ANY ROLE --------------------------------------------------------------------
Key: CORE-6490 URL: http://tracker.firebirdsql.org/browse/CORE-6490 Project: Firebird Core Issue Type: Bug Affects Versions: 4.0 RC 1, 3.0.7 Reporter: Mark Rotteveel A user executing ALTER ROLE without ALTER ANY ROLE privilege is shown the wrong error message. Current behaviour: ``` alter role rdb$admin set auto admin mapping; Statement failed, SQLSTATE = 28000 unsuccessful metadata update -CREATE OR ALTER MAPPING AutoAdminImplementationMapping failed -Unable to perform operation -System privilege CHANGE_MAPPING_RULES is missing ``` The error indicates that executing ALTER ROLE was allowed, but only the attempt to then create a mapping fails. As error message I would expect: """ Statement failed, SQLSTATE = 28000 unsuccessful metadata update -ALTER ROLE RDB$ADMIN failed -no permission for ALTER access to ROLE RDB$ADMIN -Effective user is TESTUSER """ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel