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

Internal server error with shared links as user #27322

Closed
Niclas-sol opened this issue Jun 1, 2021 · 4 comments
Closed

Internal server error with shared links as user #27322

Niclas-sol opened this issue Jun 1, 2021 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage needs info

Comments

@Niclas-sol
Copy link

Steps to reproduce

  1. Create non-admin user and let them set a password
  2. Let them upload some files
  3. Create share link
  4. Open the link
  5. Be frustrated by internal server error

Expected behaviour

Shared link works like normal

Actual behaviour

Internal server error

Server configuration detail

Operating system: Linux 5.4.73-1-pve #1 SMP PVE 5.4.73-1 (Mon, 16 Nov 2020 10:52:16 +0100) x86_64

Webserver: nginx/1.18.0 (fpm-fcgi)

Database: mysql 8.0.25

PHP version:

7.4.10
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, cgi-fcgi, pdlib, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, mysqli, pdo_mysql, apc, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Phar, libsmbclient, Zend OPcache

Nextcloud version: 21.0.2 - 21.0.2.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array
(
)

List of activated apps
Enabled:
 - activity: 2.14.3
 - admin_audit: 1.11.0
 - apporder: 0.12.0
 - audioplayer_sonos: 1.2.0
 - calendar: 2.2.2
 - camerarawpreviews: 0.7.11
 - cloud_federation_api: 1.4.0
 - dav: 1.17.1
 - external: 3.8.1
 - facerecognition: 0.8.2
 - federatedfilesharing: 1.11.0
 - federation: 1.11.0
 - files: 1.16.0
 - files_accesscontrol: 1.11.0
 - files_downloadactivity: 1.10.0
 - files_external: 1.12.0
 - files_pdfviewer: 2.1.0
 - files_rightclick: 1.0.0
 - files_sharing: 1.13.1
 - files_trashbin: 1.11.0
 - files_versions: 1.14.0
 - files_videoplayer: 1.10.0
 - flow_notifications: 1.1.0
 - imageconverter: 1.3.1
 - issuetemplate: 0.7.0
 - logreader: 2.6.0
 - lookup_server_connector: 1.9.0
 - maps: 0.1.8
 - metadata: 0.13.0
 - music: 1.2.0
 - notifications: 2.9.0
 - notify_push: 0.1.7
 - oauth2: 1.9.0
 - occweb: 0.0.7
 - password_policy: 1.11.0
 - photos: 1.3.0
 - polls: 1.8.3
 - previewgenerator: 3.1.1
 - privacy: 1.5.0
 - provisioning_api: 1.11.0
 - recommendations: 1.0.0
 - serverinfo: 1.11.0
 - settings: 1.3.0
 - suspicious_login: 4.0.0
 - text: 3.2.0
 - theming: 1.12.0
 - twofactor_backupcodes: 1.10.0
 - updatenotification: 1.11.0
 - video_converter: 1.0.1
 - viewer: 1.5.0
 - weather_status: 1.1.0
 - workflow_ocr: 1.21.0
 - workflowengine: 2.3.0
Disabled:
 - accessibility
 - bruteforcesettings
 - comments
 - contactsinteraction
 - dashboard
 - encryption
 - files_fulltextsearch
 - files_fulltextsearch_tesseract
 - firstrunwizard
 - fulltextsearch
 - fulltextsearch_elasticsearch
 - nextcloud_announcements
 - onlyoffice
 - sharebymail
 - support
 - survey_client
 - systemtags
 - twofactor_nextcloud_notification
 - user_ldap
 - user_status

Configuration (config/config.php)
{
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost",
        "cloud.***.de",
        "cloud.****.de",
        "www.cloud.****.de"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "21.0.2.1",
    "overwrite.cli.url": "https:\/\/www.cloud.*****.de",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "updater.release.channel": "stable",
    "filelocking.enabled": true,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "dbindex": 0,
        "timeout": 1.5
    },
    "default_language": "de",
    "force_locale": "de_DE",
    "default_phone_region": "DE",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "app_install_overwrite": [
        "files_reader",
        "occweb",
        "files_external_gdrive",
        "issuetemplate"
    ],
    "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
    "enable_previews": true,
    "enabledPreviewProviders": [
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\OpenDocument",
        "OC\\Preview\\PDF",
        "OC\\Preview\\MSOffice2003",
        "OC\\Preview\\MSOfficeDoc",
        "OC\\Preview\\PDF",
        "OC\\Preview\\Image",
        "OC\\Preview\\Photoshop",
        "OC\\Preview\\TIFF",
        "OC\\Preview\\SVG",
        "OC\\Preview\\Font",
        "OC\\Preview\\MP3",
        "OC\\Preview\\Movie",
        "OC\\Preview\\MKV",
        "OC\\Preview\\MP4",
        "OC\\Preview\\AVI"
    ],
    "quota_include_external_storage": true,
    "theme": "",
    "loglevel": 2,
    "mail_smtpsecure": "tls",
    "data-fingerprint": "38cf46f187e9cbed0904ced4e800492d",
    "auth.webauthn.enabled": false,
    "preview_max_x": "2048",
    "preview_max_y": "2048",
    "jpeg_quality": "60",
    "music.allowed_radio_src": [
        "http:\/\/*:*",
        "https:\/\/*:*"
    ],
    "music.allowed_radio_hls_src": "https:\/\/*:*",
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***"
}

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

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15

Operating system:

Logs

Web server error log
2021/06/01 02:58:59 [info] 281#281: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:64
2021/06/01 05:50:03 [error] 399#399: *223 access forbidden by rule, client: 79.242.59.133, server: cloud.****.de, request: "GET /data/.ocdata?t=1622526603745 HTTP/2.0", host: "cloud.****.de"
2021/06/01 05:50:08 [error] 399#399: *223 access forbidden by rule, client: 79.242.59.133, server: cloud.****.de, request: "GET /data/.ocdata?t=1622526608415 HTTP/2.0", host: "cloud.****.de"
2021/06/01 05:50:11 [error] 399#399: *223 access forbidden by rule, client: 79.242.59.133, server: cloud.****.de, request: "GET /data/.ocdata?t=1622526611584 HTTP/2.0", host: "cloud.****.de"
2021/06/01 05:50:14 [error] 399#399: *223 access forbidden by rule, client: 79.242.59.133, server: cloud.****.de, request: "GET /data/.ocdata?t=1622526614615 HTTP/2.0", host: "cloud.****.de"
2021/06/01 06:04:51 [error] 399#399: *540 access forbidden by rule, client: 79.242.59.133, server: cloud.****.de, request: "GET /data/.ocdata?t=1622527491327 HTTP/2.0", host: "cloud.****.de"
2021/06/01 06:04:54 [error] 399#399: *540 access forbidden by rule, client: 79.242.59.133, server: cloud.****.de, request: "GET /data/.ocdata?t=1622527494077 HTTP/2.0", host: "cloud.****.de"
2021/06/01 06:04:57 [error] 399#399: *540 access forbidden by rule, client: 79.242.59.133, server: cloud.****.de, request: "GET /data/.ocdata?t=1622527497545 HTTP/2.0", host: "cloud.****.de"
2021/06/01 06:04:58 [error] 399#399: *540 access forbidden by rule, client: 79.242.59.133, server: cloud.****.de, request: "GET /data/.ocdata?t=1622527498330 HTTP/2.0", host: "cloud.****.de"
Nextcloud log
{"reqId":"cCOZA1CSg4JCShl5fvKw","level":3,"time":"2021-06-01T09:15:22+00:00","remoteAddr":"194.140.112.37","user":"Natalie","app":"PHP","method":"GET","url":"/index.php/apps/files/ajax/getstoragestats.php?dir=%2F","message":{"Exception":"Error","Message":"Undefined index: owner at /var/www/html/****/nextcloud/apps/files/lib/Helper.php#64","Code":0,"Trace":[{"file":"/var/www/html/****/nextcloud/apps/files/lib/Helper.php","line":64,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: owner","/var/www/html/****/nextcloud/apps/files/lib/Helper.php",64,{"dir":"/","storageInfo":{"free":21356004475,"used":118832005,"total":21474836480,"relative":0.55,"quota":21474836480},"l":{"__class__":"OC\\L10N\\LazyL10N"},"maxUploadFileSize":1073741824,"maxHumanFileSize":"Hochladen (max. 1 GB)"}]},{"file":"/var/www/html/****/nextcloud/apps/files/lib/Controller/AjaxController.php","line":48,"function":"buildFileStorageStatistics","class":"OCA\\Files\\Helper","type":"::","args":["/"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getStorageStats","class":"OCA\\Files\\Controller\\AjaxController","type":"->","args":["/"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\AjaxController"},"getStorageStats"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\AjaxController"},"getStorageStats"]},{"file":"/var/www/html/****/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\AjaxController","getStorageStats",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.ajax.getStorageStats"}]},{"file":"/var/www/html/****/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/ajax/getstoragestats.php"]},{"file":"/var/www/html/****/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/****/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0","version":"21.0.2.1"}
{"reqId":"cCOZA1CSg4JCShl5fvKw","level":3,"time":"2021-06-01T09:15:22+00:00","remoteAddr":"194.140.112.37","user":"Natalie","app":"PHP","method":"GET","url":"/index.php/apps/files/ajax/getstoragestats.php?dir=%2F","message":{"Exception":"Error","Message":"Undefined index: ownerDisplayName at /var/www/html/****/nextcloud/apps/files/lib/Helper.php#65","Code":0,"Trace":[{"file":"/var/www/html/****/nextcloud/apps/files/lib/Helper.php","line":65,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: ownerDisplayName","/var/www/html/****/nextcloud/apps/files/lib/Helper.php",65,{"dir":"/","storageInfo":{"free":21356004475,"used":118832005,"total":21474836480,"relative":0.55,"quota":21474836480},"l":{"__class__":"OC\\L10N\\LazyL10N"},"maxUploadFileSize":1073741824,"maxHumanFileSize":"Hochladen (max. 1 GB)"}]},{"file":"/var/www/html/****/nextcloud/apps/files/lib/Controller/AjaxController.php","line":48,"function":"buildFileStorageStatistics","class":"OCA\\Files\\Helper","type":"::","args":["/"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getStorageStats","class":"OCA\\Files\\Controller\\AjaxController","type":"->","args":["/"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\AjaxController"},"getStorageStats"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\AjaxController"},"getStorageStats"]},{"file":"/var/www/html/****/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\AjaxController","getStorageStats",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.ajax.getStorageStats"}]},{"file":"/var/www/html/****/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/ajax/getstoragestats.php"]},{"file":"/var/www/html/****/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/****/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0","version":"21.0.2.1"}
{"reqId":"cCOZA1CSg4JCShl5fvKw","level":3,"time":"2021-06-01T09:15:22+00:00","remoteAddr":"194.140.112.37","user":"Natalie","app":"PHP","method":"GET","url":"/index.php/apps/files/ajax/getstoragestats.php?dir=%2F","message":{"Exception":"Error","Message":"Undefined index: mountType at /var/www/html/****/nextcloud/apps/files/lib/Helper.php#66","Code":0,"Trace":[{"file":"/var/www/html/****/nextcloud/apps/files/lib/Helper.php","line":66,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: mountType","/var/www/html/****/nextcloud/apps/files/lib/Helper.php",66,{"dir":"/","storageInfo":{"free":21356004475,"used":118832005,"total":21474836480,"relative":0.55,"quota":21474836480},"l":{"__class__":"OC\\L10N\\LazyL10N"},"maxUploadFileSize":1073741824,"maxHumanFileSize":"Hochladen (max. 1 GB)"}]},{"file":"/var/www/html/****/nextcloud/apps/files/lib/Controller/AjaxController.php","line":48,"function":"buildFileStorageStatistics","class":"OCA\\Files\\Helper","type":"::","args":["/"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getStorageStats","class":"OCA\\Files\\Controller\\AjaxController","type":"->","args":["/"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\AjaxController"},"getStorageStats"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\AjaxController"},"getStorageStats"]},{"file":"/var/www/html/****/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\AjaxController","getStorageStats",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.ajax.getStorageStats"}]},{"file":"/var/www/html/****/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/ajax/getstoragestats.php"]},{"file":"/var/www/html/****/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/****/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0","version":"21.0.2.1"}
{"reqId":"cCOZA1CSg4JCShl5fvKw","level":3,"time":"2021-06-01T09:15:22+00:00","remoteAddr":"194.140.112.37","user":"Natalie","app":"PHP","method":"GET","url":"/index.php/apps/files/ajax/getstoragestats.php?dir=%2F","message":{"Exception":"Error","Message":"Undefined index: mountPoint at /var/www/html/****/nextcloud/apps/files/lib/Helper.php#67","Code":0,"Trace":[{"file":"/var/www/html/****/nextcloud/apps/files/lib/Helper.php","line":67,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Undefined index: mountPoint","/var/www/html/****/nextcloud/apps/files/lib/Helper.php",67,{"dir":"/","storageInfo":{"free":21356004475,"used":118832005,"total":21474836480,"relative":0.55,"quota":21474836480},"l":{"__class__":"OC\\L10N\\LazyL10N"},"maxUploadFileSize":1073741824,"maxHumanFileSize":"Hochladen (max. 1 GB)"}]},{"file":"/var/www/html/****/nextcloud/apps/files/lib/Controller/AjaxController.php","line":48,"function":"buildFileStorageStatistics","class":"OCA\\Files\\Helper","type":"::","args":["/"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getStorageStats","class":"OCA\\Files\\Controller\\AjaxController","type":"->","args":["/"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\AjaxController"},"getStorageStats"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\AjaxController"},"getStorageStats"]},{"file":"/var/www/html/****/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\AjaxController","getStorageStats",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.ajax.getStorageStats"}]},{"file":"/var/www/html/****/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/ajax/getstoragestats.php"]},{"file":"/var/www/html/****/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/****/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0","version":"21.0.2.1"}
{"reqId":"Jh7xfQ8GgiWMVT1Gp2sR","level":3,"time":"2021-06-01T09:16:28+00:00","remoteAddr":"194.140.112.37","user":"--","app":"index","method":"GET","url":"/s/BzWcXRb9PBttTtn","message":{"Exception":"Exception","Message":"Call to a member function getFileInfo() on null","Code":0,"Trace":[{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/var/www/html/****/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareController","showShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"token":"BzWcXRb9PBttTtn","_route":"files_sharing.Share.showShare"}]},{"file":"/var/www/html/****/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/s/BzWcXRb9PBttTtn"]},{"file":"/var/www/html/****/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function getFileInfo() on null","Code":0,"Trace":[{"file":"/var/www/html/****/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php","line":77,"function":"getFileInfo","class":"OC\\Files\\Filesystem","type":"::","args":["","ext"]},{"file":"/var/www/html/****/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php","line":107,"function":"getSize","class":"OC\\Files\\Storage\\Wrapper\\Quota","type":"->","args":["files"]},{"file":"/var/www/html/****/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":335,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Quota","type":"->","args":["files/Statistik BiWi Master"]},{"file":"/var/www/html/****/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":335,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Statistik BiWi Master"]},{"file":"/var/www/html/****/nextcloud/apps/files_sharing/lib/Controller/ShareController.php","line":383,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Statistik BiWi Master"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"showShare","class":"OCA\\Files_Sharing\\Controller\\ShareController","type":"->","args":[""]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/var/www/html/****/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/var/www/html/****/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareController","showShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"token":"BzWcXRb9PBttTtn","_route":"files_sharing.Share.showShare"}]},{"file":"/var/www/html/****/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/s/BzWcXRb9PBttTtn"]},{"file":"/var/www/html/****/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/****/nextcloud/lib/private/Files/Filesystem.php","Line":864},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0","version":"21.0.2.1"}
Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
F7iERfYSyyZscmQ:1 GET https://cloud.****.de/s/F7iERfYSyyZscmQ 500

index.js:46 No OC found
Fr @ index.js:46
value @ gettext.js:45
(anonymous) @ l10n.js:3
(anonymous) @ main.js?v=9cf02292-29:1
n @ bootstrap:19
(anonymous) @ main.js?v=9cf02292-29:1
n @ bootstrap:19
(anonymous) @ main.js:1
(anonymous) @ main.js?v=9cf02292-29:1
n @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ main.js?v=9cf02292-29:1
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 3.3.2
globals.js:60 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own.
pe @ globals.js:60
get @ globals.js:91
(anonymous) @ jquery.js:10336
(anonymous) @ jquery.js:28
0 @ jquery.js:14
n @ bootstrap:19
704 @ files_client.js?v=9cf02292-29:1
n @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ files_client.js?v=9cf02292-29:1
globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own.
pe @ globals.js:60
get @ globals.js:91
(anonymous) @ jquery.js:10339
(anonymous) @ jquery.js:28
0 @ jquery.js:14
n @ bootstrap:19
704 @ files_client.js?v=9cf02292-29:1
n @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ files_client.js?v=9cf02292-29:1
globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own.
pe @ globals.js:60
get @ globals.js:91
(anonymous) @ apporder.js?v=9cf02292-29:1
index.js:165 Uncaught TypeError: Cannot read property 'substring' of undefined
at Object.i [as filePath] (index.js:165)
at Module. (viewer.js:23)
at o (bootstrap:63)
at bootstrap:195
at bootstrap:195
i @ index.js:165
(anonymous) @ viewer.js:23
o @ bootstrap:63
(anonymous) @ bootstrap:195
(anonymous) @ bootstrap:195
session-heartbeat.js:97 session heartbeat polling started
globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own.
pe @ globals.js:60
get @ globals.js:91
(anonymous) @ apporder.js?v=9cf02292-29:3
u @ jquery.js:3534
c @ jquery.js:3602
setTimeout (async)
(anonymous) @ jquery.js:3640
l @ jquery.js:3268
fireWith @ jquery.js:3398
fire @ jquery.js:3406
l @ jquery.js:3268
fireWith @ jquery.js:3398
ready @ jquery.js:3878
setTimeout (async)
(anonymous) @ jquery.js:3899
(anonymous) @ jquery.js:28
(anonymous) @ jquery.js:14
n @ bootstrap:19
(anonymous) @ main.js:1
(anonymous) @ main.js?v=9cf02292-29:1
n @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ main.js?v=9cf02292-29:1
DevTools failed to load source map: Could not parse content for https://cloud.****.de/apps/music/dist/webpack.files_music_player.01c3e4dd98a74c33837d.css.map: Unexpected token < in JSON at position 0
DevTools failed to load source map: Could not parse content for https://cloud.****.de/apps/music/dist/webpack.files_music_player.fabf8de3fc97144caf77.js.map: Unexpected token < in JSON at position 0

@Niclas-sol Niclas-sol added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 1, 2021
@szaimen
Copy link
Contributor

szaimen commented Jul 7, 2021

As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen. The latest version can be seen by checking https://nextcloud.com/install/#install-clients and https://nextcloud.com/install/#instructions-server respectively.

@szaimen szaimen closed this as completed Jul 7, 2021
@danxuliu
Copy link
Member

danxuliu commented Sep 20, 2021

I can reproduce the issue in current master with the steps below:

  • Log in to Nextcloud as an admin
  • Create a user
  • Set a quota for that user (for example, 1 GB)
  • Enable quota_include_external_storage, for example, with occ config:system:set quota_include_external_storage --value=true --type boolean
    • Note that you do not need to setup an external storage, only to enable the setting
  • Log in as the user
  • Create a new folder
  • Create a public share for that folder
  • Open the link to the public share

@danxuliu danxuliu reopened this Sep 20, 2021
@szaimen szaimen added 2. developing Work in progress feature: external storage and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Sep 20, 2021
@szaimen
Copy link
Contributor

szaimen commented Jan 23, 2023

Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!

My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!

If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 2. developing Work in progress labels Jan 23, 2023
@Niclas-sol
Copy link
Author

Upgrading to 25.0.3 solved the issue for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage needs info
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants