OpenAPITools / OpenAPITools/openapi-generator
[REQ] Java Jersey glassfish fix renewing OAuth-Accesstoken
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
Renewing the OAuth-Accesstoken does not work because jersey ApiClient.java uses Objectreference comparison for the statusInfo check and the used implementation from glassfish is not compatible.
Describe the solution you'd like
Because Objectreference comparison is not really necessary, we suggest to only check against the statusCode.
compare: https://github.com/OpenAPITools/openapi-generator/pull/14735
Describe alternatives you've considered
Temporarily we are using mustache-templates as described above.
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.
Research direction
Start with the Jersey ApiClient.java implementation and compare its statusInfo check with the change shown in pull request 14735. Verify how the GlassFish implementation behaves during OAuth access-token renewal, then confirm that checking the status code allows renewal to succeed without the object-reference comparison.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100