Search Issue Tracker
By Design
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
- Incorrect color values are saved for Swatches when using HDR Color Picker
- Editor crashes when adding/removing a UI Document Style Sheet while in Play mode
- Scene and Game views turn black when all light sources are disabled
- Memory spike after activating Freeform Light2Ds
- Line Renderer Component elements do not fit in the Inspector window when minimising Inspector window is minimised
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.