spring-projects / spring-projects/spring-data-rest
Disabling ALPS does not remove the profile link [DATAREST-1119]
@odrotbohm is already working on this.
Since Dec 31, 2020.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Jeroen Reijn opened DATAREST-1119 and commented
In my project, we tried disabling ALPS, but this seems to be only partly possible.
For disabling ALPS we used a RepositoryRestConfigurerAdapter like:
@Configuration
public class ApiRestConfiguration extends RepositoryRestConfigurerAdapter {
@Override
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
config.getMetadataConfiguration().setAlpsEnabled(false);
}
}
After a restart/redeploy we still see the profile link in the api root response:
{
"_links": {
"filtertools": {
"href": "http://localhost:8081/api/v1/filtertools{?page,size,sort}",
"templated": true
},
"profile": {
"href": "http://localhost:8081/api/v1/profile"
}
}
}
If you actually go to the profile URL it also still works and you will see link relations for the exposed repositories, but when you navigate to one of the exposed repository profile relations a 404 response is returned. I'm not sure if this is wanted behavior, but I would have expected the link relation to disappear from the root response as well, unless other profiles can be configured, but I'm not aware of that
Affects: 2.6.6 (Ingalls SR6)
Referenced from: pull request https://github.com/spring-projects/spring-data-rest/pull/280
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.