|
Jesse McConnell made changes - 12/Mar/07 01:28 PM
In 1.1 Final, attempting to delete the Default project group results in: Error Occurred Show/hide Stack Trace javax.jdo.JDOUserException: One or more instances could not be deleted at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1525) at org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContainerStore.java:662) ... NestedThrowablesStackTrace: javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM BUILDDEFINITION WHERE ID = ? at org.jpox.store.rdbms.request.DeleteRequest.execute(DeleteRequest.java:288) at org.jpox.store.rdbms.table.ClassTable.delete(ClassTable.java:2611) at org.jpox.store.StoreManager.delete(StoreManager.java:981) ... NestedThrowablesStackTrace: ERROR 23503: DELETE on table 'BUILDDEFINITION' caused a violation of foreign key constraint 'BUILDDEFINITCE_FK2' for key (3). The statement has been rolled back. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.sql.execute.ReferencedKeyRIChecker.doCheck(Unknown Source) at org.apache.derby.impl.sql.execute.RISetChecker.doPKCheck(Unknown Source) ...
Wendy Smoak made changes - 23/Nov/07 09:15 AM
Brett Porter made changes - 01/Apr/08 11:33 PM
Rahul Thakur made changes - 02/Apr/08 05:20 PM
Ok, I could be wrong but IIRC the idea of having a default Project Group was that no Projects would live outside a ProjectGroup. Should we allow renaming the default ProjectGroup instead of deleting it? I would say only allow deleting it if it is empty, and there are no other groups. That way adding a project can always require addiion to an existing project group
Brett Porter made changes - 07/May/08 09:02 AM
Maria Catherine Tan made changes - 28/Sep/08 07:00 PM
Maria Catherine Tan made changes - 28/Sep/08 07:01 PM
The problem is not because it is the default project group, It's due to the fact project group contains a template definition. I obtain the same error by creating new project group and assign a template definition. I got that Continuum can eliminate this type of projectgroup, but when they have problems with the generation of projects and Ant Console. Only need create a not null restriction about group project. You believe that it would be working on this improvement, or just perform a single validation, so as not to allow the removal of the default project group? This patch allow delete default project group and project groups which have associated build templates. It also validates that when we add an Ant or Shell project, it must be in a project group . Note: When we restart Continuum application, it creates the default project, I am working for to do that only the first time it create default project. Anyway, someone has a suggestion?
Jose Morales Martinez made changes - 10/Feb/09 07:42 PM
Emmanuel Venisse made changes - 23/Mar/09 06:01 AM
This patch delete the Default Project Group but we have an exception in logs. Fixed in rev.760328
Emmanuel Venisse made changes - 30/Mar/09 11:57 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is still a problem in version 1.1-beta-3.