Bug 1071846
| Summary: | Although JSON response type is declared, drools-wb-rest returns XML in case of any error. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Radovan Synek <rsynek> | ||||||||
| Component: | Business Central | Assignee: | Marco Rietveld <mrietvel> | ||||||||
| Status: | CLOSED WORKSFORME | QA Contact: | Radovan Synek <rsynek> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 6.0.1 | CC: | etirelli, kverlaen, mrietvel, rrajasek, smcgowan, wsiqueir | ||||||||
| Target Milestone: | ER1 | ||||||||||
| Target Release: | 6.0.2 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2015-12-07 14:59:24 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
Radovan Synek
2014-03-03 10:02:05 UTC
Created attachment 869873 [details]
response XML
Fixed. Commits: 6.0.x: https://github.com/droolsjbpm/droolsjbpm-integration/commit/1384d223 master; https://github.com/droolsjbpm/droolsjbpm-integration/commit/07adb98c Created attachment 888798 [details]
error response screenshot
The issue persists in BPMS-6.0.2.ER1. Please take a look at the newly attached screenshot. There has been significant refactoring work on the REST services in for BxMS 6.1/commuinty 6.2. I think that this problem may have been fixed as a result and I've asked Radovan to retest it. (In reply to Marco Rietveld from comment #5) > There has been significant refactoring work on the REST services in for BxMS > 6.1/commuinty 6.2. I think that this problem may have been fixed as a result > and I've asked Radovan to retest it. Marco, I've retested with the most recent snapshot: kie-wb-distribution-wars-6.2.0-20140810.162733-61-eap-6_1.war. I've added a single user and started EAP 6.1.1 with standalone-full profile. Problem is still there, see the attached screenshot. An attempt to start a non-existing task ended up with an exception (NPE) serialized to XML. Similarly, attempt to send request to create a new repository with messed up request body resulted in XML exception response. Created attachment 925815 [details]
screenshot with error response - 6.2.0.SNAPSHOT
Radovan, the behaviour for the task operation was correct: that response should be in XML, seeing as the default for the task, runtime and deployment operations is XML. AFAIK, this BZ only targets the XML-formatted exceptions created when doing knowledge store REST operations, such as improperly creating a new repoository. You've tested that again as well and shown that it still doesn't work, so I'll take another look at it. *** Bug 1255566 has been marked as a duplicate of this bug. *** Unable to reproduce with 6.2.0.GA -> closing. |