I am trying to add an DSpace archive on https://ao.doria.fi. The base URL is https://ao.doria.fi/dspace-oai/request.
However, as I try to add the archive, I get error claiming that my URL is invalid.
I am by no means a web application programmer (rather a C/C++ developer) but I dug a little and here is what I found:
The actual http-request is generated here: lib\pkp\classes\file\wrappers\HTTPFileWrapper.inc --> open(). The problem is that if SSL is used (https) harvester includes the protocol identifier to the request Host-field. And this seems to be wrong and causing servers to respond with "Bad Request, 400". I verified the behaviour also by simple request to www.example.com.
Fix for me was a little hack removing the ssl:// - prefix from the generated request. So final request should have the Host-field like this: "ao.doria.fi". Instead of "ssl://ao.doria.fi", which is causing server to reply "Bad Request".
I am using version 2.3.0.
As I said, I'm no web application developer so I might be doing something silly, but I thought to report this finding anyways
BR,
Markku Heinäsenaho
