Bug 1074989
| Summary: | REST API returns HTTP code 500 even though it is obviously not a server error and rather incorrect request | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Petr Široký <psiroky> | ||||||||
| Component: | Business Central | Assignee: | Shelly McGowan <smcgowan> | ||||||||
| Status: | CLOSED EOL | QA Contact: | Jiri Locker <jlocker> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | high | ||||||||||
| Version: | 6.0.1 | CC: | jlocker, kverlaen | ||||||||
| Target Milestone: | ER3 | ||||||||||
| Target Release: | 6.1.0 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2020-03-27 20:09:57 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Petr Široký
2014-03-11 10:36:42 UTC
Hi Petr, thanks for catching this. Could you _attach_ a full server.log? (Please do not paste it in a comment! :) Created attachment 874324 [details]
Server log excerpt
Created attachment 874325 [details]
Response send to the client
Marco, I have attached the server log excerpt and also the response. They are basically the same, but maybe they could both be useful.
Created attachment 874326 [details]
Full server log
Now I see you actually wanted full server log, so attaching also that.
Petr, thanks. Actually the HTTP status that should be returned here should be 202, because it should be an asynchronous request. See BZ 1077305 for more info. Thanks very much for attaching the logs! FYI, re HTTP statuses, I usually look at RFC 2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html) to determine the correct status to use, but the twitter URL is very helpful. Thanks! This issue is basically a subset of BZ 1077305. So once that one is resolved this one should be too. The main problem is that the operation should be asynchronous and not synchronous. This has been fixed on master. Does this issue specifically refer to BPMS 6.0.x, or would it be okay to move the version to BPMS 6.1 and set it to modified, since it's been fixed in BPMS 6.1? I believe it has been already moved to BPMS 6.1 (see the flag jboss‑brms‑6.1.0), so it should be OK to change the state to modified. In case there would be a patch requested for 6.0.x, we can always cone this BZ into new one. I have hit this issue too. I hope it is now fixed in community and I am adding example requests for veryfing the fix: 1. Getting organizational unit that does not exist curl -i -u '<user>:<password>' -H 'Content-Type: application/json' -X GET 'http://localhost:8080/business-central/rest/organizationalunits/<org_unit>' 2. Getting repository that does not exist curl -i -u '<user>:<password>' -H 'Content-Type: application/json' -X GET 'http://localhost:8080/business-central/rest/organizationalunits/<repository>' Fixed. Commits: 6.2.x: https://github.com/droolsjbpm/guvnor/commit/6914081c master: https://github.com/droolsjbpm/guvnor/commit/b88c2f0f Verified in 6.1.0.ER3. The POST/PUT/DELETE operations are now asynchronous (returning job request info). For GET and case where OU/repo does not exist, "404 Not Found" is returned. |