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: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: 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:
Description Flags
Log file - after clicking "Test connection" in Connection profile wizard
none
Log file - after selecting profile in Import wizard none

Description Matus Makovy 2014-09-30 13:51:52 UTC
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

Comment 1 JBoss JIRA Server 2014-10-02 16:25:07 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2359 to Resolved

Comment 2 Matus Makovy 2015-01-08 10:19:06 UTC
It is not fixed in TD 9.0.1.Beta2, I managed to reproduce this today. Should it be fixed in this version ?

Comment 3 Matus Makovy 2015-01-21 08:41:59 UTC
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

Comment 4 Matus Makovy 2015-02-04 14:56:12 UTC
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

Comment 5 Matus Makovy 2015-02-04 14:57:18 UTC
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

Comment 6 Matus Makovy 2015-02-06 11:37:34 UTC
verified on JBDSIS 8.0.0.CR2

Comment 7 JBoss JIRA Server 2015-02-09 12:16:00 UTC
Matus Makovy <mmakovy> updated the status of jira TEIIDDES-2359 to Closed

Comment 8 Matus Makovy 2015-03-03 11:11:25 UTC
verified with TD 8.6.1.CR1