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]: dropping external file often opens it instead of upload #42881

Closed
5 of 8 tasks
jkumeboshi opened this issue Jan 17, 2024 · 5 comments
Closed
5 of 8 tasks

[Bug]: dropping external file often opens it instead of upload #42881

jkumeboshi opened this issue Jan 17, 2024 · 5 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@jkumeboshi
Copy link

jkumeboshi commented Jan 17, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

Starting from NC 28, using website, when I drop an external file in a folder, the "drop file widget" appear.
If I drop a file outside the widget, the browser opens it instead of uploading it to NC. This is a different behavior from 27, but is not the main problem: after that, also if I drop a file on the widget, it may sometime open in the browser instead of uploading it.
Is not a 100% reproducible behavior, it happens once every 3 or 4 times. But once it triggers, is reproducible 100% of times.

Steps to reproduce

  1. drop an external file in the upload widget area
  2. if the file it's uploaded, drop another file outside the widget area
  3. the file should open instead of upload
  4. go back to NC then drop again same file in the widget area
  5. the file should opens instead of upload, if not, repeat many time points from 2 to 4

Expected behavior

A dropped file should always uploads and never open in the browser, this behavior is absolutely unexpected.

Installation method

Community Docker image

Nextcloud Server version

28

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 (ex. 22 to 23)

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": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.fedibox.com:8080",
            "cloud.fedibox.com:80",
            "cloud.fedibox.com:443"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.1.1",
        "overwritehost": "cloud.fedibox.com",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/",
        "overwrite.cli.url": "https:\/\/cloud.fedibox.com\/",
        "installed": true,
        "maintenance": false,
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "IT",
        "loglevel": 1,
        "log_rotate_size": 10485760,
        "theme": "",
        "app_install_overwrite": [
            "carnet",
            "fulltextsearch_elasticsearch",
            "workflow_ocr",
            "richdocuments",
            "impersonate",
            "spreed",
            "fulltextsearch",
            "files_fulltextsearch"
        ],
        "has_rebuilt_cache": true
    }
}

List of activated Apps

Enabled:
  - activity: 2.20.0
  - admin_audit: 1.18.0
  - calendar: 4.6.2
  - circles: 28.0.0-dev
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contacts: 5.5.1
  - contactsinteraction: 1.9.0
  - dav: 1.29.1
  - federatedfilesharing: 1.18.0
  - federation: 1.18.0
  - files: 2.0.0
  - files_fulltextsearch: 28.0.0
  - files_pdfviewer: 2.9.0
  - files_reminders: 1.1.0
  - files_sharing: 1.20.0
  - files_trashbin: 1.18.0
  - files_versions: 1.21.0
  - firstrunwizard: 2.17.0
  - fulltextsearch: 28.0.0
  - fulltextsearch_elasticsearch: 28.0.0
  - impersonate: 1.15.0
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - nextcloud_announcements: 1.17.0
  - notes: 4.9.2
  - notifications: 2.16.0
  - oauth2: 1.16.3
  - password_policy: 1.18.0
  - photos: 2.4.0
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - recommendations: 2.0.0
  - related_resources: 1.3.0
  - richdocuments: 8.3.0
  - serverinfo: 1.18.0
  - settings: 1.10.1
  - sharebymail: 1.18.0
  - support: 1.11.0
  - survey_client: 1.16.0
  - systemtags: 1.18.0
  - text: 3.9.1
  - theming: 2.3.0
  - twofactor_backupcodes: 1.17.0
  - updatenotification: 1.18.0
  - user_status: 1.8.1
  - viewer: 2.2.0
  - workflow_ocr: 1.28.0
  - workflowengine: 2.10.0
Disabled:
  - bruteforcesettings: 2.8.0 (installed 2.3.0)
  - dashboard: 7.8.0 (installed 7.2.0)
  - encryption: 2.16.0
  - files_external: 1.20.0
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - suspicious_login: 6.0.0
  - twofactor_totp: 10.0.0-beta.2
  - user_ldap: 1.19.0
  - weather_status: 1.8.0 (installed 1.2.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

nextcloud        | 127.0.0.1 - - [13/Jan/2024:07:26:44 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.57 (Debian) PHP/8.2.14 (internal dummy connection)"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:26:50 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:27:17 +0000] "GET /apps/files/api/v1/stats HTTP/1.1" 200 931 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:27:21 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:27:51 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:28:19 +0000] "GET /apps/files/api/v1/stats HTTP/1.1" 200 931 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:28:22 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:28:52 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:29:19 +0000] "GET /apps/files/api/v1/stats HTTP/1.1" 200 931 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:29:22 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:29:53 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:30:17 +0000] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 204 688 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:30:20 +0000] "GET /apps/files/api/v1/stats HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:30:23 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:30:54 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:31:21 +0000] "GET /apps/files/api/v1/stats HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:31:25 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:31:55 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:32:16 +0000] "GET /csrftoken HTTP/1.1" 200 894 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:32:22 +0000] "GET /apps/files/api/v1/stats HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:32:26 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:32:56 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:33:23 +0000] "GET /apps/files/api/v1/stats HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:33:27 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:33:57 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:34:23 +0000] "GET /apps/files/api/v1/stats HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:34:28 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:34:58 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:35:13 +0000] "GET /index.php/settings/integrity/failed HTTP/1.1" 200 808 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
nextcloud        | 192.168.178.45 - - [13/Jan/2024:07:35:14 +0000] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6698 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"

Additional info

as you can see, after a while dropping a file in the widget area opens it instead of uploading

Registrazione.2024-01-17.110608.mp4

this bug may be related to #42869 and #42751

@jkumeboshi jkumeboshi added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 17, 2024
@cmdflow
Copy link

cmdflow commented Jan 17, 2024

Can confirm. Bugged since last Update

@skjnldsv
Copy link
Member

This bug is fixed already in 28.0.2 🙈

@skjnldsv skjnldsv closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2024
@gruentee
Copy link

gruentee commented Feb 1, 2024

This bug is fixed already in 28.0.2 🙈

Yes… but: Dropping files on a folder to upload to this specific folder still doesn't work.
My web console (Chrome) shows the following error:
image

I guess I'll open a new issue when I have time to do so.

@skjnldsv
Copy link
Member

skjnldsv commented Feb 1, 2024

@gruentee Works for me on chrome.
But I can adjust the code a bit, thanks for reporting!

@skjnldsv
Copy link
Member

skjnldsv commented Feb 1, 2024

#43267

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 bug
Projects
None yet
Development

No branches or pull requests

4 participants