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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.