[OPENAM-4919] DNMapper.realmNameToAMSDKName logic adding extra = when checking against orgAttr Created: 07/Nov/14  Updated: 20/Nov/16  Resolved: 17/Dec/14

Status: Resolved
Project: OpenAM
Component/s: authentication
Affects Version/s: 11.0.0
Fix Version/s: 11.0.3, 12.0.1, 13.0.0

Type: Bug Priority: Major
Reporter: Jonathan Thomas Assignee: Jonathan Thomas
Resolution: Fixed Votes: 0
Labels: EDISON, release-notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: HTML File hello.jsp    
Issue Links:
Target Version/s:
Support Ticket IDs:


If the DNMapper.realmNameToAMSDKName () is called and gets to the logic to check against orgAttr this seems flawed.

In user case orgAttr= `o=`

This would skip the following check as ORGANIZATION_RDN = `o`

if (orgAttr == null || orgAttr.equalsIgnoreCase(SMSEntry.ORGANIZATION_RDN)

and in subsequent replace an extra '=' is added so


is returned as


Comment by Jonathan Thomas [ 25/Nov/14 ]

Committed to 11.0.x in r11514

Comment by Jonathan Thomas [ 25/Nov/14 ]

Currently not able to reproduce on 10.0.2 - need to verify for 12.0

Comment by Peter Major [X] (Inactive) [ 13/Apr/15 ]

Fixed in 12.0.1 with R13410

Comment by Peter Major [X] (Inactive) [ 13/Apr/15 ]

To reproduce this issue I've used the following JSP. It will require having /hello/world realm structure.

Comment by Jonathan Thomas [ 13/Aug/15 ]

Committed to trunk r15168.

Generated at Sat Oct 24 05:57:30 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.