Files on external storage can't be opened in 9.0.0 #23145

Closed
thejabok opened this Issue Mar 11, 2016 · 1 comment

Projects

None yet

4 participants

@thejabok

Steps to reproduce

  1. Activate external storage app
  2. Add external storage: home directory of user2 on instance OC1 as folder "user2" for user1 on OC1 using "owncloud" as external storage and specifying URL of OC1 with "secure https" plus credentials of user2
  3. Open Web GUI of user1 on OC1

Expected behaviour

user1 can navigate into folder "user2" and access all folders and files of user2

Actual behaviour

user1 can navigate through folder structure of user2 but files won't open and can't be downloaded

Server configuration

Operating system: Debian 8

Web server: Apache2

Database: MySQL

PHP version: 5.6.14-0+deb8u1

ownCloud version: 9.0.0 (stable)

Updated from an older ownCloud or fresh install: Upgraded from 8.2.2

Where did you install ownCloud from: Manually as described in 9.0 server documentation

Signing status (ownCloud 9.0 and above):

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
    - INVALID_HASH
        - .htaccess
        - lib/private/setup.php

Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [.htaccess] => Array
                        (
                            [expected] => f40e7ca19cd76ff922ccd164e38f4d73806f66170cafa202fb470be225c813b4b242f4321da8a01bef1329e300acf3d137dbcbff058c501f166a2619031fc651
                            [current] => b00eac79b2db577d523f56b683399505294611d99fbc9d23c2776ad8254213cddf4ee50a1314a944f07e9aed6b69aeeb02f390b1a8daacbddccef4f996f21316
                        )

                    [lib/private/setup.php] => Array
                        (
                            [expected] => 32930461d746dad2513a53a4962b25cc53c2575b0df7ebb8f59e4c7f2297301db1cf031969708c3605ee2b8515d65521e3a2d3b31facc12158bbc0c8dbc60cff
                            [current] => f6b73a92c6edb1ba28c3d7014ba6f14e9512e7a0fb92a1e29836d1c4d0880c3166994daa4588d070d974838a1860f86fa8d2fcdcfe7835c4a09f9d295a18d71c
                        )

                )

        )

)

List of activated apps:

  - activity: 2.2.1
  - calendar: true
  - comments: 0.2
  - contacts: true
  - dav: 0.1.5
  - federatedfilesharing: 0.1.0
  - federation: 0.0.4
  - files: 1.4.4
  - files_external: 0.5.2
  - files_pdfviewer: 0.8
  - files_sharing: 0.9.1
  - files_texteditor: 2.1
  - files_trashbin: 0.8.0
  - files_versions: 1.2.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - gallery: 14.5.0
  - systemtags: 0.2

The content of config/config.php:

{
    "system": {
        "instanceid": "oc8aakgw49m2",
        "passwordsalt": "xxx",
        "secret": "xxx",
        "trusted_domains": [
            "localhost",
            "xxx",
            "xxx",
            "xxx",
            "xxx"
        ],
        "datadirectory": "\/var\/www\/owncloud\/data",
        "overwrite.cli.url": "https:\/\/xxx\/owncloud",
        "dbtype": "mysql",
        "version": "9.0.0.19",
        "dbname": "owncloud",
        "dbhost": "127.0.0.1",
        "dbtableprefix": "oc_",
        "dbuser": "xxx",
        "dbpassword": "xxx",
        "logtimezone": "Europe\/Berlin",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_from_address": "owncloud",
        "mail_domain": "xxx",
        "mail_smtphost": "xxx",
        "mail_smtpsecure": "ssl",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "xxx",
        "mail_smtppassword": "xxx",
        "mail_smtptimeout": 30,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379,
            "timeout": 0
        },
        "asset-pipeline.enabled": false,
        "appstore.experimental.enabled": true,
        "maintenance": false,
        "loglevel": 2,
        "theme": "",
        "ldapIgnoreNamingRules": false
    }
}

Are you using external storage, if yes which one: owncloud, same instance, added as URL

Are you using encryption: no

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Firefox 45.0

Operating system: Windows 7

Logs

Web server error log

[Fri Mar 11 12:09:04.109119 2016] [:error] [pid 15558] [client 212.4.225.145:44322] PHP Fatal error:  Call to a member function getStatusCode() on null in /var/www/owncloud/lib/private/files/storage/dav.php on line 354

ownCloud log (data/owncloud.log)

Error   PHP Call to a member function getStatusCode() on null at /var/www/owncloud/lib/private/files/storage/dav.php#354    2016-03-11T11:09:04+00:00

This error floods both the owncloud and apache-error logs

@thejabok thejabok changed the title from Files on external storage can't be opened to Files on external storage can't be opened in 9.0.0 Mar 11, 2016
@LukasReschke LukasReschke added a commit that referenced this issue Mar 12, 2016
@LukasReschke LukasReschke Verify the getResponse returns a ResponseInterface
Can also return `null` as per PHPDoc. Regression added by 97f5c09

Fixes #23145
d43051f
@thejabok

Problem solved. The issue was SSL-related. I had to import my own server's certificate as described here: http://ownclouden.blogspot.de/2014/11/owncloud-https-external-mount.html

@thejabok thejabok closed this Mar 13, 2016
@LukasReschke LukasReschke added a commit that referenced this issue Mar 14, 2016
@LukasReschke LukasReschke Verify the getResponse returns a ResponseInterface
Can also return `null` as per PHPDoc. Regression added by 97f5c09

Fixes #23145
3a73f97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment