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

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

Open
5 of 8 tasks
Nils98Ar opened this issue Jan 20, 2025 · 0 comments
Open
5 of 8 tasks

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

Nils98Ar opened this issue Jan 20, 2025 · 0 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug

Comments

@Nils98Ar
Copy link

Nils98Ar commented Jan 20, 2025

⚠️ 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?

  • 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 Nils98Ar added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 20, 2025
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 30-feedback bug
Projects
None yet
Development

No branches or pull requests

2 participants