Repository navigation
Conversation
Native targets read any URI that is not http(s) as a path, so a file URL (file:///home/user/a%20b.txt, as AIR's File.url gives) was never found. Its scheme is dropped and its path decoded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On native targets,
HTTPRequestreads any URI that is not http(s) as a filepath. A file URL such as
file:///home/user/a%20b.txt, which is whatopenfl.filesystem.File.url(and AIR'sFile.url) gives, was therefore neverfound:
Cannot load file: file:///…. Code written for AIR loads files thisway, for example Starling's
AssetManager, which loads theFileobjects itis given through their URL.
The
file://scheme is now dropped and the path percent-decoded before it isread (and, on Windows, the slash before a drive letter removed).
Repro: LimeHTTPRequestFileURLRepro.zip, which saves a file whose name has a space
and loads it through its file URL. Before:
FAIL: Cannot load file: file:///…/file%20url%20repro.txt; after:OK: loaded through a file URL.Checked on neko and on Linux cpp.