Skip to content

[Bug]: Files - files are downloaded instead of opened on click #41551

Open
@gerbrent

Description

⚠️ This issue respects the following points: ⚠️

Bug description

In certain circumstances (see below), selecting a file with the intention of opening/editing does not open the file in an editor, but instead downloads the file locally via browser dialogue. Selecting a folder will browse to it but show as empty.

Circumstances

Not 100% on how to reproduce, so speculating:

  • This seems to occur after the browser window has been open for extended periods of time, i.e. open in the background for many hours, or after a suspend of the laptop/computer.
  • heartbeats seem to be succeeding, despite the behaviour
  • it does, indeed, download the correct document, but sometimes takes long to begin the download (30s+)
  • occurs with .md, .ods
  • if you are having this behaviour w files, if you click to open a folder then it browses to the folder, but it is show as empty, even if this is incorrect (i.e. clearly this folder has contents):
    • "empty" folder
      image
    • error while opening the folder: 401 Unauthorized
      Screenshot_20231116_100110 - empty folder 2

problem occuring in both Firefox 119.0 and Chromium 118.0.5993.117
linux/openSUSE Tumbleweed

Steps to reproduce

  1. leave Files session open for extended period of time (speculation..)
  2. click on a file or folder
  3. browser's file download dialogue appears, ~~folder will open but show as empty ~~

Expected behavior

click on a file opens the file in the appropriate editor (.md or .ods..)
click on a folder opens the folder for browsing and shows the actual contents

Installation method

None

Nextcloud Server version

28

Operating system

Other

PHP engine version

None

Web server

None

Database engine version

None

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?

None

What user-backends are you using?

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

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

cloud.nextcloud.com
28.0.0 beta 3

I have additional helpful browser logs, but would appreciate some eyes on it to censor sensitive info before posting publicly. Please ping me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions