Resource folder and catalog file not deleted after delete action

33 views
Skip to first unread message

santy...@gmail.com

unread,
Jul 23, 2021, 4:47:28 AM7/23/21
to xnat_discussion
Hi!

We are still polishing v1.8.2.2 in our production server (the hotfix was a relief BTW, we did experience archive data loss, fortunately in a test project).

Our last problem is that resource folders and catalog files are not being removed from the archive filesystem after deleting them with the file manager dialog. 

We are uploading NIFTI files with pyxnat:
scanID = session.scan(scan)
nifti_resource=scanID.resource('NIFTI')
nii_file=nifti_resource.file('nifti_file.nii.gz')
nii_file.insert(nifti_file_path, format='NIFTI', content='mcverter', tags=" ")

So the archive structure is as follows:
session/SCANS/xxx/NIFTI/nifti_file.nii.gz
When we delete the NIFTI folder, this is gone from the dialog, and the resource nifti_file.nii is deleted from the archive as well, but session/SCANS/xxx/NIFTI/xxx_catalog.xml is still there. Calling refresh catalog for /archive/projects/test/subjects/test_s/session/SCANS/xxx doesn't seem to work either. 

Is this behavior expected or should we investigate further?

Thanks,
Santi

Herrick, Rick

unread,
Jul 26, 2021, 10:29:34 AM7/26/21
to xnat_di...@googlegroups.com

How are you deleting the resource folder?

 

-- 

Rick Herrick

Sr. Programmer/Analyst

Neuroinformatics Research Group

Washington University School of Medicine

Phone: +1 (314) 273-1645

 

From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of santy...@gmail.com <santy...@gmail.com>
Date: Friday, July 23, 2021 at 3:47 AM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] Resource folder and catalog file not deleted after delete action

* External Email - Caution *

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/60bff47e-41f1-4293-8753-25bf89890a27n%40googlegroups.com.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Moore, Charlie

unread,
Jul 26, 2021, 11:35:08 AM7/26/21
to xnat_di...@googlegroups.com
Hi Santi,

No, this isn't the expected behavior. You can follow the progress of the ticket here https://issues.xnat.org/browse/XNAT-6864, but it should be fixed when 1.8.3 is released.

Thanks,
Charlie

From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of Herrick, Rick <jrhe...@wustl.edu>
Sent: Monday, July 26, 2021 9:29 AM
To: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com>
Subject: Re: [XNAT Discussion] Resource folder and catalog file not deleted after delete action
 
Reply all
Reply to author
Forward
0 new messages