Marcus Christie created AIRAVATA-3620:
-----------------------------------------
Summary: UnicodeEncodeError when unicode character in project name
Key: AIRAVATA-3620
URL: https://issues.apache.org/jira/browse/AIRAVATA-3620
Project: Airavata
Issue Type: Bug
Components: Django Portal
Reporter: Marcus Christie
Assignee: Marcus Christie
{code}
'ascii' codec can't encode character '\xe1' in position 56: ordinal not in
range(128)
The string that could not be encoded/decoded was: dor/Cálculo
{code}
Traceback
{code}
/var/www/portals/django-seagrid/airavata-django-portal/django_airavata/apps/api/views.py,
line 234, in launch
experiment_util.launch(request, experiment_id)
/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/experiment_util/api.py,
line 28, in launch
_set_storage_id_and_data_dir(request, experiment)
/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/experiment_util/api.py,
line 81, in _set_storage_id_and_data_dir
create_unique=True)
/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/user_storage/api.py,
line 701, in create_user_dir
storage_resource_id, resource_path = backend.create_dirs(final_path,
dir_names=dir_names, create_unique=create_unique)
/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/user_storage/backends/django_filesystem_provider.py,
line 116, in create_dirs
if datastore.exists(final_path) and not create_unique:
/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/user_storage/backends/django_filesystem_provider.py,
line 154, in exists
return self.storage.exists(path)
/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/django/core/files/storage.py,
line 325, in exists
return os.path.exists(self.path(name))
/usr/lib64/python3.6/genericpath.py, line 19, in exists
os.stat(path)
{code}
Where path in that last line is
{code}
'/var/www/portals/gateway-user-data/seagrid/pcorregidor/Cálculos_RAM-2022/opt-freq-ac-acetico-wb97xd-631Gdp'
{code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)