https://bugs.kde.org/show_bug.cgi?id=481181
Bug ID: 481181 Summary: Can not select images using tag with leading/trailing whitespace in the tag name Classification: Applications Product: kphotoalbum Version: GIT master Platform: Ubuntu OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Annotation Dialog Assignee: kpab...@willden.org Reporter: rsquare...@proton.me Target Milestone: --- SUMMARY My database had a tag with an unintended trailing space character. Clicking on the tag showed zero thumbnails even though KPhotoalbum reported in the listview that the tag was assigned to hundreds of images. This is reproducible with git master. STEPS TO REPRODUCE 1. Open the demo database, click Events and then click on the "desktop" tag. Four thumbnails are displayed. 2. Select an image, open the annotation dialog, and rename the "desktop" tag to "desktop " (with a trailing space). 3. Click home, then Events. Note that the trailing whitespace is not obvious in the list view. 4. Click on the "desktop " tag. No thumbnails are displayed. OBSERVED RESULT The tag cannot be used to select images. EXPECTED RESULT The user should not be able to create a tag name with leading/trailing whitespace. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Ubuntu 22.04.3 LTS KDE Frameworks Version: 5.104.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION Trailing whitespace is not obvious unless the tag name is selected in an edit control. The same issue occurs with leading whitespace in the tag name, but it is more obvious if the tags are displayed in a list view because the tag name appears indented. -- You are receiving this mail because: You are watching all bug changes.