706 Commits

Author SHA1 Message Date
Christoph Strobl
a8a45b74da Prepare next development iteration.
See #1943
2021-02-17 10:55:30 +01:00
Christoph Strobl
0cd26da9a8 Release version 3.2.13 (Moore SR13).
See #1943
2021-02-17 10:34:59 +01:00
Oliver Drotbohm
db160c4398 GH-1926 - Avoid wrapping nested entities ultimately to represent a value.
NestedEntitySerializer now skips the wrapping into an EntityModel if the target serializer is a JsonValueSerializer as EntityModel requires the value to ultimately resolve into key value pairs as it's only enriching something that's rendered as JSON document with hypermedia elements.
2021-01-18 16:24:45 +01:00
Mark Paluch
0ed6819cb5 Update copyright year to 2021.
Closes #1952
2021-01-12 11:46:45 +01:00
Mark Paluch
18d76dc1ad DATAREST-1575 - Prepare next development iteration. 2020-12-09 09:53:30 +01:00
Mark Paluch
94fa938434 DATAREST-1575 - Release version 3.2.12 (Moore SR12). 2020-12-09 09:37:38 +01:00
Oliver Drotbohm
da6c67d688 DATAREST-1581 - Fixed CORS defaults to include all HTTP methods exposed by Spring Data REST.
The fix for DATAREST-1535 has changed the default allowed methods for CORS requests to a smaller set than we originally returned. This commit reinstantiates the default to be set to all HTTP methods, Spring Data repositories support by default.

Related tickets: DATAREST-1535.
2020-12-01 22:37:45 +01:00
Mark Paluch
24fb1446d1 DATAREST-1560 - Prepare next development iteration. 2020-10-28 12:06:19 +01:00
Mark Paluch
2d19421d3e DATAREST-1560 - Release version 3.2.11 (Moore SR11). 2020-10-28 11:44:38 +01:00
Oliver Drotbohm
168a519a6f DATAREST-1213 - Polishing.
Simplified tests and domain code. Reinstantiated accidentally removed method in PersistentEntityResource.

Original pull request: #355.
2020-10-26 22:35:08 +01:00
Dario Seidl
26410a09e1 DATAREST-1213 - ETag creation now uses proxy target for projections.
Original pull request: #355.
2020-10-26 22:30:19 +01:00
Mark Paluch
9c9bafc31f DATAREST-1547 - Prepare next development iteration. 2020-09-16 11:19:24 +02:00
Mark Paluch
4e39928a1a DATAREST-1547 - Release version 3.2.10 (Moore SR10). 2020-09-16 10:53:23 +02:00
Mark Paluch
ed17e0a41b DATAREST-1529 - Prepare next development iteration. 2020-07-22 10:07:17 +02:00
Mark Paluch
526853063f DATAREST-1529 - Release version 3.2.9 (Moore SR9). 2020-07-22 09:55:56 +02:00
Oliver Drotbohm
0c0d1ba13e DATAREST-1535 - Adapt to changes in Spring Framework 5.3.
We now implement getPatternParser() in DelegatingHandlerMapping introduced in Spring 5.3. Adapt to changes in CORS handling.
2020-06-25 00:07:49 +02:00
Mark Paluch
cfcf54d152 DATAREST-1515 - Prepare next development iteration. 2020-06-10 12:29:14 +02:00
Mark Paluch
63821a1036 DATAREST-1515 - Release version 3.2.8 (Moore SR8). 2020-06-10 12:11:27 +02:00
Mark Paluch
bc4d9db6ca DATAREST-1498 - Prepare next development iteration. 2020-04-28 14:45:29 +02:00
Mark Paluch
79638426b1 DATAREST-1498 - Release version 3.2.7 (Moore SR7). 2020-04-28 14:35:55 +02:00
Mark Paluch
45fb02b66f DATAREST-1509 - Polishing.
Simplify assertion style. Convert space indents to tabs.

Original pull request: #374.
2020-04-28 11:03:00 +02:00
Greg Turnquist
7799033f21 DATAREST-1509 - Test against all ISO-8601 TZ formats.
Verify that Jackson properly serializes to ISO-8601 format, which includes three potential timezone endings.

Related: spring-projects/spring-data-build#1075
Original pull request: #374.
2020-04-28 11:02:51 +02:00
Oliver Drotbohm
a161c3b0dc DATAREST-1513 - Avoid superflous instantiations of EmbeddedResourcesAssembler. 2020-04-28 00:31:41 +02:00
Oliver Drotbohm
6b41a86814 DATAREST-1479 - Patching collections now also works for nested collections.
We now properly use the PropertyPath's leaf property to check whether we need to deal with a collection in JSON Patch pointers.
2020-04-27 23:52:04 +02:00
Mark Paluch
ef2aec9bd1 DATAREST-1486 - Prepare next development iteration. 2020-03-25 10:58:26 +01:00
Mark Paluch
1dc89f83fc DATAREST-1486 - Release version 3.2.6 (Moore SR6). 2020-03-25 10:46:02 +01:00
Mark Paluch
59e619869d DATAREST-1474 - Prepare next development iteration. 2020-02-26 11:54:08 +01:00
Mark Paluch
53d056e893 DATAREST-1474 - Release version 3.2.5 (Moore SR5). 2020-02-26 11:38:17 +01:00
Thomas Mrozinski
405ef13d17 DATAREST-1068 - Resize array during merge.
When merging new data into a PersistentEntity, JsonNodes of array types were deserialized into immutable Lists, but the list is later mutated if the source and target arrays are of different sizes. This commit ensures that an array is deserialized into a mutable list.

Original pull request: #371.
2020-02-26 10:04:57 +01:00
Mark Paluch
9f35c1a044 DATAREST-1462 - Prepare next development iteration. 2020-01-15 12:48:22 +01:00
Mark Paluch
2631fa5379 DATAREST-1462 - Release version 3.2.4 (Moore SR4). 2020-01-15 12:37:44 +01:00
Mark Paluch
b4e0b81b68 DATAREST-1467 - Update copyright years to 2020. 2020-01-07 09:03:03 +01:00
Jens Schauder
6601b3d01b DATAREST-1456 - Prepare next development iteration. 2019-12-04 14:29:15 +01:00
Jens Schauder
c20100e00d DATAREST-1456 - Release version 3.2.3 (Moore SR3). 2019-12-04 14:12:24 +01:00
Oliver Drotbohm
f5ce28fee1 DATAREST-1458 - Fixed rendering of compact view to association resources.
The usage of text/uri-list as media type was entirely broken and not even advertised in the reference docs anymore. It's now again supported for both to-one and to-many associations via Collections. Maps are rejected as they cannot be rendered as list of URIs correctly. Updated reference documentation accordingly.

Added a custom MapModel implementation of RepresentationModel as apparently using Maps with EntityModel does not unwrap the content properly due to [0].

[0] https://github.com/FasterXML/jackson-databind/issues/171
2019-11-29 17:20:59 +01:00
Mark Paluch
c8542ca737 DATAREST-1451 - Prepare next development iteration. 2019-11-18 12:42:04 +01:00
Mark Paluch
062a26d7bc DATAREST-1451 - Release version 3.2.2 (Moore SR2). 2019-11-18 12:32:12 +01:00
Christoph Strobl
0c64d5c37a DATAREST-1431 - Prepare next development iteration. 2019-11-04 15:34:26 +01:00
Christoph Strobl
d1bb7c38be DATAREST-1431 - Release version 3.2.1 (Moore SR1). 2019-11-04 14:55:02 +01:00
Oliver Drotbohm
c9644e7d77 DATAREST-1440 - Revisited removal of fields in incoming payloads.
We now only remove fields from the payload in case there's no @JsonAnySetter on the target entity.
2019-11-04 09:10:13 +01:00
Oliver Drotbohm
5b6d2f2bf9 DATAREST-1446 - Polishing.
Test cases.

Original pull request: #366.
2019-10-28 15:02:53 +01:00
Javier Grande Pérez
bfed30d1a1 DATAREST-1446 - DefaultExcerptProjector now declines presence of projection if metadata returns Optional.empty().
If no excerpt projection is exposed by the underlying ResourceMetadata, DefaultExcerptProjector now also properly declines its existence in ….hasExcerptProjection(…). Previously, it always indicated a presence as it improperly used a null check rather than calling Optional.isPresent().

Original pull request: #366.
2019-10-28 15:02:53 +01:00
Ľubomír Varga
87f9904e3a DATAREST-1356 - Fix updating single associations.
Correct a regression regarding association links. Introduce several test cases to prove this situation is fixed regarding PUTs for association links.

Source of the bug: 554d6cb27b (diff-1d7c16fe1992fef13a47fa8ab8599718L317) flips the criteria from "not single" to "single" without checking for related impacts.
2019-10-21 13:04:00 -05:00
Mark Paluch
14a5e03a38 DATAREST-1419 - Prepare next development iteration. 2019-09-30 16:17:53 +02:00
Mark Paluch
ee6c55bcc1 DATAREST-1419 - Release version 3.2 GA (Moore). 2019-09-30 15:51:07 +02:00
Oliver Drotbohm
384e0ed0cd DATAREST-1427 - Fixed handling of unpaged Pageable values. 2019-09-25 14:27:00 +02:00
Mark Paluch
e510640619 DATAREST-1420 - Prepare next development iteration. 2019-09-06 10:21:54 +02:00
Mark Paluch
ffa93761c9 DATAREST-1420 - Release version 3.2 RC3 (Moore). 2019-09-06 10:10:42 +02:00
Greg Turnquist
0b0ffab46b DATAREST-1421 - Polishing. 2019-08-08 10:54:53 -05:00
Greg Turnquist
9c56c3f217 DATAREST-1421 - Deprecate ALPS_JSON and ALPS_JSON_VALUE.
Instead, use Spring HATEAOS's MediaTypes.ALPS_JSON and ALPS_JSON_VALUE.
2019-08-08 10:54:45 -05:00