Skip to content

Using a semicolon in a value in QueryParameters suddenly doesn't work anymore #3955

Open
@dcristolovean

Description

@dcristolovean

Describe the bug

I'm calling a REST API with some query parameters ([String : String]). The API call worked for months now. One value in the query is a string like "X;Y".
The server now receives only X and not the entire string.
I put this query dict in a RESTRequest that is simply passed to Amplify.API.get.

Any ideas what happened ? It might coincide with the update to 2.45.4 I did a few days ago.

PS: This suddenly became a huge issue, I realized I have values like this in 99% of the API calls. Having a ";" in any value in the query parameters, simply removes everything what's after the 1st semicolon.
I tried encoding it (%3B), not encoding it, nothing works. Amplify just kills it.

Steps To Reproduce

- Access any REST API call with Amplify that requires queryParameters and send a value with a semicolon somewhere in the middle.

Expected behavior

The server should receive the entire string, not only what's before the semicolon.

Amplify Framework Version

2.45.4

Amplify Categories

API

Dependency manager

Swift PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssues related to the API categorybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions