Bug 1092644
| Summary: | Business-central deployed on WebSphere fails to clone repository via REST, unable to parse request. | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Radovan Synek <rsynek> | ||||||||||||
| Component: | Business Central | Assignee: | Maciej Swiderski <mswiders> | ||||||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Radovan Synek <rsynek> | ||||||||||||
| Severity: | urgent | Docs Contact: | |||||||||||||
| Priority: | urgent | ||||||||||||||
| Version: | 6.0.2 | CC: | ibek, kverlaen, mrietvel, rrajasek | ||||||||||||
| Target Milestone: | ER3 | Keywords: | TestBlocker | ||||||||||||
| 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: | 2014-08-06 19:53:14 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-04-29 16:12:44 UTC
Radek, I just tried it on WAS and all works well for both create new repository and clone repository. Important to note is that the header Content-Type is set to application/json and that the request body is proper JSON string that is accepted by the system which is for example:
{
"name":"new-project-repo",
"description":"repo for my new project",
"userName":null,"password":null,
"requestType":"new",
"gitURL":null
}
that string will be used to construct RepositoryRequest instance on runtime. Don't see a need to specify RepositoryRequest class name etc as part of the JSON string.
Maciejs, the JSON request you provided works with WebSphere, but cause an exception when used with EAP:
JsonMappingException thrown with message 'Root name 'name' does not match expected ('RepositoryRequest') for type [simple type, class org.kie.workbench.common.services.shared.rest.RepositoryRequest]
complete response is attached.
Created attachment 891167 [details]
response from EAP
Maciej, here is the BZ 1050894 for which the format has changed. Also the behaviour was different between BPMS and BRMS ( see BZ 1087941). So I believe it should be fixed here as well. Created attachment 891325 [details]
patched drools-wb-rest jar
Created attachment 891326 [details]
patched kie-services-jaxb jar
Attached are two patched jars. After dropping these as a replacement in the business-central eap war (in business-central.war/WEB-INF/lib replacing the old ones), the REST request as specified in Comment 1 now completed successfully on EAP as well. Fixed. Commits: 6.0.x: https://github.com/droolsjbpm/droolsjbpm-integration/commit/2bfffd24 https://github.com/droolsjbpm/drools-wb/commit/cf85fd4a master: https://github.com/droolsjbpm/droolsjbpm-integration/commit/a003a0d3 https://github.com/droolsjbpm/drools-wb/commit/00351591 Created attachment 891728 [details]
patched kie-services-client jar
Verified with BPMS-6.0.2.ER3 |