deNBI / perunKeystoneAdapter

Perun Keystone Adapter parses data propagated by Perun data and modifies a connected Keystone.
https://perunkeystoneadapter.readthedocs.io/en/latest/
Apache License 2.0
5 stars 0 forks source link

Project descriptions should not include non-ascii characters #35

Closed oliof closed 1 year ago

oliof commented 3 years ago

Perun can easily have project descriptions including non-ascii characters (Umlauts, special characters, etc.). OpenStack components like to choke on these.

Example error message from a description that includes the string "Charité":

"Error: Failed to apply catalog: Execution of '/usr/bin/openstack project list --quiet --format csv --long' returned 1: 'ascii' codec can't encode character u'\\xe9' in position ..."

(hex character e9 is é ...)

The Adapter should filter out ASCII characters and/or replace them with ASCII characters before pushing into OpenStack.

jkrue commented 1 year ago

Data propagated from Elixir/Lifescience/Perun is imported as utf-8 encoded json. Non UTF-8 characters raise an exception so that non-UTF-8 characters aren't pushed into OpenStack. Since OpenStack Rocky/Stein all services using Python3 so UTF-8 characters shouldn't be a problem anymore.