[
https://issues.apache.org/jira/browse/KNOX-2024?focusedWorklogId=320487&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-320487
]
ASF GitHub Bot logged work on KNOX-2024:
----------------------------------------
Author: ASF GitHub Bot
Created on: 30/Sep/19 13:18
Start Date: 30/Sep/19 13:18
Worklog Time Spent: 10m
Work Description: risdenk commented on pull request #160: KNOX-2024 -
KnoxShellTable - Case Insensitive Operations with Col Names
URL: https://github.com/apache/knox/pull/160#discussion_r329570441
##########
File path:
gateway-shell/src/main/java/org/apache/knox/gateway/shell/table/KnoxShellTableFilter.java
##########
@@ -32,7 +32,15 @@ public KnoxShellTableFilter table(KnoxShellTable table) {
}
public KnoxShellTableFilter name(String name) {
- index = tableToFilter == null ? -1 : tableToFilter.headers.indexOf(name);
+ for (int i = 0; i < tableToFilter.headers.size(); i++) {
+ if (tableToFilter.headers.get(i).equalsIgnoreCase(name)) {
Review comment:
Is it possible to store the headers in a case insensitive way? ie: lowercase
on insert? This would avoid having to deal with case insensitive headers other
places.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 320487)
Time Spent: 1h (was: 50m)
> KnoxShellTable - Case Insensitive Operations with Col Names
> -----------------------------------------------------------
>
> Key: KNOX-2024
> URL: https://issues.apache.org/jira/browse/KNOX-2024
> Project: Apache Knox
> Issue Type: Improvement
> Components: KnoxShell
> Reporter: Larry McCay
> Assignee: Ljmiv
> Priority: Major
> Labels: noob
> Fix For: 1.4.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Filtering, sorting and selection operations accept "name" args but are
> currently case sensitive.
> These need to be changed to be case insensitive.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)