Is this issue resolved? I am 12.7 SP1 and experiencing the same behavior. My need is to remove an apostrophe from surname. I do understand the workaround of creating a attribute mapping. My preference would be to use TRANSLATE right on the assertion attribute. (SN2 in the example)
The assertion:
<ns2:Attribute Name="sn2" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" > <ns2:AttributeValue>TRANSLATE(sn,"'","")</ns2:AttributeValue> </ns2:Attribute> <ns2:Attribute Name="sn3" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" > <ns2:AttributeValue>AFTER(sn,'i')</ns2:AttributeValue> </ns2:Attribute>
And the log:
[01/26/2018][15:53:14.601][15:53:14][20634][140647541495552][SAMLSPEntitlementGenerator.java][processExpressionEvaluation][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][ Expression configured: juel:TRANSLATE(sn,"'","")]
[01/26/2018][15:53:14.601][15:53:14][20634][140647541495552][SAMLSPEntitlementGenerator.java][processExpressionEvaluation][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][Expression before evaluation: TRANSLATE(sn,"'","")]
[01/26/2018][15:53:14.603][15:53:14][20634][140647541495552][SAMLSPEntitlementGenerator.java][processExpressionEvaluation][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][Return value: TRANSLATE(sn,"'","")]
[01/26/2018][15:53:14.603][15:53:14][20634][140647541495552][SAMLSPEntitlementGenerator.java][generateValue][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][Entitlement: NameAttrFormat = unspecified, Encrypt = false, Mode = User, sn2 = NOT PRINTABLE]
[01/26/2018][15:53:14.603][15:53:14][20634][140647541495552][SAMLSPEntitlementGenerator.java][processExpressionEvaluation][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][ Expression configured: juel:AFTER(sn,'i')]
[01/26/2018][15:53:14.603][15:53:14][20634][140647541495552][SAMLSPEntitlementGenerator.java][processExpressionEvaluation][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][Expression before evaluation: AFTER(sn,'i')]
[01/26/2018][15:53:14.606][15:53:14][20634][140647541495552][SAMLSPEntitlementGenerator.java][processExpressionEvaluation][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][Return value: AFTER(sn,'i')]
[01/26/2018][15:53:14.606][15:53:14][20634][140647541495552][SAMLSPEntitlementGenerator.java][generateValue][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][Entitlement: NameAttrFormat = unspecified, Encrypt = false, Mode = User, sn3 = NOT PRINTABLE]
[01/26/2018][15:53:14.606][15:53:14][20634][140647541495552][AuthnRequestProtocol.java][generateAttributeStatement][4b19e51b-cb619b84-5665aae2-8df4a5f6-57532f5c-43][][][][][][][][][][][][][][][][][][][][Generating SAML Assertion AttributeStatement...]
Please advise.