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

from attribute in response wrongly named #243

Open
floriangantner opened this issue Nov 12, 2024 · 0 comments
Open

from attribute in response wrongly named #243

floriangantner opened this issue Nov 12, 2024 · 0 comments
Labels

Comments

@floriangantner
Copy link

floriangantner commented Nov 12, 2024

Package version (if known): since 2.2.1

Describe the bug

Responses on the oai-pmh api with the from parameter in the request returns some from_ attribute in the response.

Steps to Reproduce

  1. Tested on invenioRDM13 running on Zenodo view-source:https://zenodo.org/oai2d?verb=ListRecords&metadataPrefix=oai_datacite&until=2024-11-12&from=2022-11-11
  2. Tested on our university repository running invenioRDM12 view-source:https://fd-repo.uni-bamberg.de/oai2d?verb=ListRecords&metadataPrefix=oai_datacite&until=2024-11-12&from=2024-11-11
  3. Check the Response in xml element request. It should contain from_

Expected behavior

The attribute from_ does not appear in the xml schema of the oai-pmh2 specification https://www.openarchives.org/OAI/openarchivesprotocol.html#OAIPMHschema .
We expect the attribute to be from instead of from_.

Screenshots (if applicable)

Response (Zenodo)
Screenshot from 2024-11-12 15-18-54

Additional context

there was some previous fix caf2a95 for the from parameter which was not processed at all. We assume that this problem occurs from the reserved name of the python variable and might be some serialization issue.

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

No branches or pull requests

1 participant