NCEAS / metacat

Data repository software that helps researchers preserve, share, and discover data
https://knb.ecoinformatics.org/software/metacat
GNU General Public License v2.0
25 stars 12 forks source link

Metacat is case sensitive to DN #265

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 1369, https://projects.ecoinformatics.org/ecoinfo/issues/1369 Original Date: 2004-03-15 Original Assignee: Jing Tao


In Ldap, DN is not case sensitive. For example, uid=tao,o=nceas,dc=ecoinformatics,dc=org and uid=tao,o=NCEAS,dc=ecoinformatics,dc=org will be treated as same DN. But in metacat, they will be treated as two DN becuase in "o" phrase, one is "nceas" and the other is "NCEAS". In order make Ldap and metacat consistent, we should make metacat non-case sensitive.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2004-03-15T22:27:07Z


In PermissionControl and DBQuery class, the DN name in java code was transform to lower case. In sql command, the field in db table which stores DN was change to lower(fieldName). So both of them were changed to lower case, then compare them. This will make metacat non-case sensitive to DN.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:17:00Z


Original Bugzilla ID was 1369