OpenAPITools / OpenAPITools/openapi-generator

[REQ] Java Jersey glassfish fix renewing OAuth-Accesstoken

Open
#14,734 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.