Skip to content

[Bug]: drag & drop upload error "Target folder does not exist any more" #59258

@andrea-janna

Description

@andrea-janna

⚠️ This issue respects the following points: ⚠️

Bug description

I have the same issue reported here #59197.
The issue should have been fixed but I installed version 33.0.1 from scratch and the problem is still here.

Steps to reproduce

  1. create a new folder via web browser
  2. upload via drag&drop a local folder containing at least one file to the folder created at step 1.

Nextcloud will report the errors "Some files could not be uploaded" and "Target folder does not exist any more".
Nothing is uploaded in the folder created at step 1.
An empty folder named after the local folder is created in Nextcloud root folder.

Expected behavior

The local folder and its content should be uploaded inside the remote Nextcloud folder.

Nextcloud Server version

33

Operating system

RHEL/CentOS

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

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

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.unipd.it"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.1.2",
        "overwrite.cli.url": "https:\/\/nextcloud.unipd.it",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance_window_start": 0,
        "maintenance": false,
        "allowed_admin_ranges": [
            "127.0.0.1\/8",
            "192.168.0.0\/16",
            "147.162.0.0\/16"
        ],
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "user_oidc": {
            "login_label": "DPSS \/ UniPd SSO"
        },
        "loglevel": 2,
        "defaultapp": "files",
        "skeletondirectory": "",
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": true,
        "mail_smtpport": "587",
        "mail_sendmailmode": "smtp",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": false,
                "verify_peer": true,
                "verify_peer_name": true
            }
        },
        "remember_login_cookie_lifetime": 0,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - activity: 6.0.0-dev.0
  - admin_audit: 1.23.0
  - app_api: 33.0.0
  - bruteforcesettings: 6.0.0-dev.0
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contactsinteraction: 1.14.1
  - dashboard: 7.13.0
  - dav: 1.36.0
  - federatedfilesharing: 1.23.0
  - federation: 1.23.0
  - files: 2.5.0
  - files_antivirus: 6.2.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_pdfviewer: 6.0.0-dev.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - firstrunwizard: 6.0.0-dev.0
  - groupfolders: 21.0.6
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - nextcloud_announcements: 5.0.0
  - notifications: 6.0.0
  - notify_push: 1.3.1
  - oauth2: 1.21.0
  - password_policy: 5.0.0-dev.0
  - photos: 6.0.0-dev.0
  - privacy: 5.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - recommendations: 6.0.0-dev.0
  - related_resources: 4.0.0-dev.0
  - richdocuments: 10.1.2
  - serverinfo: 5.0.0-dev.0
  - settings: 1.16.0
  - sharebymail: 1.23.0
  - support: 5.0.0
  - survey_client: 5.0.0-dev.0
  - systemtags: 1.23.0
  - text: 7.0.0-dev.3
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0-dev.0
  - updatenotification: 1.23.0
  - user_oidc: 8.7.0
  - user_status: 1.13.0
  - viewer: 6.0.0-dev.0
  - weather_status: 1.13.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - encryption: 2.21.0
  - files_external: 1.25.1
  - suspicious_login: 11.0.0-dev.0
  - testing: 1.23.0
  - twofactor_nextcloud_notification: 7.0.0
  - user_ldap: 1.24.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

nothing is logged

Additional info

Browser console:

xhr-request.js:128 PROPFIND https://nextcloud.unipd.it/remote.php/dav/files/unipd.30263059/1 404 (Not Found)
(anonymous) @ xhr-request.js:128
(anonymous) @ dav.mjs:202
(anonymous) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
te @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
exists @ index.js:2
be @ DropServiceUtils.ts:120
a @ DropService.ts:111
ke @ DropService.ts:131
await in ke
onDrop @ DragAndDropNotice.vue:139
await in onDrop
sn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
push.85471.Mr.i._wrapper @ vue.runtime.esm.js:7500
xhr-request.js:128 PROPFIND https://nextcloud.unipd.it/remote.php/dav/files/unipd.30263059/1 404 (Not Found)
(anonymous) @ xhr-request.js:128
(anonymous) @ dav.mjs:202
(anonymous) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
te @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
i @ index.js:2
(anonymous) @ index.js:2
d @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
createDirectory @ index.js:2
be @ DropServiceUtils.ts:123
await in be
a @ DropService.ts:111
ke @ DropService.ts:131
await in ke
onDrop @ DragAndDropNotice.vue:139
await in onDrop
sn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
push.85471.Mr.i._wrapper @ vue.runtime.esm.js:7500
DropService.ts:132 PUT https://nextcloud.unipd.it/remote.php/dav/files/unipd.30263059/New%20folder/1/1.txt 404 (Not Found)
(anonymous) @ xhr.js:198
xhr @ xhr.js:15
f @ dispatchRequest.js:51
Promise.then
_request @ Axios.js:163
request @ Axios.js:40
(anonymous) @ bind.js:12
B @ index-DPkUyJ8g.mjs:65
i @ index-DPkUyJ8g.mjs:950
(anonymous) @ index.js:378
Z @ index.js:252
ee @ index.js:290
start @ index.js:430
start @ index-DPkUyJ8g.mjs:622
ke @ DropService.ts:132
await in ke
onDrop @ DragAndDropNotice.vue:139
await in onDrop
sn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
push.85471.Mr.i._wrapper @ vue.runtime.esm.js:7500
DropService.ts:132 [ERROR] @nextcloud/upload: Failed uploading 1.txt {app: '@nextcloud/upload', uid: 'unipd.30263059', level: 2, error: AxiosError: Request failed with status code 404
at r (https://nextcloud.unipd.it/dist/…, file: File, …}
log @ index.mjs:47
error @ index.mjs:65
i @ index-DPkUyJ8g.mjs:984
await in i
(anonymous) @ index.js:378
Z @ index.js:252
ee @ index.js:290
start @ index.js:430
start @ index-DPkUyJ8g.mjs:622
ke @ DropService.ts:132
await in ke
onDrop @ DragAndDropNotice.vue:139
await in onDrop
sn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
push.85471.Mr.i._wrapper @ vue.runtime.esm.js:7500
DropService.ts:138 [ERROR] files: Error while uploading files {app: 'files', uid: 'unipd.30263059', level: 2, errors: Array(1)}
log @ index.mjs:47
error @ index.mjs:65
ke @ DropService.ts:138
await in ke
onDrop @ DragAndDropNotice.vue:139
await in onDrop
sn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
push.85471.Mr.i._wrapper @ vue.runtime.esm.js:7500

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap33-feedbackbug

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions