Opened 13 years ago

Closed 13 years ago

#523 closed enhancement (fixed)

Make uuid of metadata from OGC WXS layer/feature/coverage persistent on harvest re-run

Reported by: awalsh Owned by: craigj
Priority: major Milestone: v2.6.5
Component: General Version: v2.6.4
Keywords: fileIdentifier, uuid, OGC WxS harvester Cc: craig.jones@…

Description

Problem:

Repeated runs of the OGC WxS harvester are making non-unique fileIdentifier (uuid) of layer(WMS), feature (WFS) or coverage (WCS) metadata records. This was creating problems with duplicated metadata records in some catalogues that in turn harvest off the Geonetwork e.g Australian National Data Service - Research Data Australia catalouge. (ANDS-RDA). ANDS-RDA use an OAI-PMH harvest off Geonetwork. Duplicated records with all details the same except for uuid are ending up in the ANDS-RDA as a new uuid is seen as a new record.

Solution:

Make the uuid persistent on re-runs of the harvester by making a md5 hash of the GetCapabilities URL plus the layer name (WMS) or feature type (WFS) or coverage name (WCS) i.e

--- md5 the full capabilities URL + the layer, coverage or feature name the dataset identifier reg.uuid = Util.scramble (this.capabilitiesUrl+"#"+reg.name);

A patch kindly provided by Craig Jones of IMOS/emII is attached

Attachments (1)

consistent-19115-uuid.patch (976 bytes ) - added by awalsh 13 years ago.
patch

Download all attachments as: .zip

Change History (3)

by awalsh, 13 years ago

Attachment: consistent-19115-uuid.patch added

patch

comment:1 by fxp, 13 years ago

Owner: changed from geonetwork-devel@… to craigj

Craig's patch looks good to me.

comment:2 by craigj, 13 years ago

Resolution: fixed
Status: newclosed

Fix applied in trunk (r7808) and 2.6.x (r7809).

Note: See TracTickets for help on using tickets.