You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandor Molnar (Jira)" <ji...@apache.org> on 2022/09/21 12:29:00 UTC

[jira] [Updated] (KNOX-2805) getUserTokens api should return all tokens which are matching either of the same metadata name passed as query param

     [ https://issues.apache.org/jira/browse/KNOX-2805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandor Molnar updated KNOX-2805:
--------------------------------
    Description: 
*Steps:*
1. Create token1 with md_Name=reina&md_Score=50
2. Create token2 with md_Name=mary&md_Score=100
3. Create token3 with md_Name=mary&md_Score=20&md_Grade=A

*Scenario 1:*
Fetch token with "md_Name=mary&md_Score=100"
Result : returns token2 and token3

*Scenario 2:*
Fetch token with "md_Name=mary&md_Name=reina"
Result : return token2 and token3

*Expectation:*
if the api returns all matching tokens of any of the mentioned metadata in query param , then i would expect scenario2 to return me token1,2,3 though the passed metadata name in query param ("Name") is same but with different values. But here it doesnt return token1

  was:
*Steps:*
1. Create token1 with md_Name=reina&md_Score=50
2. Create token2 with md_Name=mary&md_Score=100
3. Create token 3 with md_Name=mary&md_Score=20&md_Grade=A

*Scenario 1:*
Fetch token with "md_Name=mary&md_Score=100"
Result : returns token2 and token3

*Scenario 2:*
Fetch token with "md_Name=mary&md_Name=reina"
Result : return token2 and token3

*Expectation:*
if the api returns all matching tokens of any of the mentioned metadata in query param , then i would expect scenario2 to return me token1,2,3 though the passed metadata name in query param ("Name") is same but with different values. But here it doesnt return token1


> getUserTokens api should return all tokens which are matching either of the same metadata name passed as query param
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: KNOX-2805
>                 URL: https://issues.apache.org/jira/browse/KNOX-2805
>             Project: Apache Knox
>          Issue Type: Bug
>    Affects Versions: 1.3.0
>            Reporter: J.Andreina
>            Assignee: Sandor Molnar
>            Priority: Major
>
> *Steps:*
> 1. Create token1 with md_Name=reina&md_Score=50
> 2. Create token2 with md_Name=mary&md_Score=100
> 3. Create token3 with md_Name=mary&md_Score=20&md_Grade=A
> *Scenario 1:*
> Fetch token with "md_Name=mary&md_Score=100"
> Result : returns token2 and token3
> *Scenario 2:*
> Fetch token with "md_Name=mary&md_Name=reina"
> Result : return token2 and token3
> *Expectation:*
> if the api returns all matching tokens of any of the mentioned metadata in query param , then i would expect scenario2 to return me token1,2,3 though the passed metadata name in query param ("Name") is same but with different values. But here it doesnt return token1



--
This message was sent by Atlassian Jira
(v8.20.10#820010)