Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #5276 (closed)

Opened 8 years ago

Closed 8 years ago

BUG: Delete multi-linked comment

Reported by: wmoore Owned by: jburel
Priority: major Milestone: OMERO-Beta4.3
Component: Insight Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-05-19 (12)

Description

If I add a comment to several images at once, and then try to delete the comment from one of the images I get:

java.lang.Exception: org.openmicroscopy.shoola.env.data.DSAccessException: Cannot access data. 
Cannot delete the object.
	at org.openmicroscopy.shoola.env.data.OMEROGateway.handleException(OMEROGateway.java:875)
	at org.openmicroscopy.shoola.env.data.OMEROGateway.deleteObjects(OMEROGateway.java:2849)
	at org.openmicroscopy.shoola.env.data.OmeroMetadataServiceImpl.saveData(OmeroMetadataServiceImpl.java:1011)
	at org.openmicroscopy.shoola.env.data.views.calls.StructuredAnnotationSaver$1.doCall(StructuredAnnotationSaver.java:90)
	at org.openmicroscopy.shoola.env.data.views.BatchCall.doStep(BatchCall.java:144)
	at org.openmicroscopy.shoola.util.concur.tasks.CompositeTask.doStep(CompositeTask.java:226)
	at org.openmicroscopy.shoola.env.data.views.CompositeBatchCall.doStep(CompositeBatchCall.java:126)
	at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.exec(ExecCommand.java:165)
	at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.run(ExecCommand.java:274)
	at org.openmicroscopy.shoola.util.concur.tasks.AsyncProcessor$Runner.run(AsyncProcessor.java:91)
	at java.lang.Thread.run(Thread.java:613)
Caused by: omero.ValidationException
    serverStackTrace = "ome.conditions.ValidationException: could not delete: [ome.model.annotations.CommentAnnotation#3051]; SQL [delete from annotation where id=?]; constraint [fkimageannotationlink_child_annotation]; nested exception is org.hibernate.exception.ConstraintViolationException: could not delete: [ome.model.annotations.CommentAnnotation#3051]
                        	at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:637)
                        	at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
                        	at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
                        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

Change History (4)

comment:1 Changed 8 years ago by jburel

The comment should probably not have been shared in the first place.

comment:2 Changed 8 years ago by jburel

  • Remaining Time set to 0.25
  • Sprint set to 2011-05-19 (12)
  • Status changed from new to accepted

comment:3 Changed 8 years ago by jburel

  • Remaining Time changed from 0.25 to 0.1

comment:4 Changed 8 years ago by jburel <j.burel@…>

  • Remaining Time changed from 0.1 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

(In [9dbe8bffc64fd649eac686fa1f45705bc7ecc31f/ome.git] on branch develop) Fix removal/delete when a comment is shared (close #5276)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.95735 sec.)

We're Hiring!