Skip to content

I can not draft a doi which has been reserved #39

Closed
@tloubrieu-jpl

Description

@tloubrieu-jpl

🐛 Describe the bug

When I select a reserved DOI and click on RELEASE, then SAVE, I have an error "JSON requestBody provided for draft POST request. Body must be an XML PDS4/OSTI label."

This used to work and the API still work for me equivalent test case.

📜 To Reproduce

  1. select a reserved DOI and click on RELEASE,
  2. then SAVE,
  3. I have an error "JSON requestBody provided for draft POST request. Body must be an XML PDS4/OSTI label."

🕵️ Expected behavior

The DOI should be saved as draft

📚 Version of Software Used

Latest on master

🩺 Test Data / Additional context

I believe this is because of the request HEADER content-type, this is application/json, and this should be application/xml or text/plain so that the API recognize the submitted format.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workings.medium

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions