jakartaee / jakartaee/authorization
TCK: Test PolicyConfigurationFactory are not specification compliant
- Dominant language
- Java
- Stars
- 17
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
Presently the `PolicyConfigurationFactory` test implementations return a new decorated `PolicyConfiguration` when calling the `getPolicyConfiguration(String, boolean)` method, but they don't return the same one each time that method is called.
Also the `getPolicyConfiguration()` and `getPolicyConfiguration(String)` methods are not returning the decorated `PolicyConfiguration` that is returned from the `getPolicyConfiguration(String, boolean)` or `null` if the `getPolicyConfiguration(String, boolean)` method was not called yet. Alternatively, those methods, could get and store a decorated `PolicyConfiguration` object if the Factory that is wrapped returns one from its implementation or `null` if the wrapped factory returns `null`.
Contributor guide
Research direction
Inspect the TCK test implementations of PolicyConfigurationFactory and trace getPolicyConfiguration(String, boolean), getPolicyConfiguration(), and getPolicyConfiguration(String). Run the relevant TCK tests and verify that decorated PolicyConfiguration instances are reused and consistently returned, or that null is returned when the wrapped factory provides none.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100