nextcloud / nextcloud/documentserver_community
documentserver_community not working with external storage?
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 142
- Forks
- 32
- Avg merge
- 23h 13m
- Merged PRs (30d)
- 15
Description
Is the documentserver_community not working with external storage?
When I edit a document, I get the following error in the logs:
[cron] Error: Error: Call to a member function getUID() on null at <<closure>>
0. /var/www/nextcloud/lib/private/Files/Filesystem.php line 907
OC\Files\View->getOwner("/user/Dokument.docx")
1. /var/www/nextcloud/apps/files_versions/lib/Storage.php line 101
OC\Files\Filesystem::getOwner("/user/Dokument.docx")
2. /var/www/nextcloud/apps/files_versions/lib/Storage.php line 182
OCA\Files_Versions\Storage::getUidAndFilename("/user/Dokument.docx")
3. /var/www/nextcloud/apps/files_versions/lib/Hooks.php line 62
OCA\Files_Versions\Storage::store("/user/Dokument.docx")
4. /var/www/nextcloud/lib/private/legacy/hook.php line 111
OCA\Files_Versions\Hooks::write_hook({run: true,path: "/user/Dokument.docx"})
5. /var/www/nextcloud/lib/private/Files/View.php line 1275
OC_Hook::emit("OC_Filesystem", "write", {run: true,path: "/user/Dokument.docx"})
6. /var/www/nextcloud/lib/private/Files/View.php line 1145
OC\Files\View->runHooks(["update","write"], "/user/Dokument.docx")
7. /var/www/nextcloud/lib/private/Files/View.php line 694
OC\Files\View->basicOperation("file_put_contents", "/user/files/user/Dokument.docx", ["update","write"], null)
8. /var/www/nextcloud/lib/private/Files/Node/File.php line 71
OC\Files\View->file_put_contents("/user/files/user/Dokument.docx", null)
9. /var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 163
OC\Files\Node\File->putContent(null)
10. /var/www/nextcloud/apps/documentserver_community/lib/LocalAppData.php line 100
OCA\DocumentServer\Document\DocumentStore->OCA\DocumentServer\Document\{closure}("*** sensitive parameters replaced ***")
11. /var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 164
OCA\DocumentServer\LocalAppData->getReadWriteLocalPath(OC\Files\SimpleFS\SimpleFolder {}, Closure {})
12. /var/www/nextcloud/apps/documentserver_community/lib/Document/SaveHandler.php line 56
OCA\DocumentServer\Document\DocumentStore->saveChanges(47579700, [OCA\DocumentSer ... }])
13. /var/www/nextcloud/apps/documentserver_community/lib/BackgroundJob/Cleanup.php line 69
OCA\DocumentServer\Document\SaveHandler->flushChanges(47579700)
14. /var/www/nextcloud/lib/public/BackgroundJob/Job.php line 79
OCA\DocumentServer\BackgroundJob\Cleanup->run(null)
15. /var/www/nextcloud/cron.php line 125
OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
at 2020-04-02T15:20:06+02:00
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the reported failure from apps/documentserver_community/lib/Document/DocumentStore.php:163-164 through LocalAppData.php:100 and the files_versions storage calls at Filesystem.php:907 and Storage.php:101. Reproduce editing a document on external storage, then determine whether the save and cleanup path completes without the getUID() on null error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100