-
Notifications
You must be signed in to change notification settings - Fork 117
Reraised NoApplicableCode with status 500 at handler catch #446
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
Conversation
1 similar comment
|
@eran-pinhas @jachym technically this works. But I can't decide how the WPS protocol wants to have it. See my comments in #442. |
|
@eran-pinhas @jachym @davidcaron I would like to solve this PR. I still don't know how to decide but from tests with Emu (dry-run process) I'm in favor of not merging. Currently when I run a wrong wps request (missing parameter, etc) I get the following exception type: When something goes wrong within my process (for example using the dry-run exception in emu example), I get an exception in a status document: If I merge this PR I will only get the first exception type. Probably this is not what we want. Have I overseen something? |
|
@cehbrecht I think I agree with you, and the specification is a bit confusing. Section 10.3.3 Execute exceptions:
The response format of this section corresponds to what we would get if this PR gets merged. It seems to me that these exceptions are all raised before starting the process execution. (missing or invalid parameters, storage and queue problems, etc.) These exceptions seem to be more about "we couldn't start processing for some reason". Section 10.3.1 Execute response parameters (Note d in Table 55)
The responses in table 55 are about the processing status, and a failed status is still a valid status. So I think that the specs say that this PR should not be merged... but at the same time, I agree that a 200 status code containing an error message is not ideal. |
|
Hey guys, thank for your time trying to understand the WPS spec with me. We actually used your way of interpretation and didn't use the status code. And because I'm the only one cared for it I think we can close it and there will be no hard feelings 😁 |
|
thano you, @eran-pinhas for your contribution anyway |
As discussed at #442