Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#242 closed defect (fixed)

OAI Provider broken

Reported by: proescholdtt Owned by: geonetwork-devel@…
Priority: major Milestone: v2.5.1
Component: General Version: v2.5.0
Keywords: Cc:

Description

Geonetwork cannot be harvested with most OAI harvesters, since the handling of the "resumptionToken" is broken. This can e.g be seen by using the attached code to harvest a GN node. (need oclc.oai.harvester2 jar) If the GN installation contains more metadata records than fit into one OAI response page, the harvesting will stop after the first page. This is because the resumptionToken sent by the harvester is considered illegal by GN.

The reason for that is that GN stores the resultList associated with a resumptionToken in a UserSession. The state of the UserSession is maintained via http cookie. It is not part of the OAI specs to maintain state via a cookie, so most OAI harvesters ignore cookies when doing multipage harvest. (the resumptionToken is there for that purpose).

A patch has been committed to BlueMestNet and is beeing worked on by Simon.

Attachments (1)

Testharvest.java (1.8 KB ) - added by proescholdtt 14 years ago.
To reproduce the bug, harvest GN with the following code (needs enough metadata to require the resumption Token)

Download all attachments as: .zip

Change History (3)

by proescholdtt, 14 years ago

Attachment: Testharvest.java added

To reproduce the bug, harvest GN with the following code (needs enough metadata to require the resumption Token)

comment:1 by mcoudert, 14 years ago

Milestone: v2.5.0v2.6.0
Resolution: fixed
Status: newclosed

Revision: 6221 by Simon Pigot. Add reorganized patch by Timo Proescholdt for proper resumptionToken handling in GN OAI server - thanks Timo.

comment:2 by ticheler, 14 years ago

Milestone: v2.6.0v2.5.1
Note: See TracTickets for help on using tickets.