Commit Graph

987 Commits

Author SHA1 Message Date
Oliver Gierke
aeb67a4f85 DATAREST-1225 - Upgrade to Spring Security 5.0.3 for integration tests. 2018-04-04 15:44:27 +02:00
Mark Paluch
9ee6a2b587 DATAREST-1185 - Updated changelog. 2018-04-04 15:16:23 +02:00
Oliver Gierke
cba8b3bcf9 DATAREST-1222 - Switched to SimpleEvaluationContext for SpEL-based PATCH handling. 2018-03-28 09:57:05 +02:00
Oliver Gierke
dfd7f11edf DATAREST-1219 - Removed explicit declaration of Jackson library versions. 2018-03-27 19:54:23 +02:00
Oliver Gierke
c30f7b8cc0 DATAREST-1219 - Removed explicit declaration of Jackson library versions. 2018-03-27 19:45:35 +02:00
Oliver Gierke
566cb3fa19 DATAREST-1215 - Polishing. 2018-03-14 10:06:18 +01:00
Oliver Gierke
1b69df0f80 DATAREST-1215 - Added project.root configuration to make JavaDoc generation work again.
Related ticket: https://github.com/spring-projects/spring-data-build/issues/527.
2018-03-14 10:06:15 +01:00
Mark Paluch
8ef3f0e334 DATAREST-1200 - After release cleanups. 2018-02-28 10:43:35 +01:00
Mark Paluch
5f1fb948ce DATAREST-1200 - Prepare next development iteration. 2018-02-28 10:43:34 +01:00
Mark Paluch
9c57b4c8a1 DATAREST-1200 - Release version 3.0.5 (Kay SR5). 2018-02-28 10:14:58 +01:00
Mark Paluch
baaf993c2d DATAREST-1200 - Prepare 3.0.5 (Kay SR5). 2018-02-28 10:14:06 +01:00
Mark Paluch
3d71d5eae7 DATAREST-1200 - Updated changelog. 2018-02-28 10:14:03 +01:00
Mark Paluch
9d95a7ca91 DATAREST-1187 - After release cleanups. 2018-02-19 20:29:08 +01:00
Mark Paluch
cde73a530b DATAREST-1187 - Prepare next development iteration. 2018-02-19 20:29:07 +01:00
Mark Paluch
d3a23e71d2 DATAREST-1187 - Release version 3.0.4 (Kay SR4). 2018-02-19 19:46:54 +01:00
Mark Paluch
b19ebb2e20 DATAREST-1187 - Prepare 3.0.4 (Kay SR4). 2018-02-19 19:46:05 +01:00
Mark Paluch
04c8651293 DATAREST-1187 - Updated changelog. 2018-02-19 19:46:01 +01:00
Oliver Gierke
3150cd6a83 DATAREST-1193 - DelegatingHandlerMapping is now a MatchableHandlerMapping.
DelegatingHandlerMapping now implements MatchableHandlerMapping by selecting the a delegate based on the already implemented algorithm and then invoking the ….match(…) method in case the selected one is a MatchableHandlerMapping in turn.

Refactored the internals a bit to be able to reuse the selection algorithm from both ….getHandler(…) and ….match(…).
2018-02-19 18:04:00 +01:00
Christoph Strobl
e6aa6614a9 DATAREST-1141 - Updated changelog. 2018-02-06 11:14:01 +01:00
Mark Paluch
6845fcc0df DATAREST-1162 - After release cleanups. 2018-01-24 13:46:10 +01:00
Mark Paluch
86ce26c1f0 DATAREST-1162 - Prepare next development iteration. 2018-01-24 13:46:09 +01:00
Mark Paluch
afeeb048eb DATAREST-1162 - Release version 3.0.3 (Kay SR3). 2018-01-24 13:21:24 +01:00
Mark Paluch
769d6dbcef DATAREST-1162 - Prepare 3.0.3 (Kay SR3). 2018-01-24 13:20:39 +01:00
Mark Paluch
d2791cc7b9 DATAREST-1162 - Updated changelog. 2018-01-24 13:20:37 +01:00
Mark Paluch
75c54207ef DATAREST-1161 - Updated changelog. 2018-01-24 12:22:15 +01:00
Oliver Gierke
c7aaaa00fc DATAREST-1177 - DefaultExposureAwareCrudMethods now caches results. 2018-01-24 11:05:59 +01:00
Mark Paluch
84cf20e1dd DATAREST-1184 - Adapt to CORS changes in Spring Framework 5.0.3. 2018-01-24 10:59:54 +01:00
Oliver Gierke
08ede7ade7 DATAREST-1176 - Repository method exposure can now be controlled via RepositoryRestConfiguration.
The default exposure of repository methods is now controlled via RepositoryRestConfiguration.setExposeRepositoryMethodsByDefault(…). That allows us to remove the additional API from RepositoryDetectionStrategy as the mere detection is an orthogonal topic.

Also added RepositoryRestConfiguration.disableDefaultExposure() to set the RepositoryDetectionStategy to ANNOTATED and disables default method exposure in one go. That can be exposed via a Spring Boot configuration property downstream.
2018-01-24 10:59:54 +01:00
Tobias Weiß
d688e70ade DATAREST-1176 - Add explicitly method annotated detection strategy 2018-01-24 10:59:04 +01:00
Simon Allegraud
b01ea05164 DATAREST-1181 - Prevent NullPointerException during JsonLateObjectEvaluator.evaluate(…).
Original pull request: #287.
2018-01-18 13:49:59 +01:00
Oliver Gierke
3c9a7957b9 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:46 +01:00
Oliver Gierke
e744912386 DATAREST-1163 - ValidationErrors now properly looks up null values.
The field value lookup in ValidationErrors previously threw a NotReadablePropertyException in case a property value was null as we incorrectly piped the null value into an Optional in turn. We now eagerly reject the property if we can't find a PersistentProperty in the metamodel to avoid this.
2017-11-29 10:28:34 +01:00
Mark Paluch
dc4fffebd8 DATAREST-1157 - After release cleanups. 2017-11-27 16:42:55 +01:00
Mark Paluch
aaf815328a DATAREST-1157 - Prepare next development iteration. 2017-11-27 16:42:53 +01:00
Mark Paluch
01c51d8b19 DATAREST-1157 - Release version 3.0.2 (Kay SR2). 2017-11-27 16:12:35 +01:00
Mark Paluch
ce1835c9b2 DATAREST-1157 - Prepare 3.0.2 (Kay SR2). 2017-11-27 16:11:22 +01:00
Mark Paluch
7a8d340e24 DATAREST-1157 - Updated changelog. 2017-11-27 16:11:19 +01:00
Mark Paluch
ee21dcc677 DATAREST-1150 - Updated changelog. 2017-11-27 15:58:48 +01:00
Oliver Gierke
9e7a9d3ae6 DATAREST-1160 - Adapt tests to new CORS defaults in Spring Framework.
Spring Framework 5.0.2 changes the default for the Allow-Credentials header to false. We now adapted our test case to that and also drop the expectation to see the request URL in the Allow-Origin header as that is only returned if Allow-Credentials is true, which it now isn't by default.
2017-11-27 09:58:02 +01:00
Oliver Gierke
f855ac43f8 DATAREST-1159 - Fixed link to contribution guidelines in Spring Data Build. 2017-11-17 15:21:25 +01:00
Oliver Gierke
cd91976c48 DATAREST-1140 - After release cleanups. 2017-10-27 15:50:49 +02:00
Oliver Gierke
3f11c391e6 DATAREST-1140 - Prepare next development iteration. 2017-10-27 15:50:46 +02:00
Oliver Gierke
d31526beb1 DATAREST-1140 - Release version 3.0.1 (Kay SR1). 2017-10-27 15:25:12 +02:00
Oliver Gierke
c1046d6403 DATAREST-1140 - Prepare 3.0.1 (Kay SR1). 2017-10-27 15:24:25 +02:00
Oliver Gierke
d9e054d4ea DATAREST-1140 - Updated changelog. 2017-10-27 15:24:21 +02:00
Oliver Gierke
f7af5be44d 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:01 +02:00
Simmo Saan
e1df3cc95d DATAREST-1148 - Fix eager toString() call on domain object in ResourceStatus.
Originl pull request: #282.
2017-10-12 23:12:43 +02:00
Oliver Gierke
7b9f9d4776 DATAREST-1128 - Updated changelog. 2017-10-11 19:03:32 +02:00
Oliver Gierke
f528b9ef7c DATAREST-1006 - Polishing.
Added unit test on MappingProperties directly.

Original pull request: #258.
2017-10-04 11:37:48 +02:00
Mathias Düsterhöft
916a4fa53a DATAREST-1006 - MappedProperties now skips all ignored properties.
Original pull request: #258.
2017-10-04 11:37:45 +02:00