Bug 340470

Summary: Unable to filter for opening square brackets: [
Product: dolphin Reporter: Nico Dorn <nicodorn>
Component: bars: filterAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: arjunak234, emmanuelpescosta099
Priority: NOR    
Version: 4.14.0   
Target Milestone: ---   
Platform: Kubuntu Packages   
OS: Linux   
Latest Commit: Version Fixed In: 14.12

Description Nico Dorn 2014-10-29 16:51:06 UTC
Filtering the folder contents with a string that contains an opening square bracket never returns any results. Other brackets (round brackets, face brackets and angle brackets) work fine though.

Reproducible: Always

Steps to Reproduce:
1. Navigate to folder that contains some files which have one or more opening square brackets in its names.
2. Type "[" into the filter bar

Actual Results:  
No file is shown.

Expected Results:  
The files that have an opening square bracket in its name should be shown.
Comment 1 Emmanuel Pescosta 2014-10-31 17:38:07 UTC
Thanks for the bug report!
I can reproduce the problem in Dolphin 4.14.2.
Comment 2 Arjun AK 2014-11-04 14:35:27 UTC
https://git.reviewboard.kde.org/r/120986/
Comment 3 Arjun AK 2014-11-09 14:07:26 UTC
Git commit e28147bf386351f51f9b22626d7e44008769cc9b by Arjun AK.
Committed on 09/11/2014 at 13:50.
Pushed by arjunak into branch 'Applications/14.12'.

Ensure input is a valid regexp before enabling regexp filter mode

Checking whether the input contains '*', '?' or '[' alone will
not do since there can be files with '[' in their name.

REVIEW: 120986
FIXED-IN: 14.12

M  +4    -4    dolphin/src/kitemviews/private/kfileitemmodelfilter.cpp

http://commits.kde.org/kde-baseapps/e28147bf386351f51f9b22626d7e44008769cc9b