Skip to content

[JAVA] Bug swagger don't encode Germany character in query params #10474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kingtran2112 opened this issue Sep 25, 2020 · 4 comments
Open

[JAVA] Bug swagger don't encode Germany character in query params #10474

kingtran2112 opened this issue Sep 25, 2020 · 4 comments

Comments

@kingtran2112
Copy link

kingtran2112 commented Sep 25, 2020

Description

The query parameter contain Germany character (more specific, the character ß) is not encoded when we send the request

Swagger-codegen version

3.0.20

Command line used for generation

I am using io.swagger.codegen.v3:swagger-codegen-maven-plugin

Related issues/PRs

#8880
#9387

Suggest a fix/enhancement

I checked the method ApiClient#invokeAPI that we currently don't use the encode feature of UriComponentsBuilder or RestTemplate but use ti from method toUri(). At my glance there, the method is just encode the character under ISO control. And it looks like Germany character is not a part of it

@lucianobustos
Copy link

Hello @kingtran2112

I think this will fix your issue.

#11098

@kingtran2112
Copy link
Author

Hi, thanks about that. I currently workaround that issue by using another lib for swagger. Will take a look when the PR is merged

@GerhardKMaier
Copy link

Hi, we have the same issue. Why is the fix still not active?

@durcon
Copy link

durcon commented Mar 27, 2024

Still not fixed after more than 3 years? Is this project deprecated and not maintained anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants