text
text copied to clipboard
Embedded images not loaded inside iOS Notes app
Describe the bug Attachments no longer opening on iOS app, with error 500.
To Reproduce Steps to reproduce the behavior:
- Open note with attachments.
Expected behavior Attachments render as expected.
Screenshots
Server details:
- Nextcloud version: 27.1.6
- PHP Version: 8.2.7
- Database: MySQL
Client details:
- OS: iOS, NextCloud app 5.2.0.2
- Device: iPhone 14
Logs
Nextcloud log (data/nextcloud.log)
[index] Error: Exception: Call to a member function getUID() on null in file '/var/www/html/nextcloud/apps/text/lib/Service/AttachmentService.php' line 434 at <
- /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
- /var/www/html/nextcloud/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
- /var/www/html/nextcloud/lib/base.php line 1068 OC\Route\Router->match()
- /var/www/html/nextcloud/index.php line 38 OC::handleRequest()
Caused by:
Error: Call to a member function getUID() on null at <
- /var/www/html/nextcloud/apps/text/lib/Service/AttachmentService.php line 226 OCA\Text\Service\AttachmentService->getAttachmentDirectoryForFile()
- /var/www/html/nextcloud/apps/text/lib/Controller/AttachmentController.php line 101 OCA\Text\Service\AttachmentService->getAttachmentList()
- /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Text\Controller\AttachmentController->getAttachmentList()
- /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController()
- /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
- /var/www/html/nextcloud/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
- /var/www/html/nextcloud/lib/base.php line 1068 OC\Route\Router->match()
- /var/www/html/nextcloud/index.php line 38 OC::handleRequest()
POST /index.php/apps/text/attachments
Likely related to the changes from 3 months ago: https://github.com/nextcloud/text/commits/main/lib/Service/AttachmentService.php
Unsure if client or server issue, hence cross-posting the bug. Apologies if incorrect.
Thanks.