- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.6k
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug
Description
⚠️  This issue respects the following points: ⚠️ 
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
Wrong path passed to disk_free_space()
{
  "reqId": "…",
  "level": 3,
  "time": "2022-02-03T16:24:52+00:00",
  "remoteAddr": "…",
  "user": "…",
  "app": "PHP",
  "method": "GET",
  "url": "/index.php/apps/files/ajax/getstoragestats.php?dir=…",
  "message": "disk_free_space(): No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#381",
  "userAgent": "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0",
  "version": "23.0.1.2",
  "exception": {
    "Exception": "Error",
    "Message": "disk_free_space(): No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#381",
    "Code": 0,
    "Trace": [
      {
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/private/Files/Storage/Local.php",
        "line": 381,
        "function": "disk_free_space"
      },
      {
        "file": "/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php",
        "line": 334,
        "function": "free_space",
        "class": "OC\\Files\\Storage\\Local",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_Helper.php",
        "line": 531,
        "function": "free_space",
        "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
        "type": "->"
      },
      {
        "file": "/var/www/html/apps/files/lib/Helper.php",
        "line": 50,
        "function": "getStorageInfo",
        "class": "OC_Helper",
        "type": "::"
      },
      {
        "file": "/var/www/html/apps/files/lib/Controller/AjaxController.php",
        "line": 47,
        "function": "buildFileStorageStatistics",
        "class": "OCA\\Files\\Helper",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 217,
        "function": "getStorageStats",
        "class": "OCA\\Files\\Controller\\AjaxController",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 126,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/App.php",
        "line": 157,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 302,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1006,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/html/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/html/lib/private/Log/ErrorHandler.php",
    "Line": 92,
    "CustomMessage": "--"
  },
  "id": "…"
}Steps to reproduce
- Navigate into a folder with the browser
- Log is being spamed
Expected behavior
The folder1 is shared. Path accessed in the browser is folder1/folder2
Should be called with:
disk_free_space('/var/www/data/Nextcloud/files/folder1/folder2')
Is called with:
disk_free_space('/var/www/data/Nextcloud/folder2')
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
No response
List of activated Apps
c.nc.cNextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
nokoa77 and MiningPickaxe
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug