BookPlayer icon indicating copy to clipboard operation
BookPlayer copied to clipboard

Bug: On app load, modal displays "[file] couldn't be removed because vou don't have permission to access it."

Open chrissar opened this issue 1 year ago • 11 comments

Environment

  • OS Version: 17.3.0
  • App Version: 5.2.2-34

Description

After a failed attempt to import a series of audiobooks in the app via the Files app connected to a file server, I am unable to get rid of the "corrupted" files, as I do not have permission to get rid of those. Here's a screenshot that illustrates the issue.

1495F933-2605-4797-ACB6-65E83F2E1CDB_1_105_c

Clicking on "Done" causes the app to crash.

Clicking on "Cancel" allows app to continue as it should.

Steps to reproduce the behavior

Note that I am unsure whether this will work or not.

  1. Try to bring in a file from another file server and cancel it before it completes.
  2. Disconnect from the server.
  3. Restart the app.

Short of deleting everything and starting over, is there a way to remove those alerts?

chrissar avatar Feb 08 '24 21:02 chrissar

@chrissar can you go to the Files app → On my iPhone → BookPlayer, and see if there's any file references in there? if you delete them, you won't be prompted next time you launch the app. It looks like the app couldn't make a copy of the files, and instead got a link reference to them

GianniCarlo avatar Feb 08 '24 22:02 GianniCarlo

@GianniCarlo thank you for the suggestion. I tried what you proposed but there's no file references to those files there, only the ones that have already been imported.

chrissar avatar Feb 09 '24 02:02 chrissar

@chrissar hmmmm, this must be then references on the Inbox folder from the system. I'll look into addressing this issue, when there's non removable references in there

GianniCarlo avatar Feb 09 '24 03:02 GianniCarlo

@GianniCarlo Thanks for the quick turnaround! Just in case, I managed to grab another screenshot to show what happens when the cancel button is clicked:

IMG_0642

chrissar avatar Feb 09 '24 14:02 chrissar

@chrissar there's a beta live with a possible fix for this (link to join beta: https://testflight.apple.com/join/xLDneJXN) let me know if that works

GianniCarlo avatar Feb 09 '24 17:02 GianniCarlo

@chrissar there's a beta live with a possible fix for this (link to join beta: https://testflight.apple.com/join/xLDneJXN) let me know if that works

Just gave it a try and unfortunately it doesn't seem like it fixed the issue. I submitted feedback with screenshots.

chrissar avatar Feb 09 '24 18:02 chrissar

@GianniCarlo let me know if you need additional data.

chrissar avatar Feb 09 '24 18:02 chrissar

@chrissar my bad, I submitted the beta without the changes on the opened PR 🤦 , I've updated the beta, can you try now with the latest one?

GianniCarlo avatar Feb 10 '24 00:02 GianniCarlo

@GianniCarlo no problem. Here's my feedback:

  • The app still crashes when Done is clicked.
  • When cancel is clicked, I see the files get "cleared" but the alert still pops-up.
  • Refreshing or reopening the app still shows the previously-cleared files.

chrissar avatar Feb 10 '24 02:02 chrissar

@chrissar I tracked down the crash logs, and it looks like the app does not have permissions to the Processed folder for some reason, but it's weird since it's in the Documents folder, and the app is the one that creates that folder, reading some posts on the dev forums, I saw someone turning off and back on the phone, and that fixed the access to a folder in the Documents folder of the app, can you try that just in case too?

Regarding the cancel issue, I've been trying to reproduce by connecting to my NAS on my network via Files app, choosing some audiobooks, sharing to BookPlayer, removing the connection to the NAS from the Files app, going to BookPlayer and cancelling, but no luck, let me know if I'm missing something to reproduce the issue

GianniCarlo avatar Feb 11 '24 15:02 GianniCarlo

@GianniCarlo hey sorry about the delay in my response. I've been testing the last couple of builds and sending back crash logs. Some things were fixed, like crashes when starting the app from CarPlay but I still have that underlying issue with the files stuck in the queue.

chrissar avatar Feb 26 '24 17:02 chrissar