Skip to content

Decoding URI query parameters incompatible with Spring 5 #2619

@JohannesFuchs

Description

@JohannesFuchs

Expected behavior

It should be possible to decode query parameters containing character '+' when also when encoded from Spring5. For backward compatibility it may be usefull to have with getQueryParameters a boolean parameter that alows decoding + as space or as +

Actual behavior

URI::getQueryParameters replaces blindly in name and value the charcater '+' with a space URI.cpp (line 361; line 372) before calling the decode function.
Spring5 RestTemplates leaves character '+' unencoded which leads to incompatibility.

Steps to reproduce the problem

(please make this a SSCCE, if applicable and reasonable)

POCO version

1.9.0

Compiler and version

Operating system and version

Other relevant information

Workaround:
use getRawQuery and do the parsing/decoding outside class URI

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions