-
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
OCP\Files\NotFoundException if Shared File is in a Subdir #103
Comments
I can verify this bug on my setup too (NC 12.0.0.29, App v1.12.33). This happens with shared read-only folders as well, even that opening using Collabora Online makes to sense on a read-only share (except its any sort of readonly mode then). So basically this bug breaks the download of all supported mimeTypes of this app. Probably a bit related with #83. Should be considered as Stacktrace:
|
I tried this, and could open the folder and then the file inside with an external, unauthenticated user just fine. NC is 12.0.0, app is 1.12.33. Not sure what could be the difference... it was a local test installation, though. |
I do not get a FileNotFoundException, but it's not working either. I had a quick look at the code, it seems that the "dir" parameter is not added to the public page request: And it seems that publicPage in the DocumentController is not able to handle folders at all, or am I misinterpreting the code? EDIT: This seems to be a duplicate of #12 |
Steps to reproduce
Expected behaviour
Document opens and can be viewed and edited
Actual behaviour
Internal Server Error
The Nextcloud Log contains OCP\Files\NotFoundException and the filenames and paths in the log suggest that the information about the subfolder got lost.
Note: If the toplevel dir of the share contains a file with identical name, this one is opened instead (despite url and everything suggests the file in the subfolder would be edited)
Server configuration
Server configuration
Operating system: Linux puck 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.25-1~bpo8+1 (2017-05-19) x86_64
Web server: Apache/2.4.10 (Debian) (apache2handler)
Database: pgsql PostgreSQL 9.6.3 on x86_64-pc-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit
PHP version: 5.6.30-0+deb8u1
Modules loaded: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, mbstring, session, posix, Reflection, standard, shmop, SimpleXML, soap, sockets, Phar, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, apache2handler, PDO, apcu, curl, gd, imagick, intl, json, ldap, mcrypt, pdo_pgsql, pgsql, readline, mhash, apc, Zend OPcache
Nextcloud version: 12.0.0 - 12.0.0.29
List of activated apps:
App list
The content of config/config.php:
Config report
Are you using external storage, if yes which one: \OC\Files\Storage\Local
Are you using encryption: no
Are you using an external user-backend, if yes which one: ActiveDirectory
Client configuration
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36
Operating system: Linux puck 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.25-1~bpo8+1 (2017-05-19) x86_64
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log
``` OCP\Files\NotFoundException: /***USER***/files/***SHARE***/A.ods /var/www/nextcloud/lib/private/Files/Node/Folder.php - line 133: OC\Files\Node\Root->get('/***USER***/files/Tes...') /var/www/nextcloud/apps/richdocuments/lib/Controller/DocumentController.php - line 177: OC\Files\Node\Folder->get('A.ods') [internal function] OCA\Richdocuments\Controller\DocumentController->publicPage('***REMOVED SENSITIVE VALUE***', 'A.ods') /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array) /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Richdocuments\Controller\DocumentController), 'publicPage') /var/www/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Richdocuments\Controller\DocumentController), 'publicPage') /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('DocumentControl...', 'publicPage', Object(OC\AppFramework\DependencyInjection\DIContainer), Array) [internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array) /var/www/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array) /var/www/nextcloud/lib/base.php - line 1000: OC\Route\Router->match('/apps/richdocum...') /var/www/nextcloud/index.php - line 40: OC handleRequest() {main} ```The text was updated successfully, but these errors were encountered: