Release Notes / Version 12.2506.0
Table Of ContentsUpdate to latest minor version of Spring-GraphQL and GraphiQL 5.0
Due to an update in the publishing policy of GraphiQL, spring-graphql library could not deliver graphiql correctly. This was fixed by updating Spring-GraphlQL to the corresponding latest minor version:
CMS 2506.0: Spring-GraphQL V 1.4.1 delivering GraphiQL 5.0.0 esm.sh (was 4.0.0 via esm.sh) CMS 2412.0: Spring-GraphQL V 1.3.6 delivering GraphiQL 5.0.0 via esm.sh (was via unpkg.com) CMS 2406.2: Spring-GraphQL V 1.4.1 delivering GraphiQL 5.0.0 via esm.sh (was 4.0.0 via esm.sh) CMS 2416.1: Spring-GraphQL V 1.3.6 delivering GraphiQL 5.0.0 via esm.sh (was via unpkg.com)
(CMS-28156)
Fixed Regression: Non-trivial server context path for REST request was ignored
A non-trivial server context path, e.g. ‘/customContextPrefix’ was not working anymore with REST requests. That regression was now fixed.
(CMS-27931)
Exception handling by DataFetcherExceptionResolverAdapter
To resolve exceptions to GraphQL errors, a
DataFetcherExceptionResolverAdapter has been added
which resolves implementations of RuntimeException
to ErrorType.DataFetchingError. Specific exceptions
and corresponding ErrorTypes can be configured via
configuration property caas.exceptionErrorMap.
Exceptions are resolved via configuration for the most specific super
class.
(CMS-27811)
HeadlessServer now also supports type conversion of path segments used as GraphQL input variables
Previously, HeadlessServer converted HTTP request parameters into the necessary type for a GraphQL input variables only. With this fix type conversion is now also supported for path segments of the HTTP request path.
(CMS-27635)
Bugfix HeadlessServer: Multiple inheritance for GraphQL types overwrites fetch expression by last type
HeadlessServer overwrote the fetch expression when a GraphQL type used the @inherit directive with two or more types, which also implemented GraphQL interfaces. The problem was fixed.
(CMS-27168)
Apollo Federation Support
HeadlessServer now comes with Apollo Federation Support for GraphQL.
To enable Federation Support, simply add the library
com.apollographql.federation:federation-graphql-java-support:5.0.0
to your maven dependencies with scope runtime:
<dependency> <groupId>com.apollographql.federation</groupId> <artifactId>federation-graphql-java-support</artifactId> <scope>runtime</scope> </dependency>
During server start, the library will be detected and federation support will be enabled. The log will show an additional info level message, that federation support is active.
(CMS-27128)
Bugfix: Missing validation of invalid, embedded content in richtext in HeadlessServer
Richtext transformation did not filter invalid, embedded content links. The problem was fixed invoking the filter predicates during richtext transformation.
The changes made new constructors in the public API necessary. For backward compatibility, the former constructors were kept in the code as legacy constructors but marked deprecated for removal. It is highly recommended not to use the deprecated constructor anymore and instead update existing custom code to use the new constructors. Also be aware, using the old constructors will work but will also keep the old, wrong behavior!
(CMS-26978)


