Commit Graph

910 Commits

Author SHA1 Message Date
Oliver Gierke
ec174db469 DATAREST-1110 - Release version 2.6.6 (Ingalls SR6). 2017-07-26 23:47:20 +02:00
Oliver Gierke
89d026b7e7 DATAREST-1110 - Prepare 2.6.6 (Ingalls SR6). 2017-07-26 23:45:52 +02:00
Oliver Gierke
53f847457e DATAREST-1110 - Updated changelog. 2017-07-26 23:45:46 +02:00
Oliver Gierke
0b723e6138 DATAREST-1111 - Updated changelog. 2017-07-25 16:15:50 +02:00
Oliver Gierke
f06d3b104c DATAREST-1093 - Updated changelog. 2017-07-25 10:04:04 +02:00
Oliver Gierke
ac52fed5f4 DATAREST-1090 - After release cleanups. 2017-07-24 19:25:08 +02:00
Oliver Gierke
b9531c5394 DATAREST-1090 - Prepare next development iteration. 2017-07-24 19:25:06 +02:00
Oliver Gierke
31a2a0094a DATAREST-1090 - Release version 2.6.5 (Ingalls SR5). 2017-07-24 18:44:18 +02:00
Oliver Gierke
72cc9213e2 DATAREST-1090 - Prepare 2.6.5 (Ingalls SR5). 2017-07-24 18:43:24 +02:00
Oliver Gierke
825831b43c DATAREST-1090 - Updated changelog. 2017-07-24 18:43:18 +02:00
Oliver Gierke
7aa2de04ff DATAREST-1075 - AnnotatedEventHandlerInvoker skips methods introduced by proxy. 2017-07-06 13:11:40 +02:00
Oliver Gierke
c3f1c23ff8 DATAREST-1060 - Improve AssociationOmittingSerializerModifier to not break on Jackson 2.9.
According to this upstream ticket [0] we need to override BeanSerializerModifier.changeProperties(…) rather than ….updateBuilder(…). The commit just does that.

[0] https://github.com/FasterXML/jackson-databind/issues/1664

Related ticket: FasterXML/jackson-databind#1664
2017-06-19 17:39:36 +02:00
Mark Paluch
4cd191c661 DATAREST-1071 - Updated changelog. 2017-06-14 17:35:00 +02:00
Oliver Gierke
37c1a0a808 DATAREST-1092 - Improve exception handling in PatchOperation for Spring 5 compatibility.
We now also catch SpelEvaluationException in the attempt to set a null value for an expression as Spring 5 now reports a failed attempt (e.g. if the target type is not nullable) using that type whereas Spring 4.3 threw a NullPointerException.
2017-06-14 11:30:44 +02:00
Oliver Gierke
ac75ec56d2 DATAREST-1031 - Fixed setup of ExceptionHandlerExceptionResolver.
Fixed the setup of our custom ExceptionHandlerExceptionResolver to conclude with a call to afterPropertiesSet() to make sure it's properly initialized.
2017-06-09 09:57:22 +02:00
Mark Paluch
8e1dc9fdc9 DATAREST-1059 - After release cleanups. 2017-06-08 11:26:20 +02:00
Mark Paluch
4e7d733dd3 DATAREST-1059 - Prepare next development iteration. 2017-06-08 11:26:19 +02:00
Mark Paluch
3fe658fe0d DATAREST-1059 - Release version 2.6.4 (Ingalls SR4). 2017-06-08 10:56:52 +02:00
Mark Paluch
f5837901a5 DATAREST-1059 - Prepare 2.6.4 (Ingalls SR4). 2017-06-08 10:56:03 +02:00
Mark Paluch
911e0d4ce2 DATAREST-1059 - Updated changelog. 2017-06-08 10:56:00 +02:00
Mark Paluch
88a37c529c DATAREST-1058 - Updated changelog. 2017-06-07 12:23:37 +02:00
Oliver Gierke
65008f3ce1 DATAREST-1076 - Make sure tests compile on JDK 8. ¯\_(ツ)_/¯ 2017-05-18 15:15:55 +02:00
Oliver Gierke
396b32a62b DATAREST-1079 - Upgraded to EvoInflector 1.2.2. 2017-05-18 14:52:35 +02:00
Oliver Gierke
1f95a3387b DATAREST-1076 - Expose constructor that takes RelProvider of RepositoryResourceMappings.
We now expose the constructor that takes a RelProvider in RepositoryResourceMappings so that clients can tweak the default relation names. Changed the order of constructor parameters of (previously) non-public constructors for consistency.

The RelProvider to be used with the mappings can now be configured via RepositoryRestConfiguration and defaults to the EvoInflector based one.
2017-05-18 14:50:50 +02:00
Oliver Gierke
0813faf0d5 DATAREST-1039 - Fix appending a complex value appended to a collection via JSON Patch.
When a PATCH call using JSON Patch tried to append an item to an empty collection, it previously failed to look up the type to unmarshal the incoming payload to. We now inspect the declared types on the wrapped object's property to determine that type for append operations.

Also, an uninitialized collection is now initialized using Spring's CollectionFactory.
2017-05-12 14:42:38 +02:00
Mark Paluch
bb8be787c9 DATAREST-1052 - Updated changelog. 2017-05-09 11:36:18 +02:00
Oliver Gierke
3b30be15c2 DATAREST-1057 - Updated changelog. 2017-04-19 21:04:22 +02:00
Oliver Gierke
707a147064 DATAREST-1056 - After release cleanups. 2017-04-19 20:01:14 +02:00
Oliver Gierke
2c1d831c62 DATAREST-1056 - Prepare next development iteration. 2017-04-19 20:01:13 +02:00
Oliver Gierke
ea2c13ac45 DATAREST-1056 - Release version 2.6.3 (Ingalls SR3). 2017-04-19 19:32:39 +02:00
Oliver Gierke
eaec427fa9 DATAREST-1056 - Prepare 2.6.3 (Ingalls SR3). 2017-04-19 19:32:01 +02:00
Oliver Gierke
709128f54f DATAREST-1056 - Updated changelog. 2017-04-19 19:31:57 +02:00
Oliver Gierke
0d638a3e7c DATAREST-1017 - Updated changelog. 2017-04-19 13:04:11 +02:00
Oliver Gierke
3d73062d37 DATAREST-1016 - After release cleanups. 2017-04-19 11:48:46 +02:00
Oliver Gierke
1f8857be95 DATAREST-1016 - Prepare next development iteration. 2017-04-19 11:48:43 +02:00
Oliver Gierke
41130ec142 DATAREST-1016 - Release version 2.6.2 (Ingalls SR2). 2017-04-19 10:11:29 +02:00
Oliver Gierke
77a89d346b DATAREST-1016 - Prepare 2.6.2 (Ingalls SR2). 2017-04-19 10:10:48 +02:00
Oliver Gierke
cced2a322e DATAREST-1016 - Updated changelog. 2017-04-19 10:10:43 +02:00
Mark Paluch
ef508ed6dc DATAREST-1019 - Consider base URI when resolving cross-origin configuration on repositories.
We now consider the base URI when resolving CORS configuration from repository interfaces. The base URI is now stripped from the request. Previously the base URI was not stripped from the request and was used to determine an exported resource.
2017-04-18 19:35:06 +02:00
Michael J. Simons
4a75efcad1 DATAREST-1046 - Fix instructions how to manually add a validator.
Original pull request: #264.
2017-04-11 10:22:13 +02:00
Oliver Gierke
2b63e4bcdb DATAREST-1050 - PUT for create now makes sure the resource id is set on the instance to create.
So far, we handed the plain instance deserialized from the request body to the repository to persist it. That caused issues in PUT for create scenarios where the URI contains the identifier to be used for the aggregate to create and identifier generation being used in the backend. In that case the identifier submitted was never considered and subsequent requests would've created new instances, effectively breaking the idempotent nature of PUT.

We now make sure the backend identifier derived from the resource is set on the aggregate instance about to be created, so that backend can either accept that situation (new entity + manually defined identifier) or reject it (in case it insists on identifier generation).
2017-04-11 08:26:47 +02:00
Oliver Gierke
4354d35c9c DATAREST-1030 - Reinstantiate PATCH behaviour for associations.
We now completely opt out of merging values if the property is a linkable association.
2017-04-10 19:08:16 +02:00
Oliver Gierke
ccfe96de48 DATAREST-946 - Updated changelog. 2017-04-10 14:07:11 +02:00
Mark Paluch
aa5e816f08 DATAREST-1020 - Mention correct method in reference docs to configure global CORS mappings.
Point in reference documentation to `addMapping(…)` instead of `addCorsMapping(…)`.
2017-03-08 11:20:20 +01:00
Oliver Gierke
a2d11011da DATAREST-1018 - Prevent NullPointerException in UriToEntityConverter.
In case PersistentEntities exposes a managed type whose raw type currently doesn't have a PersistentEntity registered, the constructor of UriToEntityConverter ran into a NullPointerException.

We now explicitly check for null and skip those types.

Filed DATAREST-1021 for further improvements in the 3.0 time frame.
2017-03-07 14:50:30 +01:00
Oliver Gierke
6367af2f84 DATAREST-1014 - Avoid Java 8 API usage in AnnotatedEventHandlerInvoker.
Dropped the call to Method.getParameterCount() in favor of ….getParameterTypes().length as the former method was introduced in Java 8.
2017-03-03 11:39:30 +01:00
Oliver Gierke
544f785c55 DATAREST-989 - Updated changelog. 2017-03-02 16:57:52 +01:00
Oliver Gierke
7546f8b51e DATAREST-990 - After release cleanups. 2017-03-02 10:21:55 +01:00
Oliver Gierke
f6708109ca DATAREST-990 - Prepare next development iteration. 2017-03-02 10:21:39 +01:00
Oliver Gierke
d75254d1ac DATAREST-990 - Release version 2.6.1 (Ingalls SR1). 2017-03-02 09:41:28 +01:00