Commit Graph

943 Commits

Author SHA1 Message Date
Simon Allegraud
ce17416e16 DATAREST-1181 - Prevent NullPointerException during JsonLateObjectEvaluator.evaluate(…).
Original pull request: #287.
2018-01-18 13:49:46 +01:00
Oliver Gierke
9b0f0c7101 DATAREST-1174 - Enable constructor properties to make sure WrappedPropertiesUnitTests continue to work.
Removed Lombok constructor and accessor generation to avoid having to deal with the changed default in Lombok 1.16.20 not generating @ConstructorProperties by default anymore.
2018-01-10 12:53:57 +01:00
Mark Paluch
623075adeb DATAREST-1157 - Updated changelog. 2017-11-27 16:43:45 +01:00
Mark Paluch
ac34940a58 DATAREST-1150 - After release cleanups. 2017-11-27 15:56:40 +01:00
Mark Paluch
c07fc27f63 DATAREST-1150 - Prepare next development iteration. 2017-11-27 15:56:38 +01:00
Mark Paluch
6f83d86552 DATAREST-1150 - Release version 2.6.9 (Ingalls SR9). 2017-11-27 15:17:06 +01:00
Mark Paluch
970c0dcad5 DATAREST-1150 - Prepare 2.6.9 (Ingalls SR9). 2017-11-27 15:16:09 +01:00
Mark Paluch
1ad169f57b DATAREST-1150 - Updated changelog. 2017-11-27 15:16:06 +01:00
Oliver Gierke
5039bdadc8 DATAREST-1159 - Fixed link to contribution guidelines in Spring Data Build. 2017-11-17 15:21:36 +01:00
Oliver Gierke
6278da28ad DATAREST-1140 - Updated changelog. 2017-10-27 16:36:55 +02:00
Oliver Gierke
1bc7982d52 DATAREST-1152 - Overhaul of patch expression handling.
Significantly refactored the way that patch path expressions are handled and evaluated. The new design is centered around SpelPath that is aware of the original path as well as the derived SpEL expression. That SpelPath then requires clients to bind it to a type so that the original path can be validated (and rejected if invalid) and provide API to read, set, copy and move values backed by the original path. Both SpelPath and TypedSpelPath instances are cached to avoid repeated creation.

PatchOperation implementations now provide more fluent factory methods, in some cases via intermediate builders. Removed a lot of obsolete code that created JsonNodes from a list of PatchOperations as we don't actually use that functionality anywhere. Removed obsolete generics where possible.
2017-10-25 17:35:29 +02:00
Simmo Saan
28bb6abfea DATAREST-1148 - Fix eager toString() call on domain object in ResourceStatus.
Originl pull request: #282.
2017-10-12 23:12:50 +02:00
Oliver Gierke
80e2fc3a3a DATAREST-1128 - After release cleanups. 2017-10-11 19:00:16 +02:00
Oliver Gierke
9cf10c6a7f DATAREST-1128 - Prepare next development iteration. 2017-10-11 19:00:12 +02:00
Oliver Gierke
0eab5ea1a2 DATAREST-1128 - Release version 2.6.8 (Ingalls SR8). 2017-10-11 16:42:43 +02:00
Oliver Gierke
7f69c69809 DATAREST-1128 - Prepare 2.6.8 (Ingalls SR8). 2017-10-11 16:41:09 +02:00
Oliver Gierke
c1a2489c91 DATAREST-1128 - Updated changelog. 2017-10-11 16:41:03 +02:00
Oliver Gierke
d47e87aee0 DATAREST-1006 - Polishing.
Fixed assertions to use Hamcrest instead of AssertJ.
2017-10-10 09:28:08 +02:00
Oliver Gierke
dde3d18f41 DATAREST-1006 - Polishing.
Added unit test on MappingProperties directly.

Original pull request: #258.
2017-10-04 11:35:11 +02:00
Mathias Düsterhöft
7704a435d9 DATAREST-1006 - MappedProperties now skips all ignored properties.
Original pull request: #258.
2017-10-04 11:35:08 +02:00
Mark Paluch
377ea346c8 DATAREST-1129 - Updated changelog. 2017-10-02 11:41:36 +02:00
Oliver Gierke
d330455e53 DATAREST-1137 - All patch operations now verify path expressions.
We now make sure that all patch operations now get the path they're supposed to be applied to verified before execution.
2017-09-25 19:11:22 +02:00
Oliver Gierke
1b959bd8f4 DATAREST-1132 - Fixed @BasePathAwareController annotation lookup from CGLib proxies.
We now inspect the user class of the given bean type in BasePathAwareHandlerMapping.isHandler(…). We can't use AnnotationUtils as @RepositoryRestController is also annotated with @BasePathAwareController but must not be handled by this mapping.
2017-09-25 12:02:55 +02:00
Oliver Gierke
cde2155a88 DATAREST-1112 - Updated changelog. 2017-09-11 17:42:49 +02:00
Mark Paluch
ac4de647a4 DATAREST-1114 - After release cleanups. 2017-09-11 12:23:36 +02:00
Mark Paluch
bcd5ea30ca DATAREST-1114 - Prepare next development iteration. 2017-09-11 12:23:35 +02:00
Mark Paluch
d1db334163 DATAREST-1114 - Release version 2.6.7 (Ingalls SR7). 2017-09-11 11:45:05 +02:00
Mark Paluch
66a967c63a DATAREST-1114 - Prepare 2.6.7 (Ingalls SR7). 2017-09-11 11:44:20 +02:00
Mark Paluch
e88832b3c8 DATAREST-1114 - Updated changelog. 2017-09-11 11:44:18 +02:00
Oliver Gierke
824e51a130 DATAREST-1127 - Patch operations now always verify paths before operation application.
Previously, the SpEL expression created from JSON Patch path expressions were executed without double checking whether these paths actually exist on the target object in the first place. This check is now in place.
2017-09-08 12:00:30 +02:00
Oliver Gierke
c575757093 DATAREST-1121 - Skip last modified detection for query methods that project.
For an execution of a projecting query method we now skip the last modified detection as it actually doesn't make sense if applied to non-aggregates.
2017-08-24 21:50:31 +02:00
Oliver Gierke
018b252165 DATAREST-1110 - After release cleanups. 2017-07-27 00:21:40 +02:00
Oliver Gierke
2fcfba09cc DATAREST-1110 - Prepare next development iteration. 2017-07-27 00:15:08 +02:00
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