Bug 427095

Summary: Elisa search not working if music library is in a NTFS partition
Product: [Applications] Elisa Reporter: David Abreu <adabreug94>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: REPORTED ---    
Severity: normal CC: adabreug94, nate
Priority: NOR    
Version First Reported In: 20.08.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=417267
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Abreu 2020-09-29 02:30:17 UTC
SUMMARY
Elisa search of files is not working properly next time it is open if was previously open before mounting the NTFS partition where the music library is located.

Let's say we have an NTFS partition called DATA which contains a folder with the music library itself, in, lets say DATA/Music. 
In a initial setup, the DATA partition is mounted and Elisa is set to search for audio files in this path (/media/user/DATA/Music). The search utility doesn't work properly, only enabling the forced index option is the database, or whatever it use, created successfully and the search properly working.

After a system reboot, user logout and re-login or Elisa restart, it still work properly, unless the mentioned DATA partition is unmounted at some point before executing Elisa again. 

STEPS TO REPRODUCE

1. Mount an NTFS partition with a Music library folder. Configure Elisa to index the folder or whole partition with the forced option enabled. Let Elisa finish indexing. Play some Music, all fine? Close Elisa.

2. Unmount the NTFS partition, reopen Elisa, see it still holds the library database records (albums, artists, songs, etc.), obviously at this point Elisa isn't able to open a file. Close Elisa again.

3. Mount again the NTFS partition, open Elisa one more time, try to search for or play some Music. Elisa index has been reset. Elisa settings are in a rollback state.

OBSERVED RESULT
If this happens, if Elisa is opened while the DATA partition isn't mounted, after having indexed the files in there, then the index doesn't work anymore, even if the DATA partition is mounted back again and Elisa reopened. Also, the settings are somehow rollback to default values.


EXPECTED RESULT
Elisa should be able to warn about the unavailability of the filesystem in which the music library is supposed to exist. Also recovering from this kind of errors after remounting or reaccessing the partition, resource, etc is desirable.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 David Abreu 2020-09-29 02:32:17 UTC
Linux/KDE Plasma: KDE Neon 5.19 User Edition
Comment 2 Nate Graham 2020-09-29 18:32:03 UTC
Huh, I thought we had fixed this.