Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Study Permanently RS service fails for study with multiple referenced instance locations #4036

Closed
vrindanayak opened this issue Apr 19, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@vrindanayak
Copy link
Member

For any study which was copied or moved to another study / linked to MWL, invoking Delete Study Permanently REST service fails with

javax.ejb.EJBException: java.lang.IllegalArgumentException: Removing a detached instance org.dcm4chee.arc.entity.Location#392
............
............
............
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-store-5.30.0.jar//org.dcm4chee.arc.store.impl.StoreServiceEJB$$$view25.removeOrMarkLocationAs(Unknown Source)
............
............
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-store-5.30.0.jar//org.dcm4chee.arc.store.impl.StoreServiceEJB$Proxy$_$$_Weld$EnterpriseProxy$.removeOrMarkLocationAs(Unknown Source)
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-delete-5.30.0.jar//org.dcm4chee.arc.delete.impl.DeletionServiceEJB.removeOrMarkLocationAs(DeletionServiceEJB.java:457)
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-delete-5.30.0.jar//org.dcm4chee.arc.delete.impl.DeletionServiceEJB.deleteStudy(DeletionServiceEJB.java:287)
............
............
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-delete-5.30.0.jar//org.dcm4chee.arc.delete.impl.DeletionServiceEJB$$$view6.deleteStudy(Unknown Source)
............
............
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-delete-5.30.0.jar//org.dcm4chee.arc.delete.impl.DeletionServiceEJB$Proxy$_$$_Weld$EnterpriseProxy$.deleteStudy(Unknown Source)
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-delete-5.30.0.jar//org.dcm4chee.arc.delete.impl.DeletionServiceImpl.deleteStudy(DeletionServiceImpl.java:229)
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-delete-5.30.0.jar//org.dcm4chee.arc.delete.impl.DeletionServiceImpl.deleteStudy(DeletionServiceImpl.java:162)
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-delete-5.30.0.jar//org.dcm4chee.arc.delete.impl.DeletionServiceImpl.deleteStudy(DeletionServiceImpl.java:138)
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-delete-5.30.0.jar//org.dcm4chee.arc.delete.impl.DeletionServiceImpl$Proxy$_$$_WeldClientProxy.deleteStudy(Unknown Source)
    at deployment.dcm4chee-arc-ear-5.30.0-psql.ear.dcm4chee-arc-war-5.30.0-unsecure.war//org.dcm4chee.arc.iocm.rs.StudyMgtRS.deleteStudy(StudyMgtRS.java:155)
@vrindanayak vrindanayak added the bug Something isn't working label Apr 19, 2023
@vrindanayak vrindanayak added this to the 5.30.0 milestone Apr 19, 2023
@vrindanayak vrindanayak self-assigned this Apr 19, 2023
vrindanayak added a commit that referenced this issue Apr 19, 2023
@vrindanayak
Copy link
Member Author

Fixed previously by #4035 - commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant