Skip to content

Issue #1346 incorrect xml response from signposting api#1347

Open
kuchtiak-ufal wants to merge 3 commits into
clarin-v7from
issue_#1346_incorrect_xml_response_from_signposting_api
Open

Issue #1346 incorrect xml response from signposting api#1347
kuchtiak-ufal wants to merge 3 commits into
clarin-v7from
issue_#1346_incorrect_xml_response_from_signposting_api

Conversation

@kuchtiak-ufal

Copy link
Copy Markdown

Fix is taken from upstream fix in this pull request:
DSpace#10090

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Signposting describedby endpoint to return valid DataCite XML by outputting a single XML root element (matching the configured DataCite dissemination crosswalk), aligning with the upstream DSpace fix for issue #1346.

Changes:

  • Switch /signposting/describedby/{uuid} to use DisseminationCrosswalk#disseminateElement() instead of disseminateList() to ensure a single root element is returned.
  • Strengthen the integration test to assert the response starts with the expected DataCite <resource ...> root element.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
dspace-server-webapp/src/main/java/org/dspace/app/rest/signposting/controller/LinksetRestController.java Ensures describedby returns a single-root XML document via disseminateElement().
dspace-server-webapp/src/test/java/org/dspace/app/rest/signposting/controller/LinksetRestControllerIT.java Adds an assertion verifying the DataCite XML root element is present at the start of the response.

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

Successfully merging this pull request may close these issues.

Signposting describedby endpoint returns incorrect XML

2 participants