File uris with space and other special characters are not correctly normalized. The fix is to removing 3 lines of code on normalizePath() because the correct normalization code already exists in PathResolver.getRealPathFromURI().
Example input: file:///storage/emulated/0/Foo%20Bar
Correct output: /storage/emulated/0/Foo Bar.
Current (wrong) output: /storage/emulated/0/Foo%20Bar.
File uris with space and other special characters are not correctly normalized. The fix is to removing 3 lines of code on
normalizePath()
because the correct normalization code already exists inPathResolver.getRealPathFromURI()
.Example input:
file:///storage/emulated/0/Foo%20Bar
Correct output:/storage/emulated/0/Foo Bar
. Current (wrong) output:/storage/emulated/0/Foo%20Bar
.