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
Error when saving datastream #289
Comments
It seems to occur when I post content to the same URL twice in a row. The first response is a 201, the second is a 500 |
It seems that using a PUT works just fine, but the error when using POST is unclear and maybe unnecessary. |
Yes, in general, POST is for creating new resources and PUT/PATCH is for modifying them. I think the 500 error is because it's trying to create a child resource under the datastream, so it's getting an error trying to figure out which type to create because there aren't any valid types. I've opened a Pivotal ticket for fixing this bug and returning a 4xx error when trying to POST to an existing fcr:content node: https://www.pivotaltracker.com/story/show/69610980 |
Resolved with: 311b19a |
This has been fixed in master and will be in 4.0.0-alpha5: |
On Alpha 4, when I POST an XML document to:
http://localhost:8983/fedora/rest/ad/da/87/89/adda8789-ab2a-44f8-be67-8f57fd4e5fb3/descMetadata/fcr:content
I get a 500 response with this body:
The text was updated successfully, but these errors were encountered: