Skip to content

Parameter URL encoding is inconsistent with Feign 10Β #1225

Open
@seanstephenson-taulia

Description

@seanstephenson-taulia

I have a project that works under Feign 9 but is broken in Feign 10.

Consider the following example:

interface ExampleClient {
  @RequestLine("GET /search?text={text}")
  void search(@Param("text") String text);
}

Most values are automatically encoded when passed through. But if there is a value that appears to match a pre-encoded hex value it will not be encoded correctly.

text = %example% works correctly
text = %address% is not encoded correctly

I assume the problem is that the %ad in address could be interpreted as a hex value so feign is attempting to infer that the value is already encoded. The issue is that there is no reliable way to pass through a value like %address% that looks like a hex value but actually is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected or incorrect behaviorfeedback providedFeedback has been provided to the authorregressionBugs and issues related to unintended breaking changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions