eclipse-ee4j / eclipse-ee4j/jersey
StackOverflowError in WadlBuilder.generateResource
Open
Component: core
Priority: Major
Type: Bug
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
I have a resource at path A that defines a sub-resource locator at path B. When calling HTTP method OPTIONS on my sub-resource, WadlBuilder.generateResource enters an infinite loop because when it attempts to build the B child resource for resource A, it uses the locator that points to path A, including a child that uses A's path. When that child is processed while attempting to build B, A is processed again, resulting in B being processed again, etc.
Since there is no proper equals method on Resource, visited resources are never matched.
#### Environment
OS X 10.12, java 1.8.0_102
#### Affected Versions
[2.23.2]
Contributor guide
Assessment
This issue has not been assessed yet.