Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with HTTPS everywhere config for EPrints 3.4.1+ #56

Open
drn05r opened this issue Aug 15, 2022 · 0 comments
Open

Compatibility with HTTPS everywhere config for EPrints 3.4.1+ #56

drn05r opened this issue Aug 15, 2022 · 0 comments
Assignees

Comments

@drn05r
Copy link

drn05r commented Aug 15, 2022

EPrints 3.4.1+ allows for simplified configuration of HTTPS only (where all HTTP requests get redirected to HTTPS). See:

https://wiki.eprints.org/w/Simplified_HTTPS_Configuration

This requires $c->{host} to be unset and only $c->{securehost} to be set. This is a problem for the below line: *

$c->{datacitedoi}{repoid} = $c->{host};

If you install the DataCiteDOI plugin and you have used the simplified HTTPS configuration method for HTTPS only. This will cause an error and create the wrong DOIs, as they will not include the hostname of the EPrints repository. The following line after the line reference above will fix this issue:

$c->{datacitedoi}{repoid} ||= $c->{securehost};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants