Search Issue Tracker

By Design

Votes

0

Found in

2022.3.30f1

6000.0.2f1

Issue ID

UUM-72470

Regression

Yes

[iOS 17] "Malformed URL" error is thrown when using UnityWebRequest with a URI containing "[]"

--

-

How to reproduce:
1. Open the attached Project "TestURL.zip"
2. Build and Run the Scene "SampleScene" on an iOS 17 device
3. Observe the Xcode Console

Expected result: "Form upload complete!" is printed
Actual result: "Malformed URL" is printed

Reproducible with: 2022.3.26f1, 2022.3.30f1, 6000.0.2f1
Not reproducible with: 2021.3.38f1, 2022.3.25f1

Reproduced on:
- iPad 6th Gen (iOS 17.2)
Did not reproduce on:
- iPhone 13 Pro (iOS 16.6.1)

  1. Resolution Note:

    The recommendation is to always use properly escaped URLs, especially if they are hardcoded. The characters [ and ] need to be escaped as %5b and %5d
    When URL that hasn't been properly escaped is used, the automatic escaping system is used that in some cases is not capable of escaping as URI syntax is ambiguous and by having only URI it's not even possible to know what the result should be. We don't want to introduce regressions by adding more escaping cases, hence we don't intend to fix this for Unity 6 and older.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.