Skip to content
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

Owncloud application crashes when using FTP, SFTP or WebDav Ext.storage #2459

Open
braniqvranik opened this issue Feb 23, 2019 · 3 comments
Open
Labels

Comments

@braniqvranik
Copy link

braniqvranik commented Feb 23, 2019

Actual behaviour

The app was really good until I changed data sources. When setting your OC to use local filesystem (which is not recommended for security reason), this mobile app was perfect. When I've added NGINX webdav or Apache Webdav storage, the application crashes and is unusable. You click on 3-4 dirs and it crashes, my Samsung J7 closes the app. To the developers: Can you please replicate this issue & fix?

Expected behaviour

  • Application must not crash

Steps to reproduce

  1. Setup FTP, SFTP or WebDav External storage

  2. Browse it via Web - OK

  3. Browse it via OC Mobile application. - NOK
    Mobile application crashes.

  4. Remove all external storages

  5. Enable Local storage inside config/config.php with 'files_external_allow_create_new_local' => 'true', param.

  6. Attach external "Local storage"

  7. Browse via Web - OK

  8. Browse via OC Mobile application
    Mobile application no longer crashes.

Can this problem be reproduced with the official owncloud server? No, since Local storage option needs to be added into config.php file.
(url: https://demo.owncloud.org, user: test, password: test)

Environment data

Android version: 8.1.0

Device model: Samsung J7

Stock or customized system:
Stock

ownCloud app version:
ownCloud for Android 2.9.3

ownCloud server version:
ownCloud 10.0.10 (stable)

Logs

Web server error log

N/A

ownCloud log (data/owncloud.log)

{"reqId":"XGCA8tATP2lCDI79zevWSAAAAAk","level":3,"time":"February 10, 2019 19:52:19","remoteAddr":"10.10.10.2","user":"admin","app":"no app in context","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/4?testOnly=false","message":"Exception: {\"Exception\":\"Sabre\HTTP\ClientException\",\"Message\":\"Peer's Certificate issuer is not recognized.\",\"Code\":60,\"Trace\":\"
#0 /var/www/html/owncloud/lib/composer/sabre/http/lib/Client.php(103): Sabre\HTTP\Client->doRequest(Object(Sabre\HTTP\Request))
#1 /var/www/html/owncloud/lib/composer/sabre/dav/lib/DAV/Client.php(231): Sabre\HTTP\Client->send(Object(Sabre\HTTP\Request))
#2 /var/www/html/owncloud/lib/private/Files/Storage/DAV.php(259): Sabre\DAV\Client->propFind('https://gdisk.b...', Array)
#3 /var/www/html/owncloud/lib/private/Files/Storage/DAV.php(579): OC\Files\Storage\DAV->propfind('')
#4 /var/www/html/owncloud/lib/private/Files/Storage/Common.php(440): OC\Files\Storage\DAV->stat('')
#5 /var/www/html/owncloud/lib/private/Files/External/LegacyUtil.php(205): OC\Files\Storage\Common->test(false, false)
#6 /var/www/html/owncloud/apps/files_external/lib/Controller/StoragesController.php(254): OC\Files\External\LegacyUtil::getBackendStatus('\\OC\\Files\\Stora...', Array, false, false)
#7 /var/www/html/owncloud/apps/files_external/lib/Controller/UserGlobalStoragesController.php(121): OCA\Files_External\Controller\StoragesController->updateStorageStatus(Object(OC\Files\External\StorageConfig), false)
#8 /var/www/html/owncloud/lib/private/AppFramework/Http/Dispatcher.php(153): OCA\Files_External\Controller\UserGlobalStoragesController->show(4, false)
#9 /var/www/html/owncloud/lib/private/AppFramework/Http/Dispatcher.php(85): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\UserGlobalStoragesController), 'show')
#10 /var/www/html/owncloud/lib/private/AppFramework/App.php(100): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\UserGlobalStoragesController), 'show')
#11 /var/www/html/owncloud/lib/private/AppFramework/Routing/RouteActionHandler.php(46): OC\AppFramework\App::main('OCA\\Files_Exter...', 'show', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
#12 /var/www/html/owncloud/lib/private/Route/Router.php(342): OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
#13 /var/www/html/owncloud/lib/base.php(909): OC\Route\Router->match('/apps/files_ext...')
#14 /var/www/html/owncloud/index.php(54): OC::handleRequest()
#15 {main}\",\"File\":\"/var/www/html/owncloud/lib/composer/sabre/http/lib/Client.php\",\"Line\":356}"}
@michaelstingl
Copy link
Contributor

@braniqvranik The request in owncloud.log isn't one triggered by the Android app. The reqId should have the X-REQUEST-ID format. (see #2055)

@braniqvranik
Copy link
Author

Well, I was not able to find the log showing the issue, maybe the insufficient debug level. Have you tried to simulate this issue on your own ? @michaelstingl

@michaelstingl
Copy link
Contributor

Have you tried to simulate this issue on your own ?

@braniqvranik Not yet. @jesmrec wanted to have a look.

BTW next version of the app will have a debug log that can be enabled by users. (#2439) It will show you the X-REQUEST-ID of the error in the app, then you can grep for it in the owncloud.log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants