Bug #3527
closedgetprincipals action returns invalid XML document
0%
Description
When calling action=getprincipals, metacat returns the list of users and groups as an XML document with a character encoding set to "US-ASCII". However, users register from around the world, and many have registered with usernames that use characters beyond ASCII character set. For instance:
<user>
<username>uid=redbc,o=unaffiliated,dc=ecoinformatics,dc=org</username>
<name>Zulay M�ndez</name>
<organization>unaffiliated</organization>
<organizationUnitName>unaffiliated</organizationUnitName>
<email>zulay@ula.ve</email>
</user>
The above user's name (Mendez?) includes a non ASCII character.
Client side parsers will not parse the output from getprincipals because the XML document is not valid.
We need to either:
1) Change the output's character encoding to an all-inclusive one (UTF-8?), or
2) Change the registration CGI such that it only accepts character input in the ASCII range.
Also, there are a half-dozen LDAP entries that include non-ASCII characters, and so in option #2, these entries would have to be modified.