Commit Graph

1016 Commits

Author SHA1 Message Date
Oliver Drotbohm
2cac83fcef #1686 - Avoid serializing empty beans in EntityModel.
The unwrapping nature of EntityModel.getContent() does not work well with value that would result in an empty object being rendered. We now skip the rendering if failing for empty beans is disabled.
2021-10-19 13:54:18 +02:00
Oliver Drotbohm
e0f1643448 #1688 - Use Links.collector() in JsonPathLinkDiscoverer. 2021-10-19 13:24:38 +02:00
Oliver Drotbohm
b78d6d59b9 #1687 - Fix Javadoc in LinkDiscovererfindLinkWithRel(…). 2021-10-19 13:23:16 +02:00
Oliver Drotbohm
d1b7219c1f #1682 - Continue development on 1.4.0-SNAPSHOT. 2021-10-14 16:57:40 +02:00
Oliver Drotbohm
f8c73d2686 #1682 - Releasing Spring HATEOAS 1.4.0-RC1. 2021-10-14 16:57:38 +02:00
Oliver Drotbohm
59b861b158 #1682 - Update changelog prior to release. 2021-10-14 16:57:06 +02:00
Oliver Drotbohm
cf74550f1c #1681 - Upgrade to Kotlin 1.5.31. 2021-10-14 16:42:30 +02:00
Oliver Drotbohm
4f5bb1f65b #1680 - Upgrade toReactor 2020.0.12. 2021-10-14 16:40:20 +02:00
Oliver Drotbohm
23ebbbee3a #1679 - Upgrade to Lombok 1.18.22. 2021-10-14 16:39:11 +02:00
Oliver Drotbohm
40514d1dfa #1678 - Upgrade to JUnit 5.8.1. 2021-10-14 16:38:29 +02:00
Oliver Drotbohm
d9ced02300 #1677 - Upgrade to Jackson 2.13.0. 2021-10-14 16:35:49 +02:00
Oliver Drotbohm
02442362ed #1676 - Upgrade to AssertJ 3.21.0. 2021-10-14 16:34:48 +02:00
Oliver Drotbohm
7021ecf7cf #1647 - Upgrade to Spring Framework 5.3.11. 2021-10-14 16:33:09 +02:00
Josh Gough
994bf861d2 #1659 - Documentation fix in HalModelBuilder usage.
Changed ….halModel(order) to ….halModelOf(order) for plain entities.
2021-10-13 16:31:47 +02:00
Oliver Drotbohm
3d7458b5f6 #1662 - HAL FORMS template target must be a URL.
We now expand the affordance link before we add it to the HAL FORMS template.

Also see #1660.
2021-10-12 13:52:34 +02:00
Oliver Drotbohm
ab02d45b8e #1657 - Prevent IndexOutOfBoundException in WebConverters.
We now skip the registration of the default media type if no hypermedia types are activated in the first place. We previously assumed there'd be at least one media type configuration registered.
2021-10-12 13:14:08 +02:00
Oliver Drotbohm
eca7fc23e7 #1658 - Re-expose AnnotationMappingDiscoverer.
It's required from Spring Data REST.
2021-10-08 10:50:28 +02:00
Oliver Drotbohm
f0a000a07e #1652 - Tighten contracts for parameter values in MethodLinkBuilderFactory.linkTo(…).
If a parameter array is given to MethodLinkBuilderFactory.linkTo(…) methods, we now verify its correct length in correspondence to the method given. If no parameters are given at all, we automatically create a parameter value array of the required length.
2021-09-24 16:36:53 +02:00
Oliver Drotbohm
3b94d4b862 #1448 - Improve proxy creation in DummyInvocationUtils.
We now explicitly set the optimize flag on the ProxyFactory for class based proxies used to create dummy invocation proxies. Still needs the upgrade to Spring Framework 5.3.11 (spring-projects/spring-framework#27439, #1647) to create full effect.
2021-09-21 17:55:28 +02:00
Oliver Drotbohm
fe1657386d #1648 - Removed further deprecations. 2021-09-21 17:46:04 +02:00
Oliver Drotbohm
054d2bf7d1 #1639 - Update build plugins to be JDK 17 compatible. 2021-09-21 14:21:04 +02:00
Oliver Drotbohm
fc99a84439 #1639 - Javadoc polishing in preparation of stringer linting in JDK 17. 2021-09-21 14:20:50 +02:00
Oliver Drotbohm
690ea3e967 #1638 - Avoid trying to proxy Object for controller method dummy invocations.
On JDK 17, trying to proxy Object doesn't work anymore. We now simply return the interceptor that would've been applied to the proxy directly and detect that properly in requests to extract the LastInvocationAware instance.
2021-09-20 13:27:35 +02:00
Oliver Drotbohm
2fcad81d6c #1640 - Tweak CI build to run compatibility builds against JDK 17. 2021-09-20 13:14:06 +02:00
Oliver Drotbohm
56b4dcc255 #1637 - Upgrade to Lombok 1.18.20.
For JDK 17 support.
2021-09-20 13:11:36 +02:00
Oliver Drotbohm
95174ae911 #1635 - Continue development on 1.4.0-SNAPSHOT. 2021-09-16 15:07:20 +02:00
Oliver Drotbohm
21597fe1b9 #1635 - Releasing Spring HATEOAS 1.4.0-M3. 2021-09-16 15:07:17 +02:00
Oliver Drotbohm
1ad6448c36 #1635 - Prepare changelog for 1.4 M3 release. 2021-09-16 15:06:28 +02:00
Oliver Drotbohm
60e7f2e04e #1608 - HAL FORMS templates now expose HTTP method in all caps.
See the RFC for details: https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.1.
2021-09-16 15:03:44 +02:00
Oliver Drotbohm
f9274a692e #1634 - Upgrade to AssertJ 3.20.2. 2021-09-16 14:33:16 +02:00
Oliver Drotbohm
c5e297299f #1633 - Upgrade to EvoInflector 1.3. 2021-09-16 14:31:57 +02:00
Oliver Drotbohm
229e3829c3 #1632 - Upgrade to Logback 1.2.6. 2021-09-16 14:30:19 +02:00
Oliver Drotbohm
42b1f6aee3 #1631 - Upgrade to JaCoCo 0.8.7. 2021-09-16 14:28:58 +02:00
Oliver Drotbohm
ff2470b2bd #1630 - Upgrade to Jackson 2.12.5. 2021-09-16 14:27:28 +02:00
Oliver Drotbohm
19a997e163 #1629 - Upgrade to JUnit 5.8. 2021-09-16 14:26:01 +02:00
Oliver Drotbohm
fbebf8933b #1627 - Upgrade to Mockk 1.12.0. 2021-09-16 14:24:23 +02:00
Oliver Drotbohm
27b468ac76 #1628 - Upgrade to Slf4j 1.7.32. 2021-09-16 14:24:02 +02:00
Oliver Drotbohm
9d015b5599 #1626 - Upgrade to Kotlin 1.5.30 and Coroutines 1.5.2. 2021-09-16 14:21:13 +02:00
Oliver Drotbohm
ac7ee048be #1625 - Upgrade to Reactor 2020.0.11. 2021-09-16 14:18:11 +02:00
Oliver Drotbohm
5c28c769ed #1624 - Upgrade to Spring Framework 5.3.10. 2021-09-16 14:17:17 +02:00
Oliver Drotbohm
140ae541f6 #1609 - Avoid superfluous object creation in Link.valueOf(…).
We now avoid calling with…-methods for every attribute parsed from an RFC-8288 link string.
2021-09-16 11:28:00 +02:00
Oliver Drotbohm
2751b11acf #1607 - Polishing. 2021-09-14 11:43:31 +02:00
Oliver Drotbohm
7d763043d2 #1607 - Remove deprecations in Affordances. 2021-09-14 11:43:04 +02:00
Oliver Drotbohm
55aa4ff278 #1602 - Polish nullability for Link. 2021-09-14 10:17:26 +02:00
Oliver Drotbohm
cfd891ebf1 #1599 - Properly contextualize MapSuppressingUnwrappingSerializer.
According to FasterXML/jackson-databind#3272, we have to explicitly contextualize the delegate serializer we use for non-Map content in EntityModel.
2021-09-14 09:01:35 +02:00
Oliver Drotbohm
4705797322 #1402 - Properly create Property instances in PropertyUtils.
We now hand the already known property name (from the PropertyDescriptor) to the Property instance we create when inspecting classes for metadata. This avoids ambiguities stemming from the fact that Property assumes Java Bean style properties but Spring's BeanUtils also supporting Java Records style accessors. In special naming contexts like the one used in the test case, this can lead to properties considered "the same" as their accessor methods imply their name is the same.
2021-09-09 13:00:32 +02:00
Oliver Drotbohm
f891f3be6d #1598 - Fully prepare handler method values in link creation.
We now eagerly convert all request parameters and path variables into their String representation using the MVC ConversionService to make sure we can use all formatting metadata available on the parameters.
2021-08-27 17:41:47 +02:00
Oliver Drotbohm
7acf6b8485 #1595 - Continue development on 1.4.0-SNAPSHOT. 2021-08-12 10:25:26 +02:00
Oliver Drotbohm
848cdf1fbb #1595 - Releasing Spring HATEOAS 1.4.0-M2. 2021-08-12 10:25:18 +02:00
Oliver Drotbohm
8bec37c67c #1595 - Update changelog. 2021-08-12 10:24:31 +02:00