server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: File upload conflict dialog missing in shared folder via link

Open Nils98Ar opened this issue 1 year ago • 2 comments

⚠️ This issue respects the following points: ⚠️

Bug description

File upload conflict dialog missing in shared folder via link with edit permissions. Nothing happens and the browser console logs:

jquery.fileupload.js?v=f16ddfb4-71:1160  jQuery.Deferred exception: Cannot read properties of null (reading 'name') TypeError: Cannot read properties of null (reading 'name')
    at c (https://cloud.xyz.tld/dist/core-main.js?v=f16ddfb4-71:1:11875)
    at Object.fileexists (https://cloud.xyz.tld/dist/core-main.js?v=f16ddfb4-71:1:13783)
    at Object.checkExistingFiles (https://cloud.xyz.tld/apps/files/js/file-upload.js?v=f16ddfb4-71:847:15)
    at HTMLInputElement.add (https://cloud.xyz.tld/apps/files/js/file-upload.js?v=f16ddfb4-71:1102:12)
    at Object._trigger (https://cloud.xyz.tld/dist/core-main.js?v=f16ddfb4-71:1:344948)
    at File.<anonymous> (https://cloud.xyz.tld/apps/files/js/jquery.fileupload.js?v=f16ddfb4-71:1050:31)
    at Function.each (https://cloud.xyz.tld/dist/core-common.js?v=f16ddfb4-71:1:1040521)
    at Object._onAdd (https://cloud.xyz.tld/apps/files/js/jquery.fileupload.js?v=f16ddfb4-71:1043:15)
    at r.99660.t.widget.t.each.a.<computed> [as _onAdd] (https://cloud.xyz.tld/dist/core-main.js?v=f16ddfb4-71:1:338191)
    at https://cloud.xyz.tld/apps/files/js/jquery.fileupload.js?v=f16ddfb4-71:1293:30 undefined
push.74692.E.Deferred.exceptionHook @ jquery.js:3783
d @ jquery.js:3561
setTimeout
(anonym) @ jquery.js:3602
l @ jquery.js:3223
add @ jquery.js:3282
(anonym) @ jquery.js:3622
Deferred @ jquery.js:3713
then @ jquery.js:3607
_handleFileTreeEntries @ jquery.fileupload.js?v=f16ddfb4-71:1160
r.99660.t.widget.t.each.a.<computed> @ jquery-ui.js:143
_getDroppedFiles @ jquery.fileupload.js?v=f16ddfb4-71:1173
r.99660.t.widget.t.each.a.<computed> @ jquery-ui.js:143
_onDrop @ jquery.fileupload.js?v=f16ddfb4-71:1286
r.99660.t.widget.t.each.a.<computed> @ jquery-ui.js:143
a @ jquery-ui.js:626
dispatch @ jquery.js:5145
(anonym) @ jquery.js:4949

setTimeout		
_handleFileTreeEntries	@	jquery.fileupload.js?v=f16ddfb4-71:1160
_getDroppedFiles	@	jquery.fileupload.js?v=f16ddfb4-71:1173
_onDrop	@	jquery.fileupload.js?v=f16ddfb4-71:1286

Steps to reproduce

  1. Share folder via link with edit permissions
  2. Open share link
  3. Upload file to share
  4. Upload a file with the same name to share
  5. Look at browser console

Expected behavior

File upload conflict dialog shows up and you can choose whether you want to keep the existing file or replace with the new one.

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

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

Upgraded to a MAJOR version (29 to 30)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [x] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "default_phone_region": "DE",
        "skeletondirectory": "\/opt\/skeleton",
        "templatedirectory": "\/opt\/Templates",
        "default_language": "de",
        "default_locale": "de_DE",
        "customclient_desktop": "",
        "allow_local_remote_servers": true,
        "overwrite.cli.url": "http:\/\/cloud.xyz.tld",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false,
                "verify_peer_name": false
            }
        },
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpsecure": "",
        "mail_smtpauth": false,
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "cloud.abc.tld",
            "cloud.xyz.tld"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.4.1",
        "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***",
        "filelocking.enabled": "true",
        "loglevel": 2,
        "maintenance": false,
        "maintenance_window_start": 1,
        "upgrade.disable-web": true,
        "app_install_overwrite": [
            "contacts",
            "deck",
            "groupfolders",
            "richdocuments",
            "files_rightclick",
            "spreed"
        ]
    }
}

List of activated Apps

Enabled:
  - activity: 3.0.0
  - announcementcenter: 7.0.1
  - app_api: 4.0.3
  - bruteforcesettings: 3.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.2
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - deck: 1.14.2
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_antivirus: 5.6.1
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - forms: 4.3.4
  - groupfolders: 18.0.8
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.3
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.1.1
  - support: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - welcome: 1.2.0
  - workflowengine: 2.12.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs


Additional info

No response

Nils98Ar avatar Jan 20 '25 10:01 Nils98Ar

@szaimen Any news on this?

Nils98Ar avatar Apr 09 '25 09:04 Nils98Ar

Are you still seeing this, @Nils98Ar?

If so, in what version of Server specifically?

#49924 fixed a similar situation back in 30.0.5

joshtrichards avatar Jun 15 '25 14:06 joshtrichards

@joshtrichards I will check this and let you know.

Nils98Ar avatar Jun 24 '25 10:06 Nils98Ar

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

nextcloud-command avatar Jul 25 '25 00:07 nextcloud-command