Open drn05r opened 2 years ago
Recent version of EPrints has introdiced a simplified means for configuration EPrints for HTTPS only:
https://wiki.eprints.org/w/Simplified_HTTPS_Configuration
This means that there could be issue with setting $c->{datacitedoi}->{repoid} if HTTPS only configuration is defined in the archive's cfg/cfg.d/10_core.pl.
https://github.com/eprintsug/DataCiteDoi/blob/86ac3a7129cc05363986655e8cb7e5502f56e24a/cfg/cfg.d/z_datacitedoi.pl#L27
If this line is changed to something like:
c->{datacitedoi}{repoid} = defined $c->{host} ? $c->{host} : $c->{securehost};
This should ensure DataCiteDOI still works with HTTPS-only configuration for EPrints 3.4.1+.
Recent version of EPrints has introdiced a simplified means for configuration EPrints for HTTPS only:
https://wiki.eprints.org/w/Simplified_HTTPS_Configuration
This means that there could be issue with setting $c->{datacitedoi}->{repoid} if HTTPS only configuration is defined in the archive's cfg/cfg.d/10_core.pl.
https://github.com/eprintsug/DataCiteDoi/blob/86ac3a7129cc05363986655e8cb7e5502f56e24a/cfg/cfg.d/z_datacitedoi.pl#L27
If this line is changed to something like:
c->{datacitedoi}{repoid} = defined $c->{host} ? $c->{host} : $c->{securehost};
This should ensure DataCiteDOI still works with HTTPS-only configuration for EPrints 3.4.1+.