Skip to content

Question for https://github.com/OpenFeign/feign/pull/882. #1027

Closed
@hiasince

Description

@hiasince

I have some question for this PR #882.

We are using it with spring. When we were using Feign before upgrade to 10.2.0, There was any problem with using ampersand(&) for @QueryParam value. But after upgrade to 10.2.0, We have problem Because of this implementation.

What I want to ask is What is the advantage for Preserving reserved characters on the query string? I cannot use reserved characters for @QueryParam anymore unless supplement additional code. I'm all for it that change encoding algorithm for '+' and ' '. But I think We have to encode reserved characters. Because It is Reserved. It used for special meaning in defining url syntax. If reserved characters are maintains on @QueryParam, It will work unexpectedly or It will occur bug, without any Error message or Warning message.

I understood this PR like Feign wants to say to user "Please do not use any reserved characters."
Is it correct? or Did you have any other purpose?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionGeneral usage or 'how-to' questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions