Bug 1316490 - OData - creation of entity (POST) returns exception (status code 500)
Summary: OData - creation of entity (POST) returns exception (status code 500)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER3
: 6.3.0
Assignee: Van Halbert
QA Contact: Juraj Duráni
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 11:07 UTC by Juraj Duráni
Modified: 2016-08-24 11:44 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-24 11:44:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-4054 0 Major Closed OData - creation of entity (POST) returns exception (status code 500) 2016-06-15 12:35:46 UTC

Description Juraj Duráni 2016-03-10 11:07:42 UTC
Description of problem:
Creation of entity returns exception [1]. Representation of entity [2]. Http request [3]. Header [4]. Same exception with of JSON format.

[1]
TEIID10076 Invalid conversion from type class java.lang.Object with value 'java.util.GregorianCalendar[time=4000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="GMT",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=1970,MONTH=0,WEEK_OF_YEAR=1,WEEK_OF_MONTH=1,DAY_OF_MONTH=1,DAY_OF_YEAR=1,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,MINUTE=0,SECOND=4,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0]' to type class java.sql.Time


[2]
<?xml version='1.0' encoding='UTF-8'?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:m="http://docs.oasis-open.org/odata/ns/metadata" xmlns:d="http://docs.oasis-open.org/odata/ns/data" xmlns:gml="http://www.opengis.net/gml" xmlns:georss="http://www.georss.org/georss"><category scheme="http://docs.oasis-open.org/odata/ns/scheme"/><content type="application/xml"><m:properties><d:intkey m:type="Int32">4</d:intkey><d:intnum m:type="Int32">4</d:intnum><d:stringkey>4</d:stringkey><d:stringval>value_4</d:stringval><d:booleanval m:type="Boolean">false</d:booleanval><d:decimalval m:type="Double">-20.4</d:decimalval><d:timeval m:type="TimeOfDay">00:00:04</d:timeval><d:dateval m:type="Date">2004-04-04</d:dateval><d:timestampval m:type="DateTimeOffset">2004-01-01T00:00:04Z</d:timestampval><d:clobval m:type="Binary">Y2xvYl92YWx1ZV8wMDAwNA==</d:clobval></m:properties></content></entry>

[3]
POST http://localhost:8080/odata4/olingo_basic/Source/PostTable(4)
[4]
Content-type: application/xml

Comment 1 JBoss JIRA Server 2016-03-17 18:43:58 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4054 to Coding In Progress

Comment 2 JBoss JIRA Server 2016-03-17 20:46:06 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4054 to Resolved

Comment 3 Juraj Duráni 2016-04-21 08:05:28 UTC
Teiid creates entity successfully, but returns incorrect status code. Returned status code is 204, but should be 201.
OData service should return 204 only in case if request contains header 'prefer return=minimal'.

Comment 4 JBoss JIRA Server 2016-04-21 08:05:46 UTC
Juraj Duráni <jdurani> updated the status of jira TEIID-4054 to Reopened

Comment 5 JBoss JIRA Server 2016-04-21 21:24:08 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4054 to Coding In Progress

Comment 6 JBoss JIRA Server 2016-04-22 22:35:06 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4054 to Resolved

Comment 7 JBoss JIRA Server 2016-06-15 12:35:47 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4054 to Closed


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