Skip to content

SSL connection doesn't happen when using login credentials with webdav external storage. #22016

Closed

Description

@SergioBertolinSG

Steps to reproduce

  1. Enable external storage.
  2. Mount webdav external storage using login credentials stored on database, using https.
  3. Login using user which can access that server.
  4. See files view.

Expected behaviour

Folder is correctly mounted.

Actual behaviour

Folder is not mounted.

Tested with accepted certificates and self-signed. Both fails to connect (But doesn't shows red square).

Server configuration

Operating system:
Ubuntu 14.04

Web server:
Apache

Database:
MySQL

PHP version:
5.5.9

ownCloud version: (see ownCloud admin page)
Master branch
{"installed":true,"maintenance":false,"version":"9.0.0.6","versionstring":"9.0 pre alpha","edition":""}

Updated from an older ownCloud or fresh install:
Fresh

The content of config/config.php:


Are you using external storage, if yes which one: local/smb/sftp/...
Yes webdav.

Are you using encryption:
No

Logs

{"reqId":"Gw6Y2yfpFYOsmY6Y\/ci3","remoteAddr":"HIDED_IP","app":"files_external","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"Sabre\\\\HTTP\\\\ClientException: Empty reply from server\",\"Code\":0,\"Trace\":\"#0 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/dav.php(555): OC\\\\Files\\\\Storage\\\\DAV->convertException(Object(Sabre\\\\HTTP\\\\ClientException), '')\\n#1 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(435): OC\\\\Files\\\\Storage\\\\DAV->stat('')\\n#2 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(232): OC\\\\Files\\\\Storage\\\\Common->test(false)\\n#3 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(244): OC_Mount_Config::getBackendStatus('\\\\OC\\\\Files\\\\Stora...', Array, false)\\n#4 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/userglobalstoragescontroller.php(112): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\\StorageConfig))\\n#5 [internal function]: OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController->show(7)\\n#6 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#7 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController), 'show')\\n#8 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController), 'show')\\n#9 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('UserGlobalStora...', 'show', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#10 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#11 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(273): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#12 \\\/opt\\\/owncloud\\\/lib\\\/base.php(865): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#13 \\\/opt\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#14 {main}\",\"File\":\"\\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/dav.php\",\"Line\":795}","level":3,"time":"2016-01-29T12:31:42+00:00"}

Client configuration

browser
Chrome

Activity

  1. added this to the milestone on Jan 29, 2016
  2. SergioBertolinSG commented on Jan 29, 2016

    @SergioBertolinSG
    ContributorAuthor
  3. SergioBertolinSG commented on Feb 1, 2016

    @SergioBertolinSG
    ContributorAuthor

    Happening the same using owncloud as external storage.

  4. PVince81 commented on Feb 15, 2016

    @PVince81
    Contributor

    I guess you probably used the SSL checkbox, I just saw this: #21978 (comment)

    The PR that fixes validation was fixed, can you try again with 9.0beta1 ?

  5. PVince81 commented on Feb 17, 2016

    @PVince81
    Contributor

    Any update, is this still happening ?

  6. SergioBertolinSG commented on Feb 17, 2016

    @SergioBertolinSG
    ContributorAuthor

    Yes, now behaviour is a little different, red background appears, clicking on it appears a pop up saying:

    There was an error with message: Sabre\HTTP\ClientException: Empty reply from server. Do you want to review mount point config in admin settings page?

    Logs:

    {"reqId":"+ql7ujvXn\/AgCqHiGvZr","remoteAddr":"IP","app":"files_external","message":"Empty reply from server","level":3,"time":"2016-02-17T12:05:13+00:00"}
    {"reqId":"+ql7ujvXn\/AgCqHiGvZr","remoteAddr":"IP","app":"files_external","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"Sabre\\\\HTTP\\\\ClientException: Empty reply from server\",\"Code\":1,\"Trace\":\"#0 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/dav.php(555): OC\\\\Files\\\\Storage\\\\DAV->convertException(Object(Sabre\\\\HTTP\\\\ClientException), '')\\n#1 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(429): OC\\\\Files\\\\Storage\\\\DAV->stat('')\\n#2 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(232): OC\\\\Files\\\\Storage\\\\Common->test(false)\\n#3 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(255): OC_Mount_Config::getBackendStatus('\\\\OC\\\\Files\\\\Stora...', Array, false)\\n#4 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(302): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\\StorageConfig))\\n#5 [internal function]: OCA\\\\Files_External\\\\Controller\\\\StoragesController->show(1)\\n#6 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#7 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'show')\\n#8 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'show')\\n#9 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('GlobalStoragesC...', 'show', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#10 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#11 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(273): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#12 \\\/opt\\\/owncloud\\\/lib\\\/base.php(856): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#13 \\\/opt\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#14 {main}\",\"File\":\"\\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/dav.php\",\"Line\":795}","level":3,"time":"2016-02-17T12:05:13+00:00"}
    {"reqId":"vgeh7qOh73RwbOJj+wsk","remoteAddr":"IP","app":"files_external","message":"Empty reply from server","level":3,"time":"2016-02-17T12:05:15+00:00"}
    {"reqId":"vgeh7qOh73RwbOJj+wsk","remoteAddr":"IP","app":"files_external","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"Sabre\\\\HTTP\\\\ClientException: Empty reply from server\",\"Code\":1,\"Trace\":\"#0 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/dav.php(555): OC\\\\Files\\\\Storage\\\\DAV->convertException(Object(Sabre\\\\HTTP\\\\ClientException), '')\\n#1 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(429): OC\\\\Files\\\\Storage\\\\DAV->stat('')\\n#2 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(232): OC\\\\Files\\\\Storage\\\\Common->test(false)\\n#3 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(255): OC_Mount_Config::getBackendStatus('\\\\OC\\\\Files\\\\Stora...', Array, false)\\n#4 \\\/opt\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/globalstoragescontroller.php(178): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\\StorageConfig))\\n#5 [internal function]: OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController->update(1, 'WebDAV', 'dav', 'password::sessi...', Array, Array, Array, Array, 100)\\n#6 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#7 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#8 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#9 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('GlobalStoragesC...', 'update', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#10 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#11 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(273): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#12 \\\/opt\\\/owncloud\\\/lib\\\/base.php(856): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#13 \\\/opt\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#14 {main}\",\"File\":\"\\\/opt\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/dav.php\",\"Line\":795}","level":3,"time":"2016-02-17T12:05:15+00:00"}
    

    Tested with daily master {"installed":true,"maintenance":false,"version":"9.0.0.11","versionstring":"9.0 beta 1","edition":""}

    The https checkbox appears unchecked after going back to the admin page.

  7. PVince81 commented on Feb 17, 2016

    @PVince81
    Contributor

    Are the login credentials valid for this ext storage ? If not, then that dialog would appear.

  8. PVince81 commented on Feb 17, 2016

    @PVince81
    Contributor

    also, probably unrelated to SSL ?

  9. SergioBertolinSG commented on Feb 17, 2016

    @SergioBertolinSG
    ContributorAuthor

    Are the login credentials valid for this ext storage ?

    Yes, they are valid, but still doesn't connect.

  10. SergioBertolinSG commented on Feb 17, 2016

    @SergioBertolinSG
    ContributorAuthor

    also, probably unrelated to SSL ?

    It is related, mounting it without SSL works fine.

  11. PVince81 commented on Feb 17, 2016

    @PVince81
    Contributor

    Ok, thanks for the info. Then there is indeed a bug with SSL + login credentials.

  12. PVince81 commented on Feb 23, 2016

    @PVince81
    Contributor

    @SergioBertolinSG did you manually add "https" in the host field or did you just use the format "host/owncloud/remote.php/webdav" ?

  13. 14 remaining items

  14. SergioBertolinSG commented on Mar 2, 2016

    @SergioBertolinSG
    ContributorAuthor

    Still happening on 9.0.0rc1.

  15. PVince81 commented on Mar 2, 2016

    @PVince81
    Contributor

    @SergioBertolinSG please work with @LukasReschke so he get reproduce the issue.

  16. LukasReschke commented on Mar 2, 2016

    @LukasReschke
    Contributor

    Yes. Proper reproduction steps are required here. Server host etc. everything.

  17. SergioBertolinSG commented on Mar 2, 2016

    @SergioBertolinSG
    ContributorAuthor

    Like the original steps,just more detailed

    serverA is a oC 9.0.0rc1
    serverB is a oC 9.0.0rc1 with trustworthy certificate
    both servers have admin user with same password.

    1. Enable external storage app in serverA.
    2. Mount serverB as webdav external storage using login credentials stored on database in serverA, use https and enable the checkbox. (Happens also with stored in session).
    3. Login in serverA using admin.
    4. See files view. Check webdav mountpoint folder.
  18. SergioBertolinSG commented on Mar 2, 2016

    @SergioBertolinSG
    ContributorAuthor

    OK, tested with a webdav server different than owncloud, using ssl. Working fine in 9.0rc1.

  19. lock commented on Aug 5, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  20. locked as resolved and limited conversation to collaborators on Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions