metacatui
metacatui copied to clipboard
Case-sensitivity issues with ldap identity in the My Packages view
This ticket is to create a temporary fix for this issue: https://redmine.dataone.org/issues/8869 When users click My Packages button, MetacatUI sends query like this:
rightsHolder:(
http\://orcid.org/0000-0003-0077-4738 OR
"CN=Matt Jones A729,O=Google,C=US,DC=cilogon,DC=org" OR
UID=jones,O=NCEAS,DC=ecoinformatics,DC=org
) OR writePermission:(
http\://orcid.org/0000-0003-0077-4738 OR
"CN=Matt Jones A729,O=Google,C=US,DC=cilogon,DC=org" OR
UID=jones,O=NCEAS,DC=ecoinformatics,DC=org
) OR changePermission:(
http\://orcid.org/0000-0003-0077-4738 OR
"CN=Matt Jones A729,O=Google,C=US,DC=cilogon,DC=org" OR
UID=jones,O=NCEAS,DC=ecoinformatics,DC=org
)
Note: The ldap account uses UID, O and DC. In the solr doc, they are lowercase: uid, o and dc. So we need to expand the query to cover the lowercase ldap account.