Search Issue Tracker
By Design
Votes
0
Found in
2017.1.0f3
Issue ID
933137
Regression
Yes
UriFormatException: Invalid URI when parsing file path with WWW class
Steps to reproduce:
1. Open attached "errorWWW.zip" Unity project
2. Open scene “Test”
3. Click on “GameObject” object in the Hierarchy tab
4. Manually enter “skyNight001.png” path on your computer into “File Path” field in the Inspector tab
5. Enter Play mode
Reproduced in: 2017.3.0a1, 2017.2.0b4, 2017.1.0p1, 2017.1.0f3, 2017.1.0f1, 2017.1.0b3, 2017.1.0b1
Didn’t reproduce in: 2017.1.0a6, 2017.1.0a5, 2017.1.0a1, 5.6.2p4, 5.6.1f1, 5.5.0f1
Regression introduced in: 2017.1.0b1
Error:
UriFormatException: Invalid URI: The hostname could not be parsed. ( )
System.Uri.Parse (UriKind kind, System.String uriString)
System.Uri.ParseUri (UriKind kind)
System.Uri..ctor (System.String uriString, Boolean dontEscape)
System.Uri..ctor (System.String uriString)
UnityEngineInternal.WebRequestUtils.MakeInitialUrl (System.String targetUrl, System.String localUrl) (at /Users/builduser/buildslave/unity/build/Runtime/WebRequest/Managed/WebRequestUtils.cs:481)
-------------------------
This bug is by design:
The newer Unity versions are more strict about URI conformance.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Toolkit 'background-size' property is not fully animatable
- Moving the Scrollbar via clicking no longer works after the first-click when page size is too small
- Elements in UI Builder Viewport are displayed incorrectly when Editor UI Scaling is set to 125%
- Prefab referencing a script is not shown in the Search window's Project tab when using "Find References In Project"
- Scroll view sensitivity remains unchanged when modifying the "--unity-metrics-single_line-height" value
Add comment