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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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.