Files app fails to open local files from shareddocuments url scheme

Originator:edwellbrook
Number:rdar://FB9359784 Date Originated:19 Jul 2021
Status:Open Resolved:
Product:Files app Product Version:iOS 14.6+
Classification: Reproducible:Always
 
Please provide a descriptive title for your feedback:
Files app fails to open local files from shareddocuments url scheme

Which area are you seeing an issue with?
Files app

What type of feedback are you reporting?
Incorrect/Unexpected Behavior

How often does this happen?
It happens every time

When you see this issue, where are the files located that you are using?
Something else not on this list

Please describe the issue and what steps we can take to reproduce it:
Opening a file using the shareddocuments:// url scheme no longer shows the specified file.

In previous versions of iOS you could construct a url that would open the Files app to a specified file. `shareddocuments://` + `path to file`.

In recent versions of iOS (14.6+, 15 beta 3+) the Files app is launched, but the specified file is no longer shown. This worked in iOS 14.5 and earlier.

Steps:
- Open attached xcode project (FilesAppTest)
- Run project in simulator running iOS 14.5
- Tap "Show in Files" button
- Files app should be launched and file shown (previous case)
- Run project in simulator running iOS 15 beta+
- Tap "Show in Files" button
- Files app should be launched, but file NOT shown (regression case)

Expected:
Files app is launched and specified file shown

Actual:
Files app is launched, but specified file NOT shown

Tested with some other people and we’ve narrowed down the issue:
- Works for files and folders stored in iCloud Drive
- Works for folders stored in “On My iPad/iPhone”
- Doesn’t work for files stored in “On My iPad/iPhone”

Files:
https://firebasestorage.googleapis.com/v0/b/doppler-1f163.appspot.com/o/FilesAppTest.zip?alt=media&token=85cdce7b-07af-4400-8790-f78530fb5b27

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!