dataverse icon indicating copy to clipboard operation
dataverse copied to clipboard

Harvesting client not compatible with servers using HTTP

Open stevenferey opened this issue 4 months ago • 2 comments

Hello,

I tried to harvest an OAI server compatible with the HTTP protocol, e.g. : http://cds.unistra.fr/registry/?verb=ListIdentifiers&metadataPrefix=oai_dc

When creating a harvesting client, Dataverse seems to say that HTTP is supported: Capture d’écran du 2024-10-09 15-09-16

Tested with the devleop branch, it is not possible to fill in an OAI server with the HTTP protocol : Capture d’écran du 2024-09-26 18-13-43

It is however possible to declare a harvesting client with the API and fill in an OAI server with the HTTP protocol. In this case, an error is raised during harvesting :

Caused By Exception.................... java.nio.channels.UnresolvedAddressException null
StackTrace: 
java.base/sun.nio.ch.Net.checkAddress(Unknown Source)
java.base/sun.nio.ch.Net.checkAddress(Unknown Source)
java.base/sun.nio.ch.SocketChannelImpl.checkRemote(Unknown Source)

Two choices are possible:

  1. Support HTTP protocol
  2. Indicate that the url must start with https://...

Any related open or closed issues to this bug report? https://github.com/IQSS/dataverse/issues/4831

Are you thinking about creating a pull request for this issue? This is not planned by the team at the moment !

stevenferey avatar Oct 09 '24 13:10 stevenferey