[
https://issues.apache.org/jira/browse/KNOX-2342?focusedWorklogId=743113&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-743113
]
ASF GitHub Bot logged work on KNOX-2342:
----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Mar/22 12:28
Start Date: 17/Mar/22 12:28
Worklog Time Spent: 10m
Work Description: zeroflag opened a new pull request #546:
URL: https://github.com/apache/knox/pull/546
## What changes were proposed in this pull request?
CommonIdentityAssertionFilter puts the same group multiple times as shown in
the audit log:
```
22/02/17 17:40:38
||b28adfe1-90ea-4fb5-9ad7-9d444edd3d26|audit|[0:0:0:0:0:0:0:1]|HIVE|tom|mapped-tom||identity-mapping|principal|mapped-tom|success|Groups:
[lg1, lg1]
```
## How was this patch tested?
manually + unittest
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 743113)
Remaining Estimate: 0h
Time Spent: 10m
> CommonIdentityAssertionFilter calling mapGroupPrincipals Twice
> --------------------------------------------------------------
>
> Key: KNOX-2342
> URL: https://issues.apache.org/jira/browse/KNOX-2342
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Reporter: Larry McCay
> Assignee: Attila Magyar
> Priority: Major
> Fix For: 1.5.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> It was noticed that the use of the HadoopGroupProvider can result in
> GroupPrincipals being duplicated in the Java Subject and audit log.
> This is due to a bug in CommonIdentityAssertionFilter that is inadvertently
> calling the same method twice.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)