[AAA-103] idpmapping will failed for the case sensitivity Created: 18/Jun/16  Updated: 21/Mar/19  Resolved: 22/Jun/16

Status: Resolved
Project: aaa
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: huangqingxin Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6082

 Description   

In the file of SssdClaimAuth.java L149-156

if (mapped.containsKey("Roles")) {
@SuppressWarnings("unchecked")
List<String> roles = (List<String>) mapped.get("roles");
for (String role : roles)

{ cb.addRole(role); }

}
Claim claim = cb.build();

The code will checked key "Roles" where the word begin with upper letter. If mapping_rule_file contains "Roles", then will get the value according the key "roles" where the word begin with lower letter, but it will failed.

And if the mapping_rule_file does not contains key "Role" where the word begin with upper letter, then the cb will not have the value of role.

when claim_builder begins to build claim, the missing of role will cause a exception and fail.



 Comments   
Comment by Suvitha Balu [ 22/Jun/16 ]

https://git.opendaylight.org/gerrit/#/c/40583/

Generated at Wed Feb 07 19:08:38 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.