Commit Graph

607 Commits

Author SHA1 Message Date
Mark Paluch
d6b3e306d5 DATAREST-1269 - Release version 3.0.10 (Kay SR10). 2018-09-10 12:52:18 +02:00
Oliver Gierke
ad2c635791 DATAREST-1274 - JsonPatch paths now properly verify multi-digit indexes. 2018-08-08 08:44:50 +02:00
Oliver Gierke
2c8fb45881 DATAREST-1248 - SortTranslator now considers read-only properties sortable.
MappedProperties now exposes a factory method that uses the Jackson introspector for serialization (instead of deserialization) which now also includes read-only properties. Previously, read-only ones were not considered as they are excluded from the metadata if it is looked up for deserialization.
2018-08-07 15:44:33 +02:00
Oliver Gierke
994eed6e27 DATAREST-1273 - Properly support adding to collections via indexes in JsonPatch expressions.
We now support adding a to a collection via JsonPatch expressions by using the collection's size as target index. Contrary to paths pointing to existing collection elements we cannot determine the type of the object to be created. Thus, we fall back to the common element type of all existing collection elements. We also reject indexes pointing to elements with an index greater than the current collection's size.
2018-08-07 10:50:15 +02:00
Mark Paluch
d5e09b7243 DATAREST-1254 - Prepare next development iteration. 2018-07-26 15:23:23 +02:00
Mark Paluch
9cb5531ac6 DATAREST-1254 - Release version 3.0.9 (Kay SR9). 2018-07-26 14:44:01 +02:00
Oliver Gierke
4532a79f41 DATAREST-1259 - Removed obsolete bean definition for HttpRequestHandlerAdapter. 2018-07-10 12:33:36 +02:00
Florian Lüdiger
c3b1da730f DATAREST-810 - Fix minor typo in Javadoc.
Original pull request: #295.

$ Conflicts:
$	spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryEntityController.java
2018-07-04 16:32:58 +02:00
Oliver Gierke
954416a2b9 DATAREST-1256 - Upgraded to Spring HATEOAS 0.25.0.BUILD-SNAPSHOT.
Adapted RepositoryRestMvcConfiguration to now create a shared fallback ObjectMapper and avoid to register it as Spring Bean. Adapted test cases that previously were relying on such a bean being present.

Adapted test cases to verify on the correct ALPS document structure (see spring-projects/spring-hateoas#665).
2018-07-02 15:19:00 +02:00
Mark Paluch
4ca86fc746 DATAREST-1244 - Prepare next development iteration. 2018-06-13 21:24:34 +02:00
Mark Paluch
3cf81df693 DATAREST-1244 - Release version 3.0.8 (Kay SR8). 2018-06-13 15:13:01 +02:00
Oliver Gierke
ac2d50dc90 DATAREST-1251 - PersistentEntityProjector now uses lambdas instead of anonymous inner classes. 2018-06-13 14:43:59 +02:00
Oliver Gierke
70eafa5fd1 DATAREST-1198 - Polishing.
Fixed @since tag in new converter implementation as we're going to backport the fix to Kay. Simplified converter setup in RepositoryRestMvcConfiguration to expose less API until someone actually requests access.

Original pull request: #290.
2018-06-13 10:20:37 +02:00
Mark Paluch
dc22044445 DATAREST-1198 - Add Converter to convert String to javax.naming.ldap.LdapName.
We now provide and configure a converter for String to LdapName conversion so Spring Data LDAP can be used with Spring Data REST without further configuration.

Original pull request: #290.
2018-06-13 10:20:37 +02:00
Oliver Gierke
8966907ea0 DATAREST-1250 - Polishing.
Added unit test to verify new behavior and prevent regressions. Fixed author capitalization.
2018-06-05 10:13:21 +02:00
tigger
d0283bf177 DATAREST-296 - ResourceMetadataHandlerMethodArgumentResolver now properly implements ….supports(…).
ResourceMetadataHandlerMethodArgumentResolver.supports(…) now properly checks for ResourceMetadata. It previously checked for RepositoryInformation which is probably a left-over from a previous state of the codebase and has been unnoticed so far as the class is only used as a direct dependency of other HandlerMethodArgumentResolvers.
2018-06-05 10:13:21 +02:00
Oliver Gierke
9db9bc3425 DATAREST-1249 - Polishing. 2018-05-30 11:04:47 +02:00
Oliver Gierke
778fdf48f0 DATAREST-1249 - DomainObjectMerger now properly binds to uninitialized target collections. 2018-05-30 10:25:02 +02:00
Mark Paluch
e6a0652482 DATAREST-1227 - Prepare next development iteration. 2018-05-08 15:04:27 +02:00
Mark Paluch
07b056d8fa DATAREST-1227 - Release version 3.0.7 (Kay SR7). 2018-05-08 14:15:28 +02:00
Mark Paluch
66f2a31ca9 DATAREST-1206 - Prepare next development iteration. 2018-04-04 16:42:31 +02:00
Mark Paluch
164bc5c697 DATAREST-1206 - Release version 3.0.6 (Kay SR6). 2018-04-04 15:53:22 +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
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
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
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
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
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
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
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
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
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
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
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
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
Mark Paluch
1e8a7c8ebc DATAREST-1129 - Prepare next development iteration. 2017-10-02 11:38:04 +02:00
Mark Paluch
ac2cbfcbc5 DATAREST-1129 - Release version 3.0 GA (Kay). 2017-10-02 11:10:23 +02:00
Oliver Gierke
973f932a39 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-27 09:47:18 +02:00
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