Commit Graph

1658 Commits

Author SHA1 Message Date
Mark Paluch
1ea9c99b57 Update readme.
See #2304
2023-08-31 13:39:25 +02:00
Oliver Drotbohm
1fadf164ae Reinstate new object addition for collections in patch operations.
The removal of manual collection value appendance for primitives in the context of GH-2261 lead to complex object to be appended onto a collection not being deserialized at all. This deserialization is now reinstantiated with the value to be added looked up by reading the parent node into the collections element type using a JSON Pointer expression of /$propertyName/$index. This is done to make sure that @JsonDeserialize annotations on the property kick in for the deserialization of the individual elements.

We now also shortcut the entire merge algorithm for collections that are empty, contain primitives or enums.

Fixes GH-2287.
2023-08-30 21:34:46 +02:00
Julia Lee
549121e03e After release cleanups.
See #2290
2023-08-18 08:59:40 -04:00
Julia Lee
388475d40f Prepare next development iteration.
See #2290
2023-08-18 08:59:36 -04:00
Julia Lee
b4ae1635e1 Release version 4.2 M2 (2023.1.0).
See #2290
2023-08-18 08:50:32 -04:00
Julia Lee
6f0c292671 Prepare 4.2 M2 (2023.1.0).
See #2290
2023-08-18 08:49:39 -04:00
Julia Lee
18b65ee4bc Update CI properties.
See #2290
2023-08-14 12:15:21 -04:00
Julia Lee
f3045132a5 Upgrade to Maven Wrapper 3.9.4.
See #2299
2023-08-14 08:53:25 -04:00
Mark Paluch
d71be735d2 After release cleanups.
See #2260
2023-07-14 14:57:13 +02:00
Mark Paluch
69f6edbabd Prepare next development iteration.
See #2260
2023-07-14 14:57:11 +02:00
Mark Paluch
108ab2af8f Release version 4.2 M1 (2023.1.0).
See #2260
2023-07-14 14:53:19 +02:00
Mark Paluch
d9e3cd16a7 Prepare 4.2 M1 (2023.1.0).
See #2260
2023-07-14 14:52:13 +02:00
Mark Paluch
aa7262b038 Delombok code.
Closes #2286
2023-07-07 14:51:03 +02:00
wintersolutions
18030f9171 Fix typo in ref docs anchor.
Closes #2281.
2023-07-04 14:43:40 +02:00
Mark Paluch
d72895dc9b Update CI properties.
See #2260
2023-07-03 09:50:18 +02:00
Mark Paluch
dde0050164 Upgrade to Maven Wrapper 3.9.3.
See #2285
2023-07-03 09:49:50 +02:00
Oliver Drotbohm
5b21c00f21 Move off deprecation in Spring Security configuration for tests.
Related ticket #2271.
2023-06-13 13:35:21 +02:00
Oliver Drotbohm
bfe1bd90d0 Upgrade to Spring Security 6.1 for testing.
Also, to ensure Spring Framework 6.1 compatibility.

Fixes #2271.
2023-06-13 11:49:30 +02:00
Mark Paluch
529a5884c6 Upgrade to Maven Wrapper 3.9.2.
See #2270
2023-06-13 08:55:10 +02:00
Oliver Drotbohm
36300cfa1f Fix regression in PUT handling for empty nested documents.
The fix for #2174 introduced a bug for our PUT handling of nested documents in case the target object's field value is null as it would only apply the nested value if all Optionals were present. This is, of course not the case.

Fixes #2264.
2023-06-12 11:38:28 +02:00
Mark Paluch
52f3f55b7c Polishing.
Update Java requirement.

See #2266
2023-06-06 10:30:29 +02:00
Mark Paluch
ef4fa3e342 Use snapshot and milestone repositories instead of libs-snapshot and libs-milestone.
Closes #2266
2023-06-06 10:29:56 +02:00
Oliver Drotbohm
d6d8c50592 Avoid manually handling additional primitive elements in collection merging for PATCHes.
Fixes #2261.
2023-05-23 16:22:24 +02:00
Christoph Strobl
e9c43f1373 After release cleanups.
See #2255
2023-05-12 14:18:54 +02:00
Christoph Strobl
73738bb3c0 Prepare next development iteration.
See #2255
2023-05-12 14:18:52 +02:00
Christoph Strobl
e1877c3f9f Release version 4.1 GA (2023.0.0).
See #2255
2023-05-12 14:14:39 +02:00
Christoph Strobl
26ae406bf9 Prepare 4.1 GA (2023.0.0).
See #2255
2023-05-12 14:14:07 +02:00
Oliver Drotbohm
9020e1d10d Upgrade optional Jackson/JPA integration to Hibernate 6.
Fixes #2234.
2023-05-03 23:01:57 +02:00
Will Fleury
816ca84e70 Populate custom ExceptionHandlerExceptionResolver with ApplicationContext.
Fixes #2245.
Original pull request #2246.
2023-05-03 17:05:52 +02:00
Blue Ye
ae42018aab Remove duplicate sentence from documentation.
Closes #2251
2023-04-25 11:31:54 +02:00
Greg L. Turnquist
fa6ee06cb5 After release cleanups.
See #2243
2023-04-14 12:00:03 -05:00
Greg L. Turnquist
3a7c81df17 Prepare next development iteration.
See #2243
2023-04-14 11:59:58 -05:00
Greg L. Turnquist
2039a15e59 Release version 4.1 RC1 (2023.0.0).
See #2243
2023-04-14 11:54:00 -05:00
Greg L. Turnquist
d1684bc16a Prepare 4.1 RC1 (2023.0.0).
See #2243
2023-04-14 11:53:23 -05:00
Mark Paluch
88b64141b6 Upgrade to Maven Wrapper 3.9.1.
See #2248
2023-04-06 16:16:35 +02:00
Greg L. Turnquist
48aa76ee51 Test against Java 20 on CI.
See #2244.
2023-03-30 10:37:16 -05:00
Greg L. Turnquist
0225ec1b45 Update CI properties.
See #2243
2023-03-28 13:58:20 -05:00
Christoph Strobl
5b016f2908 After release cleanups.
See #2229
2023-03-20 15:05:35 +01:00
Christoph Strobl
e5bc3be69a Prepare next development iteration.
See #2229
2023-03-20 15:05:34 +01:00
Christoph Strobl
00884c09c7 Release version 4.1 M3 (2023.0.0).
See #2229
2023-03-20 15:01:48 +01:00
Christoph Strobl
80ee34e1ba Prepare 4.1 M3 (2023.0.0).
See #2229
2023-03-20 15:01:20 +01:00
Mark Paluch
b084f67189 Polishing.
Fix invalid Javadoc references.

See #2239
2023-03-20 08:21:12 +01:00
Oliver Drotbohm
e4bca534bf Support to receive aggregate references as request parameters.
We now support using AggregateReference as type to bind request parameters taking URIs pointing to related aggregates. The default resolution will try to resolve the entire URI via UriToEntityConverter but one can also provide a function that can extract any part of the URI to be then resolved into either an identifier, aggregate instance or jMolecules Association against the ConversionService.

Fixes #2239.
2023-03-19 23:56:39 +01:00
Oliver Drotbohm
6d0034f15f Support for query methods returning a Slice.
Built on the the just introduced RepresentationModelAssembler implementations based on Slice in Spring HATEOAS and Spring Data Commons we now support returning a SlicedModel from the controller backing search resources ultimately triggering repository query methods.

The introduction triggered the refactoring to introduce RepresentationModelAssemblers (RMA) to remove the need for controllers inheriting from AbstractRepositoryController to access RepresentationModel assembly functionality. RMA acts as a facade for both Paged-/SlicedResourceAssembler as well as PersistentEntityResourceAssembler.

Fixes #2235.
2023-03-02 17:20:09 +01:00
Oliver Drotbohm
7c9a5275a3 Polish Javadoc. 2023-02-21 19:01:55 +01:00
Oliver Drotbohm
fb1924286a Use FormattingConversionService in JSON Patch binding.
We no pipe the Spring MVC ConversionService into the JSON Patch path binding. That usually is a FormattingConversionService at runtime and also supports the conversion of dates.

The ConversionServices is configured into the BindContext(Factory) we use for binding. The context then exposes the EvaluationContext set up with it.

Fixes #2233.
2023-02-21 18:43:19 +01:00
Oliver Drotbohm
2a88cc7ea6 Reference document updates for new return body on delete setting. 2023-02-21 17:48:15 +01:00
Oliver Drotbohm
d02d1bb0c1 Support for returning response bodies on deletion of item resources.
RepositoryRestConfiguration now allows to configure to return a response body for the deletion of item resources. The controller implementation follows the same patter we have already established for creation and updates: unless explicitly enabled or disabled we now consider the presence of an accept header as indicator of whether a response body should be rendered.

This could be a "breaking" change for clients having explicitly expected 204 until now even for requests with an Accept header. If that's an issue, those should either explicitly disable the setting, do not submit an Accept header or loosen their expectations to expect either 200 or 2xx as indicator of success in general.

Fixes #2225.
2023-02-21 17:25:28 +01:00
Oliver Drotbohm
7c0fc837a3 Register MVC validator with Spring Data REST HandlerAdapter.
Fixes: #967.
Original pull request: 2108.
2023-02-21 15:46:08 +01:00
zhengchalei
890111f06f Fix doc link end label in ResourceStatus.
Fixes #2139
2023-02-21 14:19:46 +01:00