[GeoNetwork-users] Deleting a record doesn't delete private resources associated with the record - More Info

Dear GN,

I did some more tests on this today (using SVN2461 on WinXP) and I found that it only happens
when you select more than record for deletion i.e a "massive action deletion".
Deleting 1 record works fine, it deletes the private and public resource directories
and leaves behind an empty id number directory.

So this problem would apply to those GN versions which have massive action
feature. I know at least the BlueNet version has the massive action feature.

Andrew Walsh

----- Original Message ----- From: "awalsh" <awalsh@anonymised.com>
To: <geonetwork-devel@lists.sourceforge.net>
Cc: <geonetwork-users@lists.sourceforge.net>; "Greg Reed" <greg@anonymised.com>
Sent: Wednesday, April 29, 2009 2:19 PM
Subject: Deleting a record doesn't delete private resources associated with the record

Dear GN developers/users,

I notice that when I delete record form GN it leaves behind the data
directory assocaited with a record which holds thumbnails and files
for download etc. For example I deleted record number 200 but the directory/download file:

$GN_Root/web/geonetwork/WEB-INF/data/00200-00299/200/private/downloadfile.txt
still existed.

My concern with this is that if a new record is allocated later with id=200 it could get
mixed up with resource files left from the deleted record. Shouldn't everthing be deleted
at first?

FYI I am using the BlueNet version of Geonetwork version number SVN2461 released
10/3/9.

Andrew Walsh
RAN-DODC-Australia

Hi Andrew,

I think identifiers for metadata records can go as high as database column types and resources permit - resource directories (for thumbnails and uploads) are created to match the id as required (see src/org/fao/geonet/lib/ResourceLib.java).

For issues with deleting records - I think the ids can actually get re-used (eg. delete, stop geonetwork, then start, then create) - clashes are possible.

The trunk doesn't actually delete the resources for single metadata delete - BlueNetMEST does. MassiveDelete doesn't delete resources on either trunk or BlueNetMEST (and this is a bug on BlueNetMEST which dates from when MassiveDelete was brought in to BlueNetMEST from the trunk - I'll fix it shortly).

From my point of view, I think the trunk should be updated to delete the resources after they've been backed up as part of the MEF that is made when a metadata record is deleted. Perhaps someone with more knowledge about why the trunk doesn't delete these resources may want to comment on whether this is a good idea/necessary.

Cheers and thanks,
Simon

awalsh wrote:

Dear GN,

I did some more tests on this today (using SVN2461 on WinXP) and I found that it only happens
when you select more than record for deletion i.e a "massive action deletion".
Deleting 1 record works fine, it deletes the private and public resource directories
and leaves behind an empty id number directory.

So this problem would apply to those GN versions which have massive action
feature. I know at least the BlueNet version has the massive action feature.

Andrew Walsh

----- Original Message ----- From: "awalsh" <awalsh@anonymised.com>
To: <geonetwork-devel@lists.sourceforge.net>
Cc: <geonetwork-users@lists.sourceforge.net>; "Greg Reed" <greg@anonymised.com>
Sent: Wednesday, April 29, 2009 2:19 PM
Subject: Deleting a record doesn't delete private resources associated with the record

Dear GN developers/users,

I notice that when I delete record form GN it leaves behind the data
directory assocaited with a record which holds thumbnails and files
for download etc. For example I deleted record number 200 but the directory/download file:

$GN_Root/web/geonetwork/WEB-INF/data/00200-00299/200/private/downloadfile.txt
still existed.

My concern with this is that if a new record is allocated later with id=200 it could get
mixed up with resource files left from the deleted record. Shouldn't everthing be deleted
at first?

FYI I am using the BlueNet version of Geonetwork version number SVN2461 released
10/3/9.

Andrew Walsh
RAN-DODC-Australia

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
geonetwork-devel List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net