[Bug]: Label color update is delayed and may temporarily duplicate the label
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
Issue description
When a label is applied to a file for the first time, it is usually displayed in a black/grey color instead of its configured color.
If the label color is then changed, the update is not always applied correctly. In some cases, the label appears twice: one instance remains grey while the other uses the selected color.
After a few minutes, the duplicate label disappears automatically, leaving only a single label with the correct color.
Observed behavior
- First application of a label is often monochrome.
- Changing the label color is not always reflected immediately.
- The label may temporarily appear twice.
- After a short delay (a few minutes), the duplicate disappears and the remaining label has the correct color.
Expected behavior
- The label should be displayed with the correct color immediately after being applied.
- Changing the label color should update the existing label without creating a duplicate.
Steps to reproduce
Observed behavior
- First application of a label is often monochrome.
- Changing the label color is not always reflected immediately.
- The label may temporarily appear twice.
- After a short delay (a few minutes), the duplicate disappears and the remaining label has the correct color.
Expected behavior
- The label should be displayed with the correct color immediately after being applied.
- Changing the label color should update the existing label without creating a duplicate.
Expected behavior
Expected behavior
- The label should be displayed with the correct color immediately after being applied.
- Changing the label color should update the existing label without creating a duplicate.
Nextcloud Server version
32
Operating system
RHEL/CentOS
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
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
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the label application and color-change flow in the Nextcloud Server interface, checking the existing label update path and the timing of the duplicate display. Done means a newly applied label shows its configured color immediately, changing that color updates the existing label without duplication, and the duplicate does not reappear after a delay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100