swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

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

Open kingtran2112 opened this issue 4 years ago • 4 comments

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

https://github.com/swagger-api/swagger-codegen/pull/8880 https://github.com/swagger-api/swagger-codegen/pull/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

kingtran2112 avatar Sep 25 '20 09:09 kingtran2112

Hello @kingtran2112

I think this will fix your issue.

https://github.com/swagger-api/swagger-codegen/pull/11098

lucianobustos avatar Jul 16 '21 09:07 lucianobustos

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

kingtran2112 avatar Jul 19 '21 01:07 kingtran2112

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

GerhardKMaier avatar Feb 23 '23 12:02 GerhardKMaier

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

durcon avatar Mar 27 '24 08:03 durcon