Skip to content

@EnableHypermediaSupport does not provide a ContollerEntityLinks bean when using WebFlux #1062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wilkinsona opened this issue Sep 1, 2019 · 3 comments
Assignees
Milestone

Comments

@wilkinsona
Copy link
Member

wilkinsona commented Sep 1, 2019

The documentation currently states that ControllerEntityLinks will be included in the default setup but that does not appear to be the case when using WebFlux.

@gregturn
Copy link
Contributor

gregturn commented Sep 3, 2019

I have dug in a little, and discovered that to implement this, we need a WebFluxLinkBuilderFactory. The contract underlying this (WebFluxLinkBuilder) is very different than WebMvcLinkBuilder, as in, Reactor-based types, functional concepts, and different inputs (ServerWebExchange).

I'm not convinced the abstraction in place that creates a ControllerEntityLinks bean by injecting a link building factory is a drop in for WebFlux. It appears heavily driven by Spring MVC.

The implication is that we need something more akin to a WebMvcControllerEntityLinks bean and a WebFluxControllerEntityLinks bean.

Thoughts @odrotbohm?

gregturn added a commit that referenced this issue Sep 5, 2019
…C feature.

For now, EntityLinks is only properly support for Spring Web MVC. Developing this for WebFlux is in progress. Properly indicate this in the reference docs.

Related: #1071
@gregturn gregturn self-assigned this Sep 5, 2019
@gregturn gregturn added this to the 1.0.0.RC2 milestone Sep 5, 2019
@gregturn
Copy link
Contributor

gregturn commented Sep 5, 2019

Resolved via 36baafe.

@gregturn gregturn closed this as completed Sep 5, 2019
@gregturn
Copy link
Contributor

gregturn commented Sep 5, 2019

Follow #1071 to track adding a WebFlux-specific EntityLinks variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants