swagger-api / swagger-api/swagger-codegen

replace deprecated org.springframework.util.Base64Utils with Base64

Open
#12,080 11 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

The resttemplate module relies on spring Base64Utils.
But latest version of the framework have deprecated it, suggesting to use Base64 from the stdlib.

Swagger-codegen version

I'm using the latest version from brew.

Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

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 modules/swagger-codegen/src/main/resources/Java/libraries/resttemplate/auth/HttpBasicAuth.mustache, where the resttemplate authentication template uses Spring's deprecated Base64Utils. Replace that dependency with the suggested Java standard-library Base64 API, and confirm the generated RestTemplate authentication code no longer references Base64Utils.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
tooling
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.