[ 
https://issues.apache.org/jira/browse/KNOX-3567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18143907#comment-18143907
 ] 

ASF subversion and git services commented on KNOX-3567:
-------------------------------------------------------

Commit 48b2f85bc41813d4bbdaf542a95edea29fb359db in knox's branch 
refs/heads/master from bonampak
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=48b2f85bc ]

KNOX-3567: requestExcludeHeaders should be case-insensitive (#1510)

Match request exclude headers case-insensitively in 
AbstractGatewayDispatch.copyRequestHeaderFields
so the configured and built-in exclude lists apply regardless of the header 
name's case.
Matching happens on a case-insensitive copy of 
getOutboundRequestExcludeHeaders(),
so dispatches that override it are covered too.

Co-authored-by: Claude <[email protected]>

> requestExcludeHeaders should be case insensitive
> ------------------------------------------------
>
>                 Key: KNOX-3567
>                 URL: https://issues.apache.org/jira/browse/KNOX-3567
>             Project: Apache Knox
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Tamás Marcinkovics
>            Assignee: Tamás Marcinkovics
>            Priority: Trivial
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Dispatch requestExcludeHeaders is only applied when the request header name 
> has exactly the same case as the configured value:
> {{<dispatch 
> classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch">}}
> {{    <param>}}
> {{        <name>requestExcludeHeaders</name>}}
> {{        <value>Accept-Encoding</value>}}
> {{    </param>}}
> {{</dispatch>}}
> Expected result: requestExcludeHeaders should be case-insensitive.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to