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

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

Commit 4a122e674767640d61cbdc60e7f14610170cc788 in knox's branch 
refs/heads/v3.0.x from bonampak
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=4a122e674 ]

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]>
(cherry picked from commit 48b2f85bc41813d4bbdaf542a95edea29fb359db)


> 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
>             Fix For: 3.1.0
>
>          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)
  • [jira] [Commented] (KNOX-35... ASF subversion and git services (Jira) via dev
    • [jira] [Commented] (KN... ASF subversion and git services (Jira) via dev

Reply via email to