Skip to content

[Bug]: File comments disappear after page reload #66120

Description

@Jashan32

⚠️ This issue respects the following points: ⚠️

  • This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
  • This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
  • I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
  • I agree to follow Nextcloud's Code of Conduct.
  • I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.

Bug description

When adding a comment to a file in Nextcloud Files, the newly added comment appears immediately in the Comments sidebar.

However, after reloading the page, the previously added comments disappear from the UI because the existing comments are not fetched automatically when the Comments component is initialized.

The comments are displayed correctly immediately after submission, but they are missing after a page reload.

Screencast.From.2026-11-01.00-41-32.mp4

Steps to reproduce

  1. Log in to Nextcloud.
  2. Navigate to the Files application.
  3. Select a file and open its details sidebar.
  4. Open the Comments tab.
  5. Add a new comment to the file.
  6. Verify that the newly added comment appears in the comments list.
  7. Reload the browser page.
  8. Open the same file's Comments tab again.
  9. Observe that the previously added comment is missing from the UI.

Expected behavior

Comments added to a file should remain visible after reloading the page.

When opening the Comments tab, Nextcloud should automatically fetch the existing comments associated with the selected file from the server and display them in the comments list.

Nextcloud Server version

36 (master)

Operating system

Debian/Ubuntu

Database engine version

MariaDB

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

Fresh Nextcloud Server install

What user-backends are you using?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions