[JBoss JIRA] (TEIIDDES-2359) Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2359?page=com.atlassian.jira.plu... ]
Barry LaFond resolved TEIIDDES-2359.
------------------------------------
Resolution: Done
master: https://github.com/Teiid-Designer/teiid-designer/commit/ef9ef5b0c474b5ed2...
* Added response type check. If JSON, then auto-set ACCEPT value to "application/json" instead of "application/xml"
* Added exception check if connection profile is XML file and JSON response type is defined. Then throw up error message dialog.
> Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON
> -----------------------------------------------------------------------------------------
>
> Key: TEIIDDES-2359
> URL: https://issues.jboss.org/browse/TEIIDDES-2359
> Project: Teiid Designer
> Issue Type: Enhancement
> Affects Versions: 8.6.1
> Environment: Windows 7
> Reporter: Matus Makovy
> Attachments: 1.png, 2.png, 3.png, 4.png, 5.png, 6.png, log.txt
>
>
> 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 (Log attached)
> Screenshots attached
> TD 8.6.1.Alpha1 + DV 6.1.ER2
> I am not sure, but I think this issue occurs also in 8.3.4
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months
[JBoss JIRA] (TEIIDDES-2229) Merge various fixes from master into 8.6.1
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2229?page=com.atlassian.jira.plu... ]
Barry LaFond updated TEIIDDES-2229:
-----------------------------------
Description:
*Candidates*
* TEIIDDES-XXXX - XXX
*Completed Upstream*
* TEIIDDES-1037 Data types inported from flat file partially implemented in wizard
* TEIIDDES-2347 Undeploying a Dynamic VDB results in TeiidAdminProcessing exception
* TEIIDDES-2350 Select Datatype Dialog UI issue
* TEIIDDES-2354 Import -> Web Service Source >> Source and View Model(REST) is missing one quote in SQL
* TEIIDDES-2356 Import DDL file from workspace location does not work. File not found
* TEIIDDES-2362 removed column object type when trying to ADD row-base security filter
* TEIIDDES-2358 REST WS import issues with translator and data source
*Merged*
* TEIIDDES-2194 On windows, when deploying VDB, and data source exist, it still wants to create datasource
* TEIIDDES-2301 & TEIIDDES-2276 XML File importer - issues with SQL generation
* TEIIDDES-2342 Layout issues with second page of Teiid Import Wizard in Luna
was:
*Candidates*
* TEIIDDES-XXXX - XXX
*Completed Upstream*
* TEIIDDES-1037 Data types inported from flat file partially implemented in wizard
* TEIIDDES-2347 Undeploying a Dynamic VDB results in TeiidAdminProcessing exception
* TEIIDDES-2350 Select Datatype Dialog UI issue
* TEIIDDES-2354 Import -> Web Service Source >> Source and View Model(REST) is missing one quote in SQL
* TEIIDDES-2356 Import DDL file from workspace location does not work. File not found
* TEIIDDES-2362 removed column object type when trying to ADD row-base security filter
*Merged*
* TEIIDDES-2194 On windows, when deploying VDB, and data source exist, it still wants to create datasource
* TEIIDDES-2301 & TEIIDDES-2276 XML File importer - issues with SQL generation
* TEIIDDES-2342 Layout issues with second page of Teiid Import Wizard in Luna
> Merge various fixes from master into 8.6.1
> ------------------------------------------
>
> Key: TEIIDDES-2229
> URL: https://issues.jboss.org/browse/TEIIDDES-2229
> Project: Teiid Designer
> Issue Type: Task
> Components: Patch Release
> Affects Versions: 8.5.1, 8.6.1
> Reporter: Ted Jones
> Assignee: Johnathon Lee
> Priority: Blocker
> Fix For: 8.6.1
>
>
> *Candidates*
> * TEIIDDES-XXXX - XXX
> *Completed Upstream*
> * TEIIDDES-1037 Data types inported from flat file partially implemented in wizard
> * TEIIDDES-2347 Undeploying a Dynamic VDB results in TeiidAdminProcessing exception
> * TEIIDDES-2350 Select Datatype Dialog UI issue
> * TEIIDDES-2354 Import -> Web Service Source >> Source and View Model(REST) is missing one quote in SQL
> * TEIIDDES-2356 Import DDL file from workspace location does not work. File not found
> * TEIIDDES-2362 removed column object type when trying to ADD row-base security filter
> * TEIIDDES-2358 REST WS import issues with translator and data source
> *Merged*
> * TEIIDDES-2194 On windows, when deploying VDB, and data source exist, it still wants to create datasource
> * TEIIDDES-2301 & TEIIDDES-2276 XML File importer - issues with SQL generation
> * TEIIDDES-2342 Layout issues with second page of Teiid Import Wizard in Luna
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months
[JBoss JIRA] (TEIIDDES-2358) REST WS import issues with translator and data source
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2358?page=com.atlassian.jira.plu... ]
Barry LaFond updated TEIIDDES-2358:
-----------------------------------
Component/s: Patch Release
> REST WS import issues with translator and data source
> -----------------------------------------------------
>
> Key: TEIIDDES-2358
> URL: https://issues.jboss.org/browse/TEIIDDES-2358
> Project: Teiid Designer
> Issue Type: Bug
> Components: Import/Export, Patch Release, Web Services Support
> Affects Versions: 8.6.1
> Reporter: Matus Makovy
> Assignee: Barry LaFond
> Fix For: 8.7, 8.6.1
>
> Attachments: 1.png, 2.png
>
>
> When I am trying to import from REST WS and create a VDB I have to set translator manually and TD also isn't able to deploy datasource for this VDB.
> (I am not sure if it is a bug, but when I am importing from SOAP WS everything works fine)
> Screenshots attached
> TD 8.6.1.Alpha1 + DV 6.1.ER2
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months
[JBoss JIRA] (TEIIDDES-2359) Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON
by Ted Jones (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2359?page=com.atlassian.jira.plu... ]
Ted Jones commented on TEIIDDES-2359:
-------------------------------------
I think this is an enhancement we can make [~mmakovy]. We check for the existence of an Accept override here: https://github.com/Teiid-Designer/teiid-designer/blob/26a3978f8ebcb8ea237.... We should check for the expected return type from the CP and if JSON, set it to application/json instead of always setting it to application/xml.
> Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON
> -----------------------------------------------------------------------------------------
>
> Key: TEIIDDES-2359
> URL: https://issues.jboss.org/browse/TEIIDDES-2359
> Project: Teiid Designer
> Issue Type: Enhancement
> Affects Versions: 8.6.1
> Environment: Windows 7
> Reporter: Matus Makovy
> Attachments: 1.png, 2.png, 3.png, 4.png, 5.png, 6.png, log.txt
>
>
> 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 (Log attached)
> Screenshots attached
> TD 8.6.1.Alpha1 + DV 6.1.ER2
> I am not sure, but I think this issue occurs also in 8.3.4
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months
[JBoss JIRA] (TEIIDDES-2359) Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON
by Ted Jones (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2359?page=com.atlassian.jira.plu... ]
Ted Jones updated TEIIDDES-2359:
--------------------------------
Issue Type: Enhancement (was: Bug)
> Tiied Designer sends header-accept="application/xml" when trying to import from REST JSON
> -----------------------------------------------------------------------------------------
>
> Key: TEIIDDES-2359
> URL: https://issues.jboss.org/browse/TEIIDDES-2359
> Project: Teiid Designer
> Issue Type: Enhancement
> Affects Versions: 8.6.1
> Environment: Windows 7
> Reporter: Matus Makovy
> Attachments: 1.png, 2.png, 3.png, 4.png, 5.png, 6.png, log.txt
>
>
> 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 (Log attached)
> Screenshots attached
> TD 8.6.1.Alpha1 + DV 6.1.ER2
> I am not sure, but I think this issue occurs also in 8.3.4
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months
[JBoss JIRA] (TEIIDDES-2358) REST WS import issues with translator and data source
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2358?page=com.atlassian.jira.plu... ]
Barry LaFond updated TEIIDDES-2358:
-----------------------------------
Fix Version/s: 8.7
8.6.1
Component/s: Import/Export
Web Services Support
> REST WS import issues with translator and data source
> -----------------------------------------------------
>
> Key: TEIIDDES-2358
> URL: https://issues.jboss.org/browse/TEIIDDES-2358
> Project: Teiid Designer
> Issue Type: Bug
> Components: Import/Export, Web Services Support
> Affects Versions: 8.6.1
> Reporter: Matus Makovy
> Assignee: Barry LaFond
> Fix For: 8.7, 8.6.1
>
> Attachments: 1.png, 2.png
>
>
> When I am trying to import from REST WS and create a VDB I have to set translator manually and TD also isn't able to deploy datasource for this VDB.
> (I am not sure if it is a bug, but when I am importing from SOAP WS everything works fine)
> Screenshots attached
> TD 8.6.1.Alpha1 + DV 6.1.ER2
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months