docdoku / docdoku-plm

The project purpose is to develop a comprehensive, robust open source PLM (Product LifeCycle Management) solution.
http://www.docdokuplm.com
GNU Affero General Public License v3.0
237 stars 97 forks source link

Error when delete group #1194

Open ludoBarel opened 5 years ago

ludoBarel commented 5 years ago

i've created two workspace with sample-data, i've deleted one of those sample. Then i've tried to remove a group on the other workspace and this shall normally display a comprehensible error message but the displayed message was :

Unhandled system error : org.eclipse.persistence.exceptions.QueryException.mapKeyIsNull threw Exception [EclipseLink-6150] (Eclipse Persistence Services - 2.6.4.qualifier): org.eclipse.persistence.exceptions.ValidationException Exception Description: A null value cannot be used as a key in a container of type [class java.util.Hashtable]. Ensure your key values for the objects of type [class org.polarsys.eplmp.core.security.ACLUserGroupEntry] cannot be null. in QueryException.java at line 809

Then i've tried to remove the workspace and this message was appeared :

Unhandled system error : sun.reflect.NativeConstructorAccessorImpl.newInstance0 threw com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (docdokuplm.ACLUSERGROUPENTRY, CONSTRAINTFK_ACLUSERGROUPENTRY_ACL_IDFOREIGN KEY (ACL_ID) REFERENCESACL(ID)) in NativeConstructorAccessorImpl.java at line -2