Fw: Deleting a record doesn't delete private resources associated with the record - More Info

3 messages Options
Embed this post
Permalink
awalsh

Fw: Deleting a record doesn't delete private resources associated with the record - More Info

Reply Threaded More More options
Print post
Permalink
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" <[hidden email]>
To: <[hidden email]>
Cc: <[hidden email]>; "Greg Reed" <[hidden email]>
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. http://p.sf.net/sfu/velocityconf
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Simon Pigot-2

Re: [GeoNetwork-devel] Fw: Deleting a record doesn't delete private resources associated with the record - More Info

Reply Threaded More More options
Print post
Permalink
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" <[hidden email]>
> To: <[hidden email]>
> Cc: <[hidden email]>; "Greg Reed" <[hidden email]>
> 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. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> GeoNetwork-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
>
>
>  


------------------------------------------------------------------------------
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. http://p.sf.net/sfu/velocityconf
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Spoon

Re: [GeoNetwork-devel] Fw: Deleting a record doesn't delete private resources associated with the record - More Info

Reply Threaded More More options
Print post
Permalink
HI Simon.
I am currently testing BlueNet_MEST_1.1_032309, and I'm also having these massive function issues. Is there a new update available with these fixes?

Thanks.
-Peter





Simon Pigot-2 wrote:
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@metoc.gov.au>
> To: <geonetwork-devel@lists.sourceforge.net>
> Cc: <geonetwork-users@lists.sourceforge.net>; "Greg Reed" <greg@metoc.gov.au>
> 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. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> GeoNetwork-devel mailing list
> GeoNetwork-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
>
>
>  


------------------------------------------------------------------------------
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. http://p.sf.net/sfu/velocityconf
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork