-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins v2.27
Steps:
1. Create a build with HelloWorld in the build description
2. On the build history widget, search with HelloWorld
Expected Result:
Should return the build with "HelloWorld" in the description
Actual Result:
Doesn't return the correct build. It only works if you enter "helloworld", all lower case.
The issue is at core/src/main/java/jenkins/widgets/HistoryPageFilter.java, line 352
private boolean fitsSearchString(Object data) { if (searchString == null) { return true; } if (data != null) { if (data instanceof Number) { return data.toString().equals(searchString); } else { return data.toString().toLowerCase().contains(searchString); } } return false; }
Here, the data is converted to lowercase, but the searchString, which is "HelloWorld" in this particular case, is not coverted. As a result, it's not returning the correct result.
- is related to
-
JENKINS-40718 Search by build param values in Build history widget
-
- Closed
-
[JENKINS-39224] Build History - Doesn't return correct result if search data has upper case
Priority | Original: Critical [ 2 ] | New: Minor [ 4 ] |
Assignee | New: Panagiotis Galatsanos [ godfath3r ] |
Link |
New:
This issue is related to |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Just lowered priority to Minor from Critical. Also, not sure it even qualifies as a bug. I suspect it just works as designed.
Note that I personally agree it should ignore case.