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

Improved error message for cases of invalid or missing namespaces. #636

Closed
wants to merge 1 commit into from

Conversation

mikedurbin
Copy link
Contributor

Since grizzly eats the entity from the jersey 2 responses, I couldn't easily write an integration test.

You can test this using curl:
curl -v -H "Content-Type: text/turtle" -X PUT --data-binary "@u.txt" "http://localhost:8080/rest/test/te/st/12/3/test123"

where u.txt is:
<http://localhost:8080/rest/test/te/st/12/3/test123> <http://fedora.info/definitions/v4/rels-ext#isPartOf> <http://localhost:8080/rest/test/sa/mp/le/:b/sample_batch_id>

You can test a similar case by changing u.txt to:
<http://localhost:8080/rest/test/te/st/12/3/test123> <http://fedora.info/definitions/v4/rels-ext#isPartOf> <http://localhost:8080/rest/test/sa/mp/le/unregistered:b/sample_batch_id>

@awoods
Copy link

awoods commented Nov 11, 2014

Resolved with: 11bdb14

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.

None yet

2 participants