NASA-PDS / doi-ui

The web interface for the PDS DOI Service providing the ability management PDS archive DOIs. See the DOI Service for more details on the available capabilities. https://nasa-pds.github.io/doi-service/
Apache License 2.0
0 stars 4 forks source link

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

Closed tloubrieu-jpl closed 3 years ago

tloubrieu-jpl commented 3 years ago

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