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

Update z_datacitedoi.pl to set datecitedoi repoid to securehost if host is undefined #52

Open
drn05r opened this issue Jan 7, 2022 · 0 comments

Comments

@drn05r
Copy link

drn05r commented Jan 7, 2022

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.

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

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+.

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

No branches or pull requests

1 participant