Hi, I have a problem when trying to access my db file (https://disbox-server.fly.dev/files/get/HASH)
The problem may come from the disbox-file.js at line 50:
if (!entry.parent_id in allDirectories)
The problem is that JavaScript evaluates this as:
if ((!entry.parent_id) in allDirectories)
It checks if the string "true" or "false" is a key in "allDirectories". The check never works so the guard that was supposed to create a placeholder for missing parents never fires
The fix for that line is:
if (!(entry.parent_id in allDirectories))
This affects DB with orphaned entries, which could be my case I guess
It's completely safe to deploy since it doesn't affect files with no orphans. It just prevent DB with orphans entries to fail, so the db can be retrieved
Thanks you so much for your work, that's a really good project !!
Hi, I have a problem when trying to access my db file (https://disbox-server.fly.dev/files/get/HASH)
The problem may come from the disbox-file.js at line 50:
if (!entry.parent_id in allDirectories)
The problem is that JavaScript evaluates this as:
if ((!entry.parent_id) in allDirectories)
It checks if the string "true" or "false" is a key in "allDirectories". The check never works so the guard that was supposed to create a placeholder for missing parents never fires
The fix for that line is:
if (!(entry.parent_id in allDirectories))
This affects DB with orphaned entries, which could be my case I guess
It's completely safe to deploy since it doesn't affect files with no orphans. It just prevent DB with orphans entries to fail, so the db can be retrieved
Thanks you so much for your work, that's a really good project !!