1372 Commits

Author SHA1 Message Date
mibo
820b462f49
Merge pull request #28 from ninckblokje/master
[OLINGO-1114] Test + fix for NULL value type
2019-11-26 07:33:20 +01:00
ramya vasanth
636fdde13d [OLINGO-1408] Fix tests 2019-11-26 11:42:50 +05:30
Michael Bolz
ec603917e5 [OLINGO-1408] Minor change to fix tests 2019-11-25 21:28:36 +01:00
Michael Bolz
302f991e5b [OLINGO-1408] Applied code formatter 2019-11-25 20:49:09 +01:00
Adrian Görler
932af8fb5d [OLINGO-1408] Support new date time API (#57)
* Fix usage of Calendar in tests

The tests use Calendar instances. For some test cases the time zone of a
Calendar instance is changed and then passed to the valueToString
method.

Unfortunately after just changing the time zone the Calendar only
changes the time zone but not the value of the calculated fields like
YEAR, MONTH, ... . These fields are recalculated only if they are read
by get(YEAR), get(MONTH), ... . The implementation of valueToString
clones the Calendar instance before fields are computed resulting in
a corrupt clone.

This change

1) makes sure that the test the fields in the Calendar instances used
   in the tests are computed
2) makes sure that the valueToString method triggers a computation of
the fields before cloning the Calendar

* Support types of new Date/Time API

The types of the new Date/Time API can now be used as property values.

The following mappings are now supported

EdmDateTimeOffset
- java.time.Instant
- java.time.ZonedDateTime
- java.util.Calendar
- java.util.Date
- java.sql.Timestamp
- java.lang.Long

EdmDate
- java.time.LocalDate
- java.sql.Date

EdmTimeOfDay
- java.time.LocalTime
- java.sql.Time

Only these mappings capture the semantics correctly.

For legacy reasons also supported are the following mappings are still
supported:

EdmDate
- java.util.Calendar (date component in the TZ of the calendar)
- java.util.Date     (date component in UTC)
- java.sql.Timestamp (date component in UTC)
- java.lang.Long     (date component in UTC)

EdmTimeOfDay
- java.util.Calendar (time component in the TZ of the calendar)
- java.util.Date     (time component in UTC)
- java.sql.Timestamp (time component in UTC)
- java.lang.Long     (time component in UTC)

For legacy reasons the default mapping types are unchanged (and remain
semantically incorrect):

EdmDateTimeOffset -> java.sql.Timestamp
EdmDate           -> java.util.Calendar
EdmTimeOfDay      -> java.util.Calendar

* Allow additional (but semantically wrong) conversions

EdmDate -> java.util.Date, java.sql.Timestamp
EdmTimeOfDay -> java.util.Date, java.sql.Timestamp
2019-11-25 19:32:58 +01:00
Artem Smotrakov
98d445a874 [OLINGO-1411] Better header parsing
* [OLINGO-1411] Better header parsing
2019-11-25 16:45:35 +01:00
mibo
43010c72e3
Merge pull request #56 from ianwallen/OLINGO-1400
[OLINGO-1400] Remove duplicate call to provider.getEntityContainer() in EdmProviderImpl.createEntityContainer
2019-11-18 09:10:25 +01:00
Artem Smotrakov
c3f982db3d [OLINGO-1409] Better XML parsing 2019-11-13 11:57:03 +01:00
mibo
5948974ad2 [OLINGO-1409] XML serializer defaults 2019-11-12 04:59:33 +01:00
Ian Allen
f4a6baeaee OLINGO-1400 - remove duplicate call to provider.getEntityContainer() in EdmProviderImpl.createEntityContainer 2019-09-26 10:38:44 -03:00
ramya vasanth
6c2103ccd4 [OLINGO-1391]Code Improvements 2019-09-13 14:28:48 +05:30
ramya vasanth
8f4d031957 [OLINGO-1155]Discrepency in Next Link shown in delta request and normal request 2019-09-13 12:48:26 +05:30
ramya vasanth
b5be472097 [OLINGO-1397]Handle post requests when there is no content type and payload 2019-09-13 12:13:46 +05:30
ramya vasanth
7049f4ebf0 [OLINGO-1391]Code Improvements 2019-09-12 15:24:46 +05:30
ramya vasanth
7f3f9c5261 [OLINGO-1368]Bug Fix for In operator support 2019-09-12 13:21:24 +05:30
ramya vasanth
21d874d255 [OLINGO-1155]Bug Fixes for delta support in Json format 2019-09-09 12:05:44 +05:30
ramya vasanth
510b213cd6 [OLINGO-1393]Validate the values for a Decimal data type as per latest spec 2019-09-09 10:51:15 +05:30
ramya vasanth
b13071f980 Merge branch 'olingojava8' of https://git-wip-us.apache.org/repos/asf/olingo-odata4 2019-09-09 09:54:31 +05:30
ramya vasanth
9f8cbc6fcc [OLINGO-1391]OData V4: Move the olingo library to java 8 2019-09-04 09:17:51 +05:30
Ramesh Reddy
6c3781f178 OLINGO-1355: correcting the error code check 2019-09-01 20:57:06 -05:00
Ramesh Reddy
74587d98f5 OLINGO-1383 2019-09-01 20:35:46 -05:00
Ramesh Reddy
9e94d9521f Merge branch 'pr54' 2019-09-01 20:24:41 -05:00
Archana Rai
73842ec07b [OLINGO-1390] Service Resolution variable for spring apps 2019-08-29 11:04:04 +05:30
ramya vasanth
7632ec7268 [OLINGO-1155]Delta support in Json format 2019-08-29 09:51:44 +05:30
Steven Hawkins
7da68d1138 OLINGO-1389 adding support for posting to a navigation 2019-08-27 20:30:11 -04:00
shawkins
a19ab7cb1d OLINGO-1386 refinements for apply support 2019-08-22 10:55:00 -04:00
dsoni
8dc08e8c57 add floating property facet type 2019-08-13 18:20:22 -07:00
ramya vasanth
e365059900 [OLINGO-1380] OData V4: Response header information is lost in case of exceptions 2019-08-02 12:45:02 +05:30
ramya vasanth
405fb76088 [OLINGO-1375]OData V4: EntitySet in function Import need not be prefixed with namespace 2019-06-27 14:26:41 +05:30
ramya vasanth
aca474ff64 [OLINGO-1368]OData V4: Support In Operator in filters 2019-06-17 14:23:36 +05:30
ramya vasanth
0c7460a2a2 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/olingo-odata4.git 2019-05-15 11:30:24 +05:30
ramya vasanth
c41d10e8dc [OLINGO-1062] Code improvements for support of annotations 2019-05-15 11:29:01 +05:30
mibo
2a509a3bca
Merge pull request #51 from DirkMahler/master
[OLINGO-1357] use map to cache EdmPrimitiveTypeKind values for lookup
2019-05-14 21:09:21 +02:00
ramya vasanth
109cde8d80 [OLINGO-1276]Modifying tests 2019-05-14 15:30:35 +05:30
ramya vasanth
bf12185b59 [OLINGO-1276]Problem with ClientEntitySetIterator 2019-05-14 15:15:33 +05:30
ramya vasanth
9244d682f7 [OLINGO-1358] Substringof Method support 2019-05-14 14:51:23 +05:30
Dirk Mahler
7ff8ffdf37 OLINGO-1357 use s map to cache EdmPrimitiveTypeKind values for lookup 2019-05-13 14:13:40 +02:00
mibo
24fed9b1b6 [OLINGO-1330] cache name in getName() 2019-05-10 17:59:17 +02:00
ramya vasanth
a9eac6cb0a [OLINGO-1356] not supporting alpha numeric characters 2019-05-08 11:03:32 +05:30
mibo
e35f36abc5 [OLINGO-1352] Set 4.7.0-SNAPSHOT as development version 2019-05-05 08:12:19 +02:00
mibo
6e0a5cb43a [OLINGO-1352] Set version to 4.6.0 for release 2019-05-05 07:27:37 +02:00
mibo
68181b9676 [OLINGO-1352] Set version to 4.6.0-RC01 2019-05-01 06:56:06 +02:00
mibo
bc8465cb59 [OLINGO-1352] Versions clean up 2019-05-01 06:41:15 +02:00
Ramesh Reddy
e6672fdef4 OLINGO-1350: Updating fasterxml version 2.9.8 and removing the dependency on aalto-xml library 2019-05-01 06:11:57 +02:00
mibo
ffb0496b08 [OLINGO-1352] Sonar issues clean up 2019-05-01 06:07:59 +02:00
mibo
2032581dc4 [OLINGO-1351] Fix Netty imports for OSGI and update Netty version 2019-04-27 15:19:36 +02:00
mibo
b8ac17e4ae [OLINGO-1343] Fix deadlock Piped_Stream (by Aleksandr) 2019-04-26 20:48:08 +02:00
mibo
482c99c9f0 [OLINGO-1344] Fix deadlock ThreadPool (by Aleksandr) 2019-04-26 20:15:36 +02:00
mibo
50dec8d5d2 [OLINGO-1211] Fix imports and bundling 2019-04-26 19:58:49 +02:00
Archana Rai
3395683b5a [OLINGO-1333]ODataResponse for delta client throws NPE on Asynchronous calls 2019-03-26 17:23:54 +05:30