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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
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.