Commit Graph

930 Commits

Author SHA1 Message Date
Oliver Gierke
d56a1068ea 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 11:54:05 +02:00
Oliver Gierke
c0a3fb5678 DATAREST-1136 - DelegatingHandlerMapping now exposes its delegates. 2017-09-25 09:34:33 +02:00
Mark Paluch
a315e054ba DATAREST-1135 - Added explicit automatic module name for JDK 9. 2017-09-21 14:11:02 +02:00
Oliver Gierke
d8ea870349 DATAREST-1112 - After release cleanups. 2017-09-11 17:40:22 +02:00
Oliver Gierke
8e16a9553f DATAREST-1112 - Prepare next development iteration. 2017-09-11 17:40:19 +02:00
Oliver Gierke
c3dc9ebfaf DATAREST-1112 - Release version 3.0 RC3 (Kay). 2017-09-11 17:24:45 +02:00
Oliver Gierke
aff2608077 DATAREST-1112 - Prepare 3.0 RC3 (Kay). 2017-09-11 17:23:52 +02:00
Oliver Gierke
618667582b DATAREST-1112 - Updated changelog. 2017-09-11 17:23:47 +02:00
Mark Paluch
9a48da9e16 DATAREST-1114 - Updated changelog. 2017-09-11 12:44:06 +02:00
Oliver Gierke
8f269e28fe DATAREST-1127 - Patch operations now always verify paths before operation application.
Previously the SpEL expresssion 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 is now in place.
2017-09-08 12:20:44 +02:00
Oliver Gierke
f49b54418d DATAREST-1126 - Upgrade to latest HAL browser (ad9b865). 2017-09-07 14:13:52 +02:00
Oliver Gierke
530e7c773e 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 22:19:18 +02:00
Oliver Gierke
5e5c2fd89b DATAREST-1110 - Updated changelog. 2017-07-27 00:49:00 +02:00
Oliver Gierke
44f10edc46 DATAREST-1111 - After release cleanups. 2017-07-25 16:10:39 +02:00
Oliver Gierke
2a8eb44cc9 DATAREST-1111 - Prepare next development iteration. 2017-07-25 16:10:35 +02:00
Oliver Gierke
ccc5b228cd DATAREST-1111 - Release version 3.0 RC2 (Kay). 2017-07-25 15:34:24 +02:00
Oliver Gierke
0d52e0ffab DATAREST-1111 - Prepare 3.0 RC2 (Kay). 2017-07-25 15:33:33 +02:00
Oliver Gierke
157105182d DATAREST-1111 - Updated changelog. 2017-07-25 15:33:28 +02:00
Oliver Gierke
a80f935f40 DATAREST-1093 - After release cleanups. 2017-07-25 10:00:09 +02:00
Oliver Gierke
59a9d4d7df DATAREST-1093 - Prepare next development iteration. 2017-07-25 10:00:06 +02:00
Oliver Gierke
e54f908218 DATAREST-1093 - Release version 3.0 RC1 (Kay). 2017-07-25 09:48:49 +02:00
Oliver Gierke
1215fef4cc DATAREST-1093 - Prepare 3.0 RC1 (Kay). 2017-07-25 09:48:02 +02:00
Oliver Gierke
3d799f21ba DATAREST-1093 - Updated changelog. 2017-07-25 09:47:57 +02:00
Oliver Gierke
e73b123957 DATAREST-1090 - Updated changelog. 2017-07-24 22:20:44 +02:00
Oliver Gierke
5836baaabf DATAREST-1105 - Polishing.
Simplified code a bit. Formatting. Adapted integration tests to make sure URI templates are always expanded.

Original pull request: #273.
2017-07-19 16:05:27 +02:00
Haroun Pacquee
0d7d84571f DATAREST-1105 - Association links now advertise projections.
Association links now explicitly indicate projections are available in case there are projection types registered for the association target type.

Original pull request: #273.
2017-07-13 17:24:43 +02:00
Oliver Gierke
c922ba38d2 DATAREST-1106 - Moved off deprecated methods to setup a ProjectionFactory in configuration.
Switched from ProxyProjectionFactory.setResourceLoader(…) to ….setBeanClassLoader(…). Some generics polishing and removal of obsolete warnings supression.
2017-07-11 11:00:33 +02:00
Oliver Gierke
182d32b715 DATAREST-1075 - AnnotatedEventHandlerInvoker skips methods introduced by proxy.
Removed now unused Methods deprecated in Ingalls / Hopper.
2017-07-06 13:28:46 +02:00
Oliver Gierke
2ad963074c DATAREST-1104 - Adapt to API changes in mapping subsystem. 2017-07-04 15:27:54 +02:00
Oliver Gierke
069869a69b DATAREST-540 - Renamed RepositoryRestConfiguration bean config to repositoryRestConfiguration. 2017-06-20 13:03:17 +02:00
Oliver Gierke
585072a1b7 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:23 +02:00
Mark Paluch
0640ff3c85 DATAREST-1071 - After release cleanups. 2017-06-14 17:14:08 +02:00
Mark Paluch
b62c950b4a DATAREST-1071 - Prepare next development iteration. 2017-06-14 17:14:07 +02:00
Mark Paluch
1c5d3b4c76 DATAREST-1071 - Release version 3.0 M4 (Kay). 2017-06-14 17:03:48 +02:00
Mark Paluch
ff3998290e DATAREST-1071 - Prepare 3.0 M4 (Kay). 2017-06-14 17:03:00 +02:00
Mark Paluch
a6b3bdf438 DATAREST-1071 - Updated changelog. 2017-06-14 17:02:59 +02:00
Oliver Gierke
51812ccc97 DATAREST-1092 - Removed Spring 4.3 style handling of non-nullability in PatchOperations. 2017-06-14 15:32:40 +02:00
Oliver Gierke
37b0dc2dff 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:26:37 +02:00
Oliver Gierke
bc5a265ff9 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 10:04:41 +02:00
Mark Paluch
d1b59f8cf6 DATAREST-1059 - Updated changelog. 2017-06-08 11:56:20 +02:00
Mark Paluch
978b287a6f DATAREST-1058 - Updated changelog. 2017-06-07 12:23:36 +02:00
Oliver Gierke
87790ccb18 DATAREST-1079 - Upgraded to EvoInflector 1.2.2. 2017-05-18 14:52:20 +02:00
Oliver Gierke
e4f34aaa67 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:49:44 +02:00
gregory
2c927af0b5 DATAREST-1077 - HAL Browser: Pass request headers in ALL requests
Pass headers from HAL.client on requests so custom request headers aren't lost.
E.g. custom Authorization: bearer <token> headers
2017-05-16 22:24:41 -05:00
Oliver Gierke
9a9512767e 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:54:24 +02:00
Mark Paluch
b0c19ce188 DATAREST-1052 - After release cleanups. 2017-05-09 11:34:42 +02:00
Mark Paluch
793c09270d DATAREST-1052 - Prepare next development iteration. 2017-05-09 11:34:41 +02:00
Mark Paluch
edaf6197e2 DATAREST-1052 - Release version 3.0 M3 (Kay). 2017-05-09 11:23:00 +02:00
Mark Paluch
5d41cb01ec DATAREST-1052 - Prepare 3.0 M3 (Kay). 2017-05-09 11:22:12 +02:00
Mark Paluch
0cf0c49843 DATAREST-1052 - Updated changelog. 2017-05-09 11:22:09 +02:00