orgzly / orgzly-android

Outliner for taking notes and managing to-do lists
https://www.orgzly.com
GNU General Public License v3.0
2.7k stars 304 forks source link

[Bug] Loading issue that have files with the same name in two or more repositories #634

Open NiceFeather opened 5 years ago

NiceFeather commented 5 years ago

I have a webDAV repo and working fine, but I can not load a local directory repo via browsing, the position of the repo is actually at "/storage/emulated/0/Backup/Data/".

Device: Samsung s7 edge OS: Android 8.0 Orgzly: 1.8.2

SmartSelect_20191114-163929_Orgzly SmartSelect_20191114-164407_Orgzly

nevenz commented 5 years ago

I can not load a local directory repo via browsing, the position of the repo is actually at "/storage/emulated/0/Backup/Data/".

What do you mean you cannot? Do you get an error when you click the "Browse" button, or does the directory not show up when browsing?

Or are you expecting a different URI? That URI looks like a valid content provider URI to me (which is preferable to use over "file:" URI and might have to become the only option once app starts targetting Android 10).

NiceFeather commented 5 years ago

What do you mean you cannot? Do you get an error when you click the "Browse" button, or does the directory not show up when browsing?

Yes, there was no any error while browsing directory, but returned the content as the screenshot attached and failed loading.

BTW, I have confirmed that some org files are located in"/storage/emulated/0/Backup/Data/"

nevenz commented 5 years ago

Yes, there was no any error while browsing directory, but returned the content as the screenshot attached and failed loading.

What's the error message?

Note that you cannot currently have files with the same name in two or more repositories that you're using.

NiceFeather commented 5 years ago

So sorry heard that :) Thanks for your note, that is the case. In order to do the test, I copied some files with the same name as webDAV and placed it locally. there was without any error messages, org just cannot be loaded and displayed.

But this why? i mean have files with the same name in two or more repositories

nevenz commented 5 years ago

But this why? i mean have files with the same name in two or more repositories

Notebook name currently has to be unique in the database. That needs fixing. #225 is another good reason to do it.