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

HTTP status code 200 if exception in DC DS creation #5

Open
jefferya opened this issue Jun 26, 2018 · 0 comments
Open

HTTP status code 200 if exception in DC DS creation #5

jefferya opened this issue Jun 26, 2018 · 0 comments

Comments

@jefferya
Copy link
Contributor

Expected Behaviour

HTTP 5xx response code if DC datastream creation fails

Current Behaviour

< HTTP/1.1 200 OK
< Date: Mon, 18 Jun 2018 23:10:51 GMT
< Server: Apache/2.2.15 (CentOS)
< X-Powered-By: PHP/5.3.3
< Expires: Sun, 19 Nov 1978 05:00:00 GMT
< Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0
< X-Content-Type-Options: nosniff
< responseText: javax.ws.rs.WebApplicationException: org.fcrepo.server.errors.ObjectIntegrityException: Parse error parsing DC XML Metadata: Premature end of file.
< Content-Length: 161
< Connection: close
< Content-Type: application/json; utf-8
< 
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):
{"message":"javax.ws.rs.WebApplicationException: org.fcrepo.server.errors.ObjectIntegrityException: Parse error parsing DC XML Metadata: Premature end of file."}

Possible Solution

capture exception and set HTTP status

Steps to Reproduce (for bugs)

trigger datastream creation failure

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

No branches or pull requests

1 participant