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

Validation server exception when local reference absent #874

Conversation

hdconradi
Copy link
Contributor

Currently an invalid local reference causes an InternalErrorException caused by: FHIRException: Resource resolution services not provided.
The validation should instead return normally and contain an error message.

This pull request fixes this error by allowing fetcher==null in case of local references.

Unfortunately, there are now two error messages with the same meaning:

  • one from the ProfileValidation
  • one from the code in this location.

@coveralls
Copy link

coveralls commented Mar 1, 2018

Coverage Status

Coverage increased (+0.01%) to 72.524% when pulling b2107ba on hdconradi:validation-server-exception-when-local-reference-absent into f766156 on jamesagnew:master.

darktyco added a commit to darktyco/hapi-fhir that referenced this pull request Mar 6, 2018
@hdconradi hdconradi force-pushed the validation-server-exception-when-local-reference-absent branch from 1fae3ba to aa4342b Compare March 7, 2018 12:38
@hdconradi
Copy link
Contributor Author

Rebased to the state after the R4 sync.

Heinz-Dieter Conradi added 3 commits April 3, 2018 23:09
Currently an invalid local reference causes an InternalErrorException
caused by: FHIRException: Resource resolution services not provided.
The validation should instead return normally and contain an error
message.
Currently an invalid local reference causes an InternalErrorException
caused by: FHIRException: Resource resolution services not provided.
The validation should instead return normally and contain an error
message.
'fetcher == null' is ok for a local reference.

Unfortunately, there are now two messages with the same meaning:
- one from the ProfileValidation
- one from the code in this location
@hdconradi hdconradi force-pushed the validation-server-exception-when-local-reference-absent branch from aa4342b to b2107ba Compare April 3, 2018 21:16
@hdconradi
Copy link
Contributor Author

Rebased after 3.3

@jamesagnew jamesagnew merged commit eb77b8a into hapifhir:master May 23, 2018
jamesagnew added a commit that referenced this pull request May 23, 2018
@jamesagnew
Copy link
Collaborator

Thanks for the PR! This looks great.

It has been merged and synced upstream.

@hdconradi hdconradi deleted the validation-server-exception-when-local-reference-absent branch June 5, 2018 09:24
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.

3 participants