Bug 1148002 - Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON
Summary: Tiied Designer sends header-accept="application/xml" when trying to import fr...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Tooling
Version: 6.1.0
Hardware: Unspecified
OS: Windows
unspecified
unspecified
Target Milestone: ER4
: 6.1.0
Assignee: Barry LaFond
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-30 13:51 UTC by Matus Makovy
Modified: 2015-11-17 18:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-17 18:08:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Log file - after clicking "Test connection" in Connection profile wizard (7.99 KB, text/plain)
2015-02-04 14:56 UTC, Matus Makovy
no flags Details
Log file - after selecting profile in Import wizard (4.85 KB, text/plain)
2015-02-04 14:57 UTC, Matus Makovy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIIDDES-2359 0 Major Closed Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON 2015-02-09 12:16:00 UTC

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


Note You need to log in before you can comment on or make changes to this bug.