mirror of
https://github.com/nextcloud/server.git
synced 2025-05-02 13:00:42 +00:00
![]() When using S3 as primary storage, transferring ownership with the `--move` option fail with the following error: `SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '8-45b963397aa40d4a0063e0d85e4fe7a1' for key 'fs_storage_path_hash'` The `--move` option moves the entire home folder from one account to another. The error means that the move failed because the destination folder already exist in `oc_filecache`. - With S3 as primary storage, folders only exists as entries in `oc_filecache`. - With S3 as primary storage, `moveFromStorage(...)` only moves the cache entry, as nothing needs to be moved on disk. This cache move does not delete potentially pre-existing destination folder. - With Local storage, `moveFromStorage(...)` calls `rename(...)` which delete pre-existing folder. - `transfer(...)`: |
||
---|---|---|
.. | ||
AppData | ||
Cache | ||
Config | ||
Mount | ||
Node | ||
ObjectStore | ||
Search | ||
SimpleFS | ||
Storage | ||
Stream | ||
Type | ||
Utils | ||
EtagTest.php | ||
FileInfoTest.php | ||
FilenameValidatorTest.php | ||
FilesystemTest.php | ||
PathVerificationTest.php | ||
ViewTest.php |