Error when dragging a folder into a shared folder

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • docker :lscr.io/linuxserver/nextcloud
    • host : openmediavault 7.7.6-1 with compose plugin
  • Web server and version (e.g, Apache 2.4.25):
    • nginx
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx proxy manager v2.12.3
  • PHP version (e.g, 8.3):
    • 8.3.19
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • Since today
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker image
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I get an error when I drag and drop a folder into a shared folder via a share link

Steps to replicate it (hint: details matter!):

  1. create a shared folder
  2. open the shared folder via the link
  3. try to drop a folder inside

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

3 errors inlogs

first
{
  "reqId": "iZvFKYEaQnTYv8pcavjt",
  "level": 3,
  "time": "2025-05-02T17:58:30+00:00",
  "remoteAddr": "192.168.10.254",
  "user": false,
  "app": "PHP",
  "method": "PROPFIND",
  "url": "/public.php/dav/files",
  "message": "Undefined array key 0 at /config/www/nextcloud/apps/dav/appinfo/v2/publicremote.php#81",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36",
  "version": "31.0.4.1",
  "data": {
    "app": "PHP"
  },
  "id": "68150c2437642"
}
second
{
  "reqId": "iZvFKYEaQnTYv8pcavjt",
  "level": 3,
  "time": "2025-05-02T17:58:30+00:00",
  "remoteAddr": "192.168.10.254",
  "user": false,
  "app": "no app in context",
  "method": "PROPFIND",
  "url": "/public.php/dav/files",
  "message": "Exception thrown: Sabre\\DAV\\Exception\\NotFound",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36",
  "version": "31.0.4.1",
  "exception": {
    "Exception": "Sabre\\DAV\\Exception\\NotFound",
    "Message": "",
    "Code": 0,
    "Trace": [
      {
        "file": "/config/www/nextcloud/apps/dav/lib/Connector/Sabre/PublicAuth.php",
        "line": 112,
        "function": "getToken",
        "class": "OCA\\DAV\\Connector\\Sabre\\PublicAuth",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/config/www/nextcloud/apps/dav/lib/Connector/Sabre/PublicAuth.php",
        "line": 77,
        "function": "checkToken",
        "class": "OCA\\DAV\\Connector\\Sabre\\PublicAuth",
        "type": "->"
      },
      {
        "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
        "line": 179,
        "function": "check",
        "class": "OCA\\DAV\\Connector\\Sabre\\PublicAuth",
        "type": "->"
      },
      {
        "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
        "line": 135,
        "function": "check",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "beforeMethod",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 456,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
        "line": 49,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/config/www/nextcloud/apps/dav/appinfo/v2/publicremote.php",
        "line": 151,
        "function": "start",
        "class": "OCA\\DAV\\Connector\\Sabre\\Server",
        "type": "->"
      },
      {
        "file": "/app/www/public/public.php",
        "line": 82,
        "args": [
          "/config/www/nextcloud/apps/dav/appinfo/v2/publicremote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/config/www/nextcloud/apps/dav/lib/Connector/Sabre/PublicAuth.php",
    "Line": 99,
    "message": "",
    "exception": [],
    "CustomMessage": "Exception thrown: Sabre\\DAV\\Exception\\NotFound"
  },
  "id": "68150c243763d"
}
third
{
  "reqId": "iZvFKYEaQnTYv8pcavjt",
  "level": 3,
  "time": "2025-05-02T17:58:30+00:00",
  "remoteAddr": "192.168.10.254",
  "user": false,
  "app": "webdav",
  "method": "PROPFIND",
  "url": "/public.php/dav/files",
  "message": "Sabre\\DAV\\Exception\\NotFound: ",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36",
  "version": "31.0.4.1",
  "exception": {
    "Exception": "Sabre\\DAV\\Exception\\ServiceUnavailable",
    "Message": "Sabre\\DAV\\Exception\\NotFound: ",
    "Code": 0,
    "Trace": [
      {
        "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
        "line": 179,
        "function": "check",
        "class": "OCA\\DAV\\Connector\\Sabre\\PublicAuth",
        "type": "->"
      },
      {
        "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php",
        "line": 135,
        "function": "check",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "beforeMethod",
        "class": "Sabre\\DAV\\Auth\\Plugin",
        "type": "->"
      },
      {
        "file": "/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 456,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
        "line": 49,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/config/www/nextcloud/apps/dav/appinfo/v2/publicremote.php",
        "line": 151,
        "function": "start",
        "class": "OCA\\DAV\\Connector\\Sabre\\Server",
        "type": "->"
      },
      {
        "file": "/app/www/public/public.php",
        "line": 82,
        "args": [
          "/config/www/nextcloud/apps/dav/appinfo/v2/publicremote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/config/www/nextcloud/apps/dav/lib/Connector/Sabre/PublicAuth.php",
    "Line": 84,
    "message": "Sabre\\DAV\\Exception\\NotFound: ",
    "exception": [],
    "CustomMessage": "Sabre\\DAV\\Exception\\NotFound: "
  },
  "id": "68150c243762d"
}

My php config :

; Edit this file to override php.ini directives

upload_max_filesize = 200G
post_max_size = 200G
memory_limit = 8G
request_terminate_timeout = 3600

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

xhr-request.js:126 
            
            
           PROPFIND https://domaine.com/public.php/dav/files/DSR4ect9RNyaRfs/Bobine 404 (Not Found)
(anonyme) @ xhr-request.js:126
(anonyme) @ dav-Co9y-hkg.mjs:624
(anonyme) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
de @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
exists @ index.js:2
Wt @ DropServiceUtils.ts:108
a @ DropService.ts:104
as @ DropService.ts:124
await in as
onDrop @ DragAndDropNotice.vue:138
await in onDrop
cn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
(anonyme) @ vue.runtime.esm.js:7500
xhr-request.js:126 
            
            
           PROPFIND https://domaine.com/public.php/dav/files 503 (Service Unavailable)
(anonyme) @ xhr-request.js:126
(anonyme) @ dav-Co9y-hkg.mjs:624
(anonyme) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
de @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
i @ index.js:2
i @ index.js:2
(anonyme) @ index.js:2
u @ index.js:2
i @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
(anonyme) @ index.js:2
createDirectory @ index.js:2
Wt @ DropServiceUtils.ts:111
await in Wt
a @ DropService.ts:104
as @ DropService.ts:124
await in as
onDrop @ DragAndDropNotice.vue:138
await in onDrop
cn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
(anonyme) @ vue.runtime.esm.js:7500
DropService.ts:109 


[ERROR] files:  {app: 'files', level: 2, error: Error: Invalid response: 503 
    at tt (https://domaine.com/dist/core-common.js?v=b15ab…, absolutePath: '/files/DSR4ect9RNyaRfs/Bobine', directory: Mt}absolutePath: "/files/DSR4ect9RNyaRfs/Bobine"app: "files"directory: Mt {_contents: Array(10), name: 'Bobine', lastModifiedDate: Fri May 02 2025 19:58:29 GMT+0200 (heure d’été d’Europe centrale), webkitRelativePath: '', type: 'httpd/unix-directory'}error: Error: Invalid response: 503 
    at tt (https://domaine.com/dist/core-common.js?v=b15ab323-43:1:2470898)
    at nt (https://domaine.com/dist/core-common.js?v=b15ab323-43:1:2471138)
    at https://domaine.com/dist/core-common.js?v=b15ab323-43:1:2474904level: 2[[Prototype]]: Object
log @ index.mjs:54
error @ index.mjs:72
a @ DropService.ts:109
await in a
as @ DropService.ts:124
await in as
onDrop @ DragAndDropNotice.vue:138
await in onDrop
cn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
(anonyme) @ vue.runtime.esm.js:7500

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "version": "31.0.4.1",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance_window_start": 6,
        "default_language": "fr",
        "default_phone_region": "FR",
        "default_locale": "fr_FR",
        "default_timezone": "Europe\/Paris",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "geoblocker",
            "files_rightclick",
            "twofactor_email",
            "documentserver_community"
        ],
        "filelocking.enabled": true,
        "upgrade.disable-web": true,
        "defaultapp": "",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\PDF",
            "OC\\Preview\\Movie"
        ],
        "loglevel": 2,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": ***REMOVED SENSITIVE VALUE***,
            "timeout": 0,
            "read_timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        }
    }
}

The problem also occurs when I connect directly to the container without the reverse proxy. I’ve tried it on several browsers. The error only occurs when dragging and dropping a folder. It does not occur when using the upload button (for files and folders) and it does not occur when I drag and drop a file list.

I found the same error here

We have exactly the same error. Seems that it was introduced with the “31” version.

Same error in 31.0.5

hey guys…

are you referring to this issue perhaps?

It seems to be the same problem.
I didn’t seen it on the web.

1 Like

that’s no problem at all and can happen… so I’m gonna close that topic here in favor for the discussion going on at github.

Cheerio