https://bugs.kde.org/show_bug.cgi?id=520265
Bug ID: 520265
Summary: Bug Report: Incorrect Grouping by Rating in Dolphin
26.04.1
Classification: Applications
Product: dolphin
Version First 26.04.1
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: major
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
## 1. Problem Description
When grouping files by rating in Dolphin, files with the same star rating
appear in **multiple separate groups** instead of a single group.
**Example of the issue:**
- Files with ⭐ (1 star) appear in 3 different groups
- Files with ⭐⭐⭐⭐⭐ (5 stars) appear in 2 different groups
- All files with the same rating should be grouped together in a single group
**Additional anomalous behavior:**
- When pressing F5 (refresh), ratings change to different values
- Ratings disappear until ungrouping and regrouping manually
- When rating all files with ⭐, after pressing F5 they change to ⭐⭐, ⭐⭐⭐, etc.
---
## 2. System Environment
| Item | Value |
|------|-------|
| **Operating System** | Garuda Linux x86_64 |
| **Kernel** | 7.0.7-zen2-1-zen |
| **Desktop Environment** | KDE Plasma 6.6.5 |
| **Window Manager** | KWin (X11) |
| **Dolphin** | 26.04.1 |
| **Baloo** | 6.25.0-1 |
| **Shell** | fish 4.7.1 |
---
## 3. Investigation Performed
### 3.1 Verification of Baloo Configuration
**Action:** Check if Baloo was enabled in System Settings
**Finding:**
- Baloo **was enabled** with the option "File names and file contents" selected
- This was not a disabled indexing problem
---
### 3.2 Verification of File Metadata
**Action:** Execute `getfattr -d -m ".*" ~/Desktop/*`
**Finding:**
```
user.baloo.rating="2" (= 1 star)
user.baloo.rating="6" (= 3 stars)
user.baloo.rating="8" (= 4 stars)
```
**Conclusion:**
- Ratings are **correctly stored** in the extended attributes system
- Baloo is **working correctly** in storing the metadata
- The problem is in **Dolphin not reading/grouping correctly** this metadata
---
### 3.3 Dolphin Cache Cleanup
**Action:** Execute:
```bash
rm -rf ~/.cache/dolphin/
rm -rf ~/.local/share/dolphin/view_properties/
```
**Result:** ❌ **FAILED** - The problem persisted
---
### 3.4 Verification of File Attributes
**Action:** Execute `lsattr -d ~/Desktop/*`
**Result:** All files showed `----------------------` (no special flags)
**Conclusion:** File attributes are normal, with no integrity issues
---
### 3.5 Verification of Baloo Tools Availability
**Action:** Search for Baloo executables:
```bash
which balooctl
which baloo_file_extractor
find /usr -name "balooctl"
```
**Finding:**
- `balooctl` **was found**
- Baloo was installed with its control utilities
---
### 3.6 Verification of Baloo Database
**Action:** List contents of `~/.local/share/baloo/`
**Finding:**
```
index (13GB)
index-lock
```
**Conclusion:**
- The Baloo database **exists and is functioning**
- The `index` file at 13GB indicates it is indexing correctly
- Baloo **was always working**, this was not the issue
---
### 3.7 Disabling and Complete Reconstruction of Baloo
**Action:** Disable Baloo, delete the database, and re-enable:
```bash
balooctl6 disable
rm -rf ~/.local/share/baloo/
balooctl6 enable
```
**Result during indexing:**
```
The Baloo File Indexer is running
Indexing status: Indexing file content
Total files indexed: 886,096
Files waiting for content indexing: 711,707
Files that failed to index: 0
Current index size is 13 GiB
```
**Result after completion:**
```
The Baloo File Indexer is running
Indexing status: Idle
Total files indexed: 847,554
Files waiting for content indexing: 0
Files that failed to index: 0
Current index size is 13 GiB
```
**Conclusion:** The index was completely rebuilt. The problem **persisted**.
---
### 3.8 System Restart
**Action:** Completely restart the operating system
**Result:** The problem **persisted after the restart**
---
### 3.9 Final Metadata Verification
**Action:** Inspect again the extended attributes of all files:
```bash
getfattr -d -m ".*" ~/Desktop/* 2>/dev/null | awk '/^# file:/{file=$0}
/baloo.rating/{print file " -> " $0}'
```
**Result:**
```
22 files with user.baloo.rating="2" (1 star)
1 file with user.baloo.rating="8" (4 stars)
```
**Conclusion:**
- Metadata is **100% correct and consistent**
- All files with rating="2" have exactly the same value
- All files with rating="8" have exactly the same value
---
## 4. Root Cause Analysis
Dolphin is taking the 22 files with rating="2" and dividing them into multiple
groups, when it should place them all in a single group.
This is a **bug in Dolphin 26.04.1**.
---
## 5. Solutions Attempted and Results
| Solution | Result |
|----------|--------|
| Enable Baloo | Already enabled |
| Clear Baloo cache | ❌ Failed |
| Clear Dolphin cache | ❌ Failed |
| Disable and re-enable Baloo | ❌ Failed |
| Rebuild Baloo index | ❌ Failed |
| Restart the system | ❌ Failed |
---
## 6. Conclusion
After exhaustive and methodical investigation:
- File metadata is **correct and consistent**
- Baloo is **working correctly**
- Dolphin cache was **completely cleared**
- The system was **restarted**
- Baloo index was **completely rebuilt**
- The problem **persists in all circumstances**
The defect is in the **grouping logic of Dolphin 26.04.1**. The program is not
correctly grouping files that share the same rating value.
--
You are receiving this mail because:
You are watching all bug changes.