-
Notifications
You must be signed in to change notification settings - Fork 11
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
Ambiguous error message for unauthorized prepublication access #50
Labels
Comments
ewhanson
added a commit
to ewhanson/oaiJats
that referenced
this issue
Nov 15, 2024
ewhanson
added a commit
to ewhanson/oaiJats
that referenced
this issue
Nov 15, 2024
ewhanson
added a commit
that referenced
this issue
Nov 15, 2024
ewhanson
added a commit
that referenced
this issue
Nov 15, 2024
ewhanson
added a commit
that referenced
this issue
Nov 15, 2024
github-project-automation
bot
moved this from Backlog
to Done
in Metadata and Distribution
Nov 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If an authenticated user/API key is required for access and the request is not authorized, the message returned via OAI is the same as when no JATS is found (
Cannot disseminate format (JATS XML not available)
), see:oaiJats/OAIMetadataFormat_JATS.php
Lines 99 to 105 in 2974473
This should return a distinct message, indicating the type of error (why it cannot disseminate format)—that the record requires the request to include an authenticated user or API key with the correct access permissions.
This causes difficulties for downstream consumers of the OAI JATS metadata because it is not clear why OJS is failing to return the expected JATS XML.
The text was updated successfully, but these errors were encountered: