nextcloud-desktop.git
3 years agoUse asserts to check validity of pointers in private impl of fileproviderdomainmanager
Claudio Cambra [Sat, 11 Mar 2023 13:06:20 +0000 (14:06 +0100)]
Use asserts to check validity of pointers in private impl of fileproviderdomainmanager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse specific functions for creating/converting domain identifiers and account Ids...
Claudio Cambra [Sat, 11 Mar 2023 13:05:51 +0000 (14:05 +0100)]
Use specific functions for creating/converting domain identifiers and account Ids, prevent mismatches

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoPrevent removal of FileProvider domains on app shutdown
Claudio Cambra [Sat, 11 Mar 2023 12:51:38 +0000 (13:51 +0100)]
Prevent removal of FileProvider domains on app shutdown

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnsure we wait for check for existing file provider domains to finish before rushing...
Claudio Cambra [Sat, 11 Mar 2023 12:51:12 +0000 (13:51 +0100)]
Ensure we wait for check for existing file provider domains to finish before rushing into creation of new domains in FileProviderDomainManager

This stops the needless deletion and the recreation of FP domains

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnsure file provider domain pointers are correctly retained and released in fileprovi...
Claudio Cambra [Sat, 11 Mar 2023 12:34:16 +0000 (13:34 +0100)]
Ensure file provider domain pointers are correctly retained and released in fileproviderdomainmanager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnsure FileProvider gets set up after accountmanager has set up accounts
Claudio Cambra [Sat, 11 Mar 2023 11:43:37 +0000 (12:43 +0100)]
Ensure FileProvider gets set up after accountmanager has set up accounts

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoModernise Obj-C property notation in fileproviderdomainmanager
Claudio Cambra [Sat, 11 Mar 2023 11:41:24 +0000 (12:41 +0100)]
Modernise Obj-C property notation in fileproviderdomainmanager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix variable related warnings in FileProvider
Claudio Cambra [Sat, 11 Mar 2023 11:35:12 +0000 (12:35 +0100)]
Fix variable related warnings in FileProvider

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoImprove reliability of modifyItem in FileProviderExtension
Claudio Cambra [Sat, 11 Mar 2023 02:41:20 +0000 (03:41 +0100)]
Improve reliability of modifyItem in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDon't compare un-persisted properties of NextcloudItemMetadataTable in isInSameRemote...
Claudio Cambra [Sat, 11 Mar 2023 01:30:54 +0000 (02:30 +0100)]
Don't compare un-persisted properties of NextcloudItemMetadataTable in isInSameRemoteState, fixing constant updating of metadatas

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSprinkle constness over C++ and Obj-C pointers
Claudio Cambra [Sat, 11 Mar 2023 00:56:20 +0000 (01:56 +0100)]
Sprinkle constness over C++ and Obj-C pointers

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix compatibility with latest NextloudKit version TypeClassFile in NKCommon
Claudio Cambra [Sat, 11 Mar 2023 00:44:25 +0000 (01:44 +0100)]
Fix compatibility with latest NextloudKit version TypeClassFile in NKCommon

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse const auto in FileProviderDomainManager
Claudio Cambra [Sat, 11 Mar 2023 00:30:08 +0000 (01:30 +0100)]
Use const auto in FileProviderDomainManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoBe efficient in working set enumeration by only enumerating for new items or changes...
Claudio Cambra [Sat, 11 Mar 2023 00:26:11 +0000 (01:26 +0100)]
Be efficient in working set enumeration by only enumerating for new items or changes folders that have been explored already

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse push notifications to notify file provider of changes
Claudio Cambra [Sat, 11 Mar 2023 00:25:05 +0000 (01:25 +0100)]
Use push notifications to notify file provider of changes

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse consistent account ID type in fileproviderdomainmanager
Claudio Cambra [Sat, 11 Mar 2023 00:23:13 +0000 (01:23 +0100)]
Use consistent account ID type in fileproviderdomainmanager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnsure no metadatas get deleted when updating metadata for scanned directory in FileP...
Claudio Cambra [Fri, 10 Mar 2023 23:31:47 +0000 (00:31 +0100)]
Ensure no metadatas get deleted when updating metadata for scanned directory in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoScan for existing file provider domains on FileProviderDomainManager init
Claudio Cambra [Fri, 10 Mar 2023 23:30:52 +0000 (00:30 +0100)]
Scan for existing file provider domains on FileProviderDomainManager init

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd method to private FileProviderDomainManager to signal enumerator
Claudio Cambra [Fri, 10 Mar 2023 23:00:25 +0000 (00:00 +0100)]
Add method to private FileProviderDomainManager to signal enumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoStop wiping file provider domains on desktop client close/open
Claudio Cambra [Fri, 10 Mar 2023 22:59:20 +0000 (23:59 +0100)]
Stop wiping file provider domains on desktop client close/open

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse std::unique_ptr for private implementation class of FileProviderDomainManager
Claudio Cambra [Fri, 10 Mar 2023 22:58:20 +0000 (23:58 +0100)]
Use std::unique_ptr for private implementation class of FileProviderDomainManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse default constructor for private FileProviderDomainManager implementation class
Claudio Cambra [Fri, 10 Mar 2023 22:53:00 +0000 (23:53 +0100)]
Use default constructor for private FileProviderDomainManager implementation class

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRemove workarounds no longer needed for Realm thread crashing
Claudio Cambra [Fri, 10 Mar 2023 21:25:28 +0000 (22:25 +0100)]
Remove workarounds no longer needed for Realm thread crashing

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoReplace full depth scanning of changes on every enumerate changes request with smarte...
Claudio Cambra [Fri, 10 Mar 2023 21:11:05 +0000 (22:11 +0100)]
Replace full depth scanning of changes on every enumerate changes request with smarter recursive algorithm

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix root cause of threading issues with metadata updates
Claudio Cambra [Fri, 10 Mar 2023 21:09:19 +0000 (22:09 +0100)]
Fix root cause of threading issues with metadata updates

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix erroneous deletion of metadata when updating serverUrl subject directory
Claudio Cambra [Fri, 10 Mar 2023 17:51:14 +0000 (18:51 +0100)]
Fix erroneous deletion of metadata when updating serverUrl subject directory

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFurther improve/cleanup/simplify file provider extension init
Claudio Cambra [Fri, 10 Mar 2023 17:37:00 +0000 (18:37 +0100)]
Further improve/cleanup/simplify file provider extension init

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix crash on thread clash with Realm when enumerating changes
Claudio Cambra [Fri, 10 Mar 2023 17:36:25 +0000 (18:36 +0100)]
Fix crash on thread clash with Realm when enumerating changes

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix return of updated and deleted metadatas in database manager
Claudio Cambra [Fri, 10 Mar 2023 17:36:01 +0000 (18:36 +0100)]
Fix return of updated and deleted metadatas in database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnsure metadata handled in FileProviderItem is copy, preventing crashing due to acces...
Claudio Cambra [Fri, 10 Mar 2023 17:01:39 +0000 (18:01 +0100)]
Ensure metadata handled in FileProviderItem is copy, preventing crashing due to accessing live table from different thread

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoCreate sortedDirectoryMetadatas convenience method in database manager
Claudio Cambra [Fri, 10 Mar 2023 12:34:44 +0000 (13:34 +0100)]
Create sortedDirectoryMetadatas convenience method in database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to get child directories from database manager
Claudio Cambra [Fri, 10 Mar 2023 12:32:23 +0000 (13:32 +0100)]
Add convenience method to get child directories from database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnsure we don't saturate the server with propfind requests
Claudio Cambra [Fri, 10 Mar 2023 02:42:30 +0000 (03:42 +0100)]
Ensure we don't saturate the server with propfind requests

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly report pagination for working set enumeration
Claudio Cambra [Fri, 10 Mar 2023 02:21:01 +0000 (03:21 +0100)]
Properly report pagination for working set enumeration

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnumerate all known folders as workingSet enumeration
Claudio Cambra [Fri, 10 Mar 2023 01:09:24 +0000 (02:09 +0100)]
Enumerate all known folders as workingSet enumeration

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRewrite working set handling to make it match the server remote, per Apple recommendation
Claudio Cambra [Fri, 10 Mar 2023 00:16:23 +0000 (01:16 +0100)]
Rewrite working set handling to make it match the server remote, per Apple recommendation

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd method to get all item metadatas in database manager
Claudio Cambra [Fri, 10 Mar 2023 00:15:53 +0000 (01:15 +0100)]
Add method to get all item metadatas in database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd method to get all directory metadatas in database manager
Claudio Cambra [Fri, 10 Mar 2023 00:06:18 +0000 (01:06 +0100)]
Add method to get all directory metadatas in database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoBetter handle initial set up of the file provider extension
Claudio Cambra [Thu, 9 Mar 2023 18:00:35 +0000 (19:00 +0100)]
Better handle initial set up of the file provider extension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoHandle 404 errors from readFileOrFolder as special deletion case in FileProviderEnume...
Claudio Cambra [Thu, 9 Mar 2023 15:51:31 +0000 (16:51 +0100)]
Handle 404 errors from readFileOrFolder as special deletion case in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse ocIds for directory metadata deletion, prevent deletion if no such directory...
Claudio Cambra [Thu, 9 Mar 2023 15:47:27 +0000 (16:47 +0100)]
Use ocIds for directory metadata deletion, prevent deletion if no such directory found in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse ocIds for item metadata deletion in NextcloudFilesDatabaseManager
Claudio Cambra [Thu, 9 Mar 2023 15:45:28 +0000 (16:45 +0100)]
Use ocIds for item metadata deletion in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoImprove handling of nil values in CompleteChangesObserver
Claudio Cambra [Thu, 9 Mar 2023 14:45:38 +0000 (15:45 +0100)]
Improve handling of nil values in CompleteChangesObserver

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnumerate changed in the working set
Claudio Cambra [Thu, 9 Mar 2023 13:51:13 +0000 (14:51 +0100)]
Enumerate changed in the working set

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRefactor change enumeration completion into separate static function
Claudio Cambra [Thu, 9 Mar 2023 12:27:57 +0000 (13:27 +0100)]
Refactor change enumeration completion into separate static function

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDelete new updated items that are now E2EE
Claudio Cambra [Thu, 9 Mar 2023 12:16:32 +0000 (13:16 +0100)]
Delete new updated items that are now E2EE

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnumerate changes for normal serverUrls in FileProviderEnumerator
Claudio Cambra [Thu, 9 Mar 2023 12:14:03 +0000 (13:14 +0100)]
Enumerate changes for normal serverUrls in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRename completeObserver to completeEnumerationObserver
Claudio Cambra [Thu, 9 Mar 2023 11:54:18 +0000 (12:54 +0100)]
Rename completeObserver to completeEnumerationObserver

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix the serverUrl used to fetch database item metadatas on enumerateItems
Claudio Cambra [Thu, 9 Mar 2023 01:09:39 +0000 (02:09 +0100)]
Fix the serverUrl used to fetch database item metadatas on enumerateItems

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix accidental purge of all metadatas caused by trying to call updateDirectoryMetadat...
Claudio Cambra [Thu, 9 Mar 2023 00:29:38 +0000 (01:29 +0100)]
Fix accidental purge of all metadatas caused by trying to call updateDirectoryMetadatasFromItemMetadatas when reading the root container

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRefactor readFileOrFolder to be more adaptible to enumerating items or changes
Claudio Cambra [Thu, 9 Mar 2023 00:19:00 +0000 (01:19 +0100)]
Refactor readFileOrFolder to be more adaptible to enumerating items or changes

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly delete directory and all children when updating folder metadatas in database...
Claudio Cambra [Wed, 8 Mar 2023 22:27:45 +0000 (23:27 +0100)]
Properly delete directory and all children when updating folder metadatas in database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAlso report all new, updated, and deleted metadatas from updateItemMetadatas in Nextc...
Claudio Cambra [Wed, 8 Mar 2023 16:57:43 +0000 (17:57 +0100)]
Also report all new, updated, and deleted metadatas from updateItemMetadatas in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoReport new item metadatas and updated item metadatas in processItemMetadatasToUpdate...
Claudio Cambra [Wed, 8 Mar 2023 16:51:59 +0000 (17:51 +0100)]
Report new item metadatas and updated item metadatas in processItemMetadatasToUpdate in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoReport deletedItemMetadatas in processItemMetadatasToDelete in NextcloudFilesDatabase...
Claudio Cambra [Wed, 8 Mar 2023 16:43:55 +0000 (17:43 +0100)]
Report deletedItemMetadatas in processItemMetadatasToDelete in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly handle readFileOrFolder of file vs folder
Claudio Cambra [Tue, 7 Mar 2023 23:21:23 +0000 (00:21 +0100)]
Properly handle readFileOrFolder of file vs folder

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoKeep track of additional details about enumerating item in the FileProviderEnumerator
Claudio Cambra [Tue, 7 Mar 2023 22:30:50 +0000 (23:30 +0100)]
Keep track of additional details about enumerating item in the FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnumerate materialised items when system requests working set
Claudio Cambra [Tue, 7 Mar 2023 21:40:52 +0000 (22:40 +0100)]
Enumerate materialised items when system requests working set

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to get local file metadatas for an account in NextcloudItemMet...
Claudio Cambra [Tue, 7 Mar 2023 21:06:46 +0000 (22:06 +0100)]
Add convenience method to get local file metadatas for an account in NextcloudItemMetadataTable form in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to get all local file metadatas for an account in NextcloudFil...
Claudio Cambra [Tue, 7 Mar 2023 20:48:08 +0000 (21:48 +0100)]
Add convenience method to get all local file metadatas for an account in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly report progress for download and upload operations in FileProviderExtension
Claudio Cambra [Tue, 7 Mar 2023 19:19:10 +0000 (20:19 +0100)]
Properly report progress for download and upload operations in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd a Progress extension with convenience methods for copying progress data from...
Claudio Cambra [Tue, 7 Mar 2023 19:18:23 +0000 (20:18 +0100)]
Add a Progress extension with convenience methods for copying progress data from one progress object to another

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoPrevent creation of symbolic link items in FileProviderExtension
Claudio Cambra [Tue, 7 Mar 2023 12:59:18 +0000 (13:59 +0100)]
Prevent creation of symbolic link items in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoHandle version item requests in fetchContents of FileProviderExtension per the docume...
Claudio Cambra [Tue, 7 Mar 2023 12:47:01 +0000 (13:47 +0100)]
Handle version item requests in fetchContents of FileProviderExtension per the documentation

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoClarify current use of sync anchor in FileProviderEnumerator
Claudio Cambra [Tue, 7 Mar 2023 00:40:17 +0000 (01:40 +0100)]
Clarify current use of sync anchor in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoCorrectly fulfill delete item requests on server
Claudio Cambra [Tue, 7 Mar 2023 00:15:09 +0000 (01:15 +0100)]
Correctly fulfill delete item requests on server

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSupport reparenting file provider items correctly
Claudio Cambra [Mon, 6 Mar 2023 18:11:34 +0000 (19:11 +0100)]
Support reparenting file provider items correctly

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly handle several modify item fields at once in FileProviderExtension
Claudio Cambra [Mon, 6 Mar 2023 17:18:46 +0000 (18:18 +0100)]
Properly handle several modify item fields at once in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoOnly try upload of modified item in FileProviderExtension if that had its contents...
Claudio Cambra [Mon, 6 Mar 2023 15:58:36 +0000 (16:58 +0100)]
Only try upload of modified item in FileProviderExtension if that had its contents changed and we have a valid content url

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoHandle renaming of both files and folders correctly in FileProviderExtension
Claudio Cambra [Mon, 6 Mar 2023 15:18:49 +0000 (16:18 +0100)]
Handle renaming of both files and folders correctly in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to rename file item metadatas in database
Claudio Cambra [Mon, 6 Mar 2023 14:52:58 +0000 (15:52 +0100)]
Add convenience method to rename file item metadatas in database

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly handle renaming folders in FileProviderExtension modifyItem
Claudio Cambra [Mon, 27 Feb 2023 22:04:36 +0000 (23:04 +0100)]
Properly handle renaming folders in FileProviderExtension modifyItem

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd methods to rename directory metadata and propagate modifications to all children...
Claudio Cambra [Mon, 27 Feb 2023 22:03:50 +0000 (23:03 +0100)]
Add methods to rename directory metadata and propagate modifications to all children in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd methods to delete metadata types in NextcloudFilesDatabaseManager
Claudio Cambra [Mon, 27 Feb 2023 17:24:12 +0000 (18:24 +0100)]
Add methods to delete metadata types in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoExtension can now upload modifications to items on the server
Claudio Cambra [Mon, 27 Feb 2023 16:31:35 +0000 (17:31 +0100)]
Extension can now upload modifications to items on the server

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd ability for extension to create items correctly on the server
Claudio Cambra [Tue, 21 Feb 2023 13:59:10 +0000 (14:59 +0100)]
Add ability for extension to create items correctly on the server

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDon't unnecessarily fetch item metadata when fetching contents
Claudio Cambra [Mon, 20 Feb 2023 12:42:28 +0000 (13:42 +0100)]
Don't unnecessarily fetch item metadata when fetching contents

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUnprivate direcotryMetadataFromItemMetadata in database manager
Claudio Cambra [Mon, 20 Feb 2023 12:37:10 +0000 (13:37 +0100)]
Unprivate direcotryMetadataFromItemMetadata in database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to add directory metadata to database
Claudio Cambra [Mon, 20 Feb 2023 12:36:27 +0000 (13:36 +0100)]
Add convenience method to add directory metadata to database

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd working file content fetching
Claudio Cambra [Thu, 16 Feb 2023 19:38:41 +0000 (20:38 +0100)]
Add working file content fetching

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to add local file metadata from item metadata to database
Claudio Cambra [Thu, 16 Feb 2023 14:43:44 +0000 (15:43 +0100)]
Add convenience method to add local file metadata from item metadata to database

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to add item metadata status
Claudio Cambra [Thu, 16 Feb 2023 13:44:16 +0000 (14:44 +0100)]
Add convenience method to add item metadata status

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to update item metadata status
Claudio Cambra [Tue, 14 Feb 2023 12:48:08 +0000 (13:48 +0100)]
Add convenience method to update item metadata status

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience properties to NextcloudItemMetadataTable
Claudio Cambra [Tue, 14 Feb 2023 12:09:07 +0000 (13:09 +0100)]
Add convenience properties to NextcloudItemMetadataTable

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoStop using NextcloudKit.shared and NKCommon.shared, use specific NextcloudKit instanc...
Claudio Cambra [Thu, 2 Feb 2023 19:13:35 +0000 (20:13 +0100)]
Stop using NextcloudKit.shared and NKCommon.shared, use specific NextcloudKit instance instead to prevent clashing between different FileProvider domains

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSwitch to NCKit work/unsharedify-nckit branch
Claudio Cambra [Thu, 2 Feb 2023 19:12:39 +0000 (20:12 +0100)]
Switch to NCKit work/unsharedify-nckit branch

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix Realm crashes when trying to delete certain objects
Claudio Cambra [Thu, 2 Feb 2023 19:12:03 +0000 (20:12 +0100)]
Fix Realm crashes when trying to delete certain objects

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly handle errors when trying to read server url in FileProviderEnumerator
Claudio Cambra [Thu, 2 Feb 2023 13:18:46 +0000 (14:18 +0100)]
Properly handle errors when trying to read server url in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRemove setting connection status from fileproviderdomainmanager, this will be handled...
Claudio Cambra [Thu, 2 Feb 2023 12:11:48 +0000 (13:11 +0100)]
Remove setting connection status from fileproviderdomainmanager, this will be handled by the domain

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix scanning of child directories in FileProviderEnumerator
Claudio Cambra [Wed, 1 Feb 2023 18:35:08 +0000 (19:35 +0100)]
Fix scanning of child directories in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDon't unnecessarily fail to get serverUrl for enumerated item in FileProviderEnumerat...
Claudio Cambra [Wed, 1 Feb 2023 17:24:23 +0000 (18:24 +0100)]
Don't unnecessarily fail to get serverUrl for enumerated item in FileProviderEnumerator when this can be acquired straight from the itemMetadata

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoOnly reimport entire file provider domain if there have been no recorded files when...
Claudio Cambra [Wed, 1 Feb 2023 17:20:44 +0000 (18:20 +0100)]
Only reimport entire file provider domain if there have been no recorded files when ncAccount is configured

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to check if any file metadatas have been stored for account...
Claudio Cambra [Wed, 1 Feb 2023 17:16:46 +0000 (18:16 +0100)]
Add convenience method to check if any file metadatas have been stored for account in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDon't unnecessarily fail to provide parentItemIdentifier in NextcloudFileProviderFile...
Claudio Cambra [Wed, 1 Feb 2023 17:14:33 +0000 (18:14 +0100)]
Don't unnecessarily fail to provide parentItemIdentifier in NextcloudFileProviderFilesUtils when we can get the root container straight from the item metadata in question

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd ability for FileProviderDomainManager to wipe domains
Claudio Cambra [Wed, 1 Feb 2023 16:21:35 +0000 (17:21 +0100)]
Add ability for FileProviderDomainManager to wipe domains

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSwitch to develop branch of NextcloudKit
Claudio Cambra [Mon, 30 Jan 2023 19:33:10 +0000 (20:33 +0100)]
Switch to develop branch of NextcloudKit

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoImprove and fix enumerator signalling after initial account setup in FileProviderExte...
Claudio Cambra [Mon, 30 Jan 2023 19:32:35 +0000 (20:32 +0100)]
Improve and fix enumerator signalling after initial account setup in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix URL path composition for utility methods in NextcloudFileProviderFilesUtils
Claudio Cambra [Mon, 30 Jan 2023 19:29:58 +0000 (20:29 +0100)]
Fix URL path composition for utility methods in NextcloudFileProviderFilesUtils

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix try/catch indentation in NextcloudFileDatabaseManager
Claudio Cambra [Mon, 30 Jan 2023 19:29:15 +0000 (20:29 +0100)]
Fix try/catch indentation in NextcloudFileDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix NextcloudItemMetadataTable status query type
Claudio Cambra [Mon, 30 Jan 2023 19:27:37 +0000 (20:27 +0100)]
Fix NextcloudItemMetadataTable status query type

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>