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

ResourceIdentifierType is allowed to be 'null' #198

Closed
VolkerHartmann opened this issue Jan 30, 2023 · 2 comments
Closed

ResourceIdentifierType is allowed to be 'null' #198

VolkerHartmann opened this issue Jan 30, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@VolkerHartmann
Copy link
Contributor

Describe the bug
Creating a metadata document with a related resource without providing its type results in a NPE.

To Reproduce
Steps to reproduce the behavior:

  1. Ingest a schema with a schema record provide no type for given pid.
  2. See error (NPE instead of BadArgumentException)

Expected behavior
The HTTP status should be 400 (Bad argument)

@VolkerHartmann VolkerHartmann added the bug Something isn't working label Jan 30, 2023
@VolkerHartmann VolkerHartmann self-assigned this Jan 30, 2023
@github-actions
Copy link
Contributor

@VolkerHartmann
Copy link
Contributor Author

Fixed by 09b75d7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant