0
Re-shared external storage (SMB) not always rescanned for recipients
Source: nextcloud/server#63253 · opened by @pdostal
Steps to reproduce 1. User A adds an SMB external storage mount. 2. User A shares a folder from that mount directly with User B. 3. Something changes on the SMB server outside of Nextcloud. 4. User A browses the folder → gets rescanned correctly. 5. User B browses the re-share → does not get rescanned (stale listing). Root cause SharedStorage::getWatcher() decides between a real Watcher and a NullWatcher purely from string metadata on the share's cache entry: getNodeCacheEntry() returns null, or a CacheEntry missing the storage_string_id key, for several legitimate code paths: • DefaultShareProvider::getSharesBy() / getShareById() / getSharesByPath() never populate a node cache entry at all (no filecache/storages join). • Even DefaultShareProvider::_getSharedWith() (used for the normal getMountsForUser/getMountsForPath mount setup) can come back without storage_string_id if the source node wasn't in filecache yet at share-fetch time. Whenever tha…
No pledges yet. Be the first to back this.
Comments
Similar requests
Write correct modification times on external storage (files_external)
3 votes · 0 comments
Locale for external SMB Storage is hardcoded to en_US.UTF-8
0 votes · 0 comments
Completely disable client sync for external storage on the Nextcloud server
8 votes · 0 comments
File scanner does not detect endless loops when scanning external storage
3 votes · 0 comments
Ability to disable trash bin on External Storage (or have separate trash bin on the external storage)
36 votes · 0 comments
No comments yet.