SAML Service Provider Macros are incorrectly displayed/saved by the manager
Concerned version
Version: %2.0.7
Platform: (Nginx)
Summary
I encounter a "double issue" (maybe linked) when defining a macro in a saml sp (new feature of 2.0.7)
First, when i'm on the "Macros" menu i get a "key-value list", which is normal, but when i click on a value i get the same form as a saml exported attribute, and the value part is changed in a strange way.
So i decided to keep only with the "macros" view, and it worked quite well, here's what i've been doing :
The $groups variable is populated with all the ldap groups the user belongs to (like 300).
I wanted to extracted a subset of these groups to send to a saml application, the groups have the following syntax : "GRP_APPLICATIONx_user", "GRP_APPLICATIONx_admin"...
I want the application to receive only "user;admin", with the following macro :
Key : mykey
Value : join(';',(grep {s/(GRP_APPLICATION1_)(.+)/2/} split(';',
groups)))
Here comes the second issue :
After saving, if i go back to the macro field, the following value is displayed :
join(',',(grep {/GRP_APPLICATION1_.+/} split(',',$groups))) #The ; are replaced by ,
and if i browse to the key the name filed is populated with :
',(grep {/GRP_APPLICATION1_.+/} split('
At best it won't work as expected if i save, and at worse, it makes everything crash and i have to restore a previous configuration version.