-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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]: Cannot remove favorite folder #49395
Comments
Hey! Nice bug you found 👍 |
I'm working on a similar case for a customer. How to reproduce:
The code in lib/private/Tags.php does not check if the given tag already exists properly. There's a check, but the list of tags is loaded only once and never updated. Also, there's no unique constraint on the table, and therefore it's a valid state to have the tag more than once for a user. |
Yes i have access to the database, I have the same thing as @kesselb in my database. By the way I confirm that the bug appear when I select 2 folders and also the bug does not reproduce once it is done. After a quick investigation, I remark that after adding in batch some folders in favorites, when i try to remove them from the favorites, only one is removed in table oc_vcategory_to_object (i.e. the link between file and category ), but no line or delete in oc_vcategory (the category) However, it can be better to keep only one line in oc_vcategory and to link all files or folder with this line in oc_vcategory_to_object. |
Yep, because the relations are removed by the categoryid, but the current code does not consider that for one tag multiple categoryids can exist. |
Bug description
I can't remove folders from favorite. They are delete from the favorite section, but they still keep the star on the icon and i still can remove from favorite
Steps to reproduce
Expected behavior
The folder are remove from favorite and the icon is up to date
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
PostgreSQL
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?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No log
Additional info
Name of folder are masked for confidentiality.
You can see these folder are still marked as favorite but there are no favorites (no dropdown arrow in favorite section) even if i reload the page
The text was updated successfully, but these errors were encountered: