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

Cannot list content of a shared-by-link folder #8492

Closed
asirinelli opened this issue Feb 21, 2018 · 3 comments
Closed

Cannot list content of a shared-by-link folder #8492

asirinelli opened this issue Feb 21, 2018 · 3 comments

Comments

@asirinelli
Copy link

Steps to reproduce

  1. Select a folder to be shared
  2. Select the public link sharing option or the sharing by email option
  3. Open the generated URL

Expected behaviour

You should be able to see the list of files in the shared folder

Actual behaviour

Nothing is shown on the screen. However, the download link is working and the ZIP file contains all the expected files.

The browser show the following error in the dev console:

  • Error 500 on the /public.php/webdav/ request

The nextcloud server shows the following error in the log:

{"reqId":"fT1NRO43Z5rH5obrxW9Q","level":3,"time":"2018-02-21T22:19:59+00:00","remoteAddr":"2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx","user":"--","app":"public","method":"PROPFIND","url":"\/public.php\/webdav\/","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"App not installed: \",\"Code\":0,\"Trace\":\"#0 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/public.php\",\"Line\":72}","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/62.0.3202.89 Safari\/537.36","version":"13.0.0.14"}

Server configuration

Operating system: Debian 9.3

Web server: Caddy

Database: MySQL

PHP version: 7.0.19

Nextcloud version: 13.0.0

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 12

Where did you install Nextcloud from: From release (previous releases)

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.6.1
  - admin_audit: 1.3.0
  - bruteforcesettings: 1.0.3
  - calendar: 1.6.0
  - comments: 1.3.0
  - contacts: 2.1.0
  - dav: 1.4.6
  - dicomviewer: 0.0.2
  - end_to_end_encryption: 1.0.2
  - federatedfilesharing: 1.3.1
  - federation: 1.3.0
  - files: 1.8.0
  - files_fulltextsearch: 0.6.0
  - files_pdfviewer: 1.2.0
  - files_retention: 1.2.0
  - files_sharing: 1.5.0
  - files_texteditor: 2.5.1
  - files_trashbin: 1.3.0
  - files_versions: 1.6.0
  - files_videoplayer: 1.2.0
  - firstrunwizard: 2.2.1
  - fulltextsearch: 0.6.1
  - fulltextsearch_elasticsearch: 0.6.1
  - gallery: 18.0.0
  - groupfolders: 1.2.0
  - impersonate: 1.0.2
  - logreader: 2.0.0
  - lookup_server_connector: 1.1.0
  - nextcloud_announcements: 1.2.0
  - notes: 2.3.2
  - notifications: 2.1.2
  - oauth2: 1.1.0
  - passman: 2.1.4
  - password_policy: 1.3.0
  - phonetrack: 0.2.0
  - provisioning_api: 1.3.0
  - richdocuments: 2.0.3
  - serverinfo: 1.3.0
  - sharebymail: 1.3.0
  - spreed: 3.1.0
  - systemtags: 1.3.0
  - theming: 1.4.1
  - twofactor_backupcodes: 1.2.3
  - twofactor_u2f: 1.5.1
  - updatenotification: 1.3.0
  - workflowengine: 1.3.0
Disabled:
  - encryption
  - files_external
  - survey_client
  - user_external
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "trusted_domains": [
            "xxxx.xxxxxx.com",
            "xxx.xxxxxx.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/xxx.xxxxxx.com",
        "dbtype": "mysql",
        "version": "13.0.0.14",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "theme": "",
        "loglevel": 2,
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpsecure": "tls"
    }
}

Are you using external storage, if yes which one: No
Are you using encryption: No

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

Client configuration

Browser: Firefox, chromium

Operating system: Debian

Logs

Web server error log

Web server error log
21/Feb/2018:22:10:48 +0000 [ERROR 502 /remote.php/webdav] http2: stream closed

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"fT1NRO43Z5rH5obrxW9Q","level":3,"time":"2018-02-21T22:19:59+00:00","remoteAddr":"2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx","user":"--","app":"public","method":"PROPFIND","url":"\/public.php\/webdav\/","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"App not installed: \",\"Code\":0,\"Trace\":\"#0 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/public.php\",\"Line\":72}","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/62.0.3202.89 Safari\/537.36","version":"13.0.0.14"}

Browser log

Browser log
PROPFIND 
XHR 
https://xxx.xxxxxx.com/public.php/webdav/ [HTTP/2.0 500 Internal Server Error 1318 ms]
@asirinelli
Copy link
Author

There is also the following error in the browser console (before the error 500 reported previously):

Error 401 on https://xxx.xxxxxx.com/index.php/apps/richdocuments/ajax/settings.php
with the following answer:

{"message":"Current user is not logged in"}

@asirinelli
Copy link
Author

This was at the end a bug in my Caddy webserver configurate. The rewrite public.php/* -> public.php?* was not configured properly.
Sorry for the noise.

@virtualdxs
Copy link

For future users in the same boat:

    rewrite {
            r ^/nextcloud/public.php/(.*)$
            to /nextcloud/public.php?{1}
    }

Replace /nextcloud/ with your Nextcloud path.

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

No branches or pull requests

2 participants