On 08.09.2005, at 16:18, Felipe Curty do Rego Pinto wrote:

My referential integrity test worked.

Some how, the jackrabbit repository when you save a deleted node that has other nodes pointing to it doesnt rollback the deleted node. So it take a
lot of exception until you correct the mass.

I put in some parts of the code a check like this.

PropertyIterator propertyIterator = node.getReferences();
if( propertyIterator.hasNext() ) {
throw new ReferentialIntegrityException("The node is pointed by at least
one another node");
}

I put this on the methods tha remove an entire node located in
HierarchyManager and Content.

Now I just need to to warn user that thing. But from now, the user try to
delete and nothing happens. If some one know how, please, help.

Boris, should I open na issue and post this module and all the fix?

yes please, and please send patches, not the complete classes, else its too much hassle for us to check your code
The patch should be against latest trunk

Thanks
- Boris


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to