Skip to content

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

Closed

Description

@braniqvranik

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}"}

Activity

  1. michaelstingl commented on Apr 10, 2019

    @michaelstingl
    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)

  2. braniqvranik commented on Apr 10, 2019

    @braniqvranik
    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

  3. michaelstingl commented on Apr 10, 2019

    @michaelstingl
    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.

  4. DeepDiver1975 commented on Jun 26, 2026

    @DeepDiver1975
    Contributor

    🤖 Automated issue triage by Claude Code review agent.

    This issue was opened before 2020 and has had no activity since then, so we are
    closing it as outdated. If this is still relevant on a current ownCloud release,
    please reopen (or open a fresh issue) with up-to-date details — thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions