Search Issue Tracker
By Design
By Design in 2023.2.X
Votes
0
Found in
2020.3.47f1
2021.3.22f1
2022.2.15f1
2023.1.0b12
2023.2.0a10
Issue ID
UUM-32822
Regression
No
Unnecessary symbols "%7E" are added in UnityWebRequest and HttpClient location header when sending a request through the Python server
How to reproduce:
1. Open the "IN_29802" project
2. Open the “SampleScene” in “Assets/Scene1”
3. Run the server by opening the "Server" Script
4. Select the "Main Camera" GameObject
5. Right-click on the "Test Script" Script in the Inspector
6. Press "Test UWR"
7. Open the "http://127.0.0.1:2301/foo”
8. Observe the "Server" Script window
Expected result: "%7E" is not added in the URL header
Actual result: "%7E" is added to the URL header
Reproducible with: 2020.3.47f1, 2021.3.22f1, 2022.2.15f1, 2023.1.0b12, 2023.2.0a10
Reproducible on: Windows 10 Pro
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
- Terrain is rendered with broken material when adding Terrain Component to a Cube GameObject and assigning Terrain data
- APV baking settings are not saved until you bake
Resolution Note:
The issue occurs because the server expect percent escaped URL, while UWR and HttpClient unescape some characters when redirecting, for example %27 and %7E are unescaped as ' and ~.
Both these characters are valid in URL, so server should support both of them interchangeably. In case of python urllib.parse.unquote() can be used to convert percent-escaped url into unescaped one.
Resolution Note (2023.2.X):
The issue occurs because the server expect percent escaped URL, while UWR and HttpClient unescape some characters when redirecting, for example %27 and %7E are unescaped as ' and ~.
Both these characters are valid in URL, so server should support both of them interchangeably. In case of python urllib.parse.unquote() can be used to convert percent-escaped url into unescaped one.