Bug 1148002
| Summary: | Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Data Virtualization 6 | Reporter: | Matus Makovy <mmakovy> | ||||||
| Component: | Tooling | Assignee: | Barry LaFond <blafond> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.1.0 | CC: | blafond, felias, vhalbert | ||||||
| Target Milestone: | ER4 | ||||||||
| Target Release: | 6.1.0 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Windows | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2015-11-17 18:08:30 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: |
|
||||||||
Barry LaFond <blafond> updated the status of jira TEIIDDES-2359 to Resolved It is not fixed in TD 9.0.1.Beta2, I managed to reproduce this today. Should it be fixed in this version ? I think this is fixed only partialy. Rest Import wizard is fixed, but "new connection profile" wizard is not fixed. When I am importing JSON and the application sends header "application/xml" wizard reports error - THIS IS OK When I am importin JSON and the application sends header "application/json" everythig is OK - THIS IS ALSO OK Here comes the bug: When I am creating new connection profile (REST), I choose JSON and application sends header "application/xml" wizard accepts this - BUG When I am creating new connection profile (REST), I choose JSON and application sends header "application/json" wizard reports error - BUG I hope I didn't mess it up... Tested with latest TD - 9.0.1.Final Created attachment 988140 [details]
Log file - after clicking "Test connection" in Connection profile wizard
Log file - after clicking "Test connection" in Connection profile wizard for JSON WS
see -> header=accept=application/xml
Created attachment 988141 [details]
Log file - after selecting profile in Import wizard
Log file - after selecting profile in Import wizard
see -> header=accept=application/json
verified on JBDSIS 8.0.0.CR2 Matus Makovy <mmakovy> updated the status of jira TEIIDDES-2359 to Closed verified with TD 8.6.1.CR1 |
I have my small web application that should simulate a REST web service (it simply returns XML and JSON strings), when I have annotation @Produces("application/json") and I try to import from this REST JSON, TD gives me an error that server returned response code 406. After I change it in my application to @Produces("application/xml") it is OK. I tried to force server to log accept-headers that it is sending. Server sends accept-headers: aplication/xml TD 8.6.1.Alpha1 + DV 6.1.ER2 I am not sure, but I think this issue occurs also in 8.3.4