-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying a file and renaming it in the same directory #2092
Comments
Do you see any error logged in the nextcloud log file about that? |
Warning core Controller OC\Core\Controller\PreviewController::getPreviewByFileId executed 3984 queries. 2022-04-28T11:22:12+0200
Fatal webdav OCP\Lock\LockedException: "COOL Weekly/COOLWeekly68 (copy).odt" is locked 2022-04-28T11:22:11+0200
Warning core Controller OC\Core\Controller\PreviewController::getPreviewByFileId executed 3964 queries. 2022-04-28T11:21:41+0200
Warning recommendations Controller OCA\Recommendations\Controller\RecommendationController::index executed 139 queries. 2022-04-28T11:21:29+0200
Warning richdocuments Controller OCA\Richdocuments\Controller\WopiController::putFile executed 158 queries. |
[core] Warning: Controller OC\Core\Controller\PreviewController::getPreviewByFileId executed 3984 queries.
GET /nextcloud/index.php/core/preview?fileId=191657&c=4d889ffd00314071fef2e8e0b224a8d7&x=250&y=250&forceIcon=0&a=0
from 185.151.169.3 by pedro.silva at 2022-04-28T09:22:12+00:00 |
Interesting, looking at the screencast again it looks like it might be related to the file being locked while generating the preview. I still cannot reproduce, but could you maybe check if renaming works fine after waiting for the preview of the new file being loaded? |
From the code it could happen that especially if the convert-to endpoint responds slow, a stream is kept open and therefore blocking obtaining the exclusive lock that would be required for the rename. We could just always use a local tmp copy but might have some performance impact on larger files in richdocuments/lib/Preview/Office.php Lines 75 to 80 in 2e38da7
|
From the COOL call minutes: Perhaps good to copy the file to a temp file when generating the preview.
|
[to do: add description , test with other mime types]
Peek.2022-03-10.11-38.mp4
The text was updated successfully, but these errors were encountered: