You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/09/09 14:38:00 UTC
[jira] [Commented] (AIRAVATA-3646) Improve error message when there is a missing storage resource configuration
[ https://issues.apache.org/jira/browse/AIRAVATA-3646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17602376#comment-17602376 ]
ASF subversion and git services commented on AIRAVATA-3646:
-----------------------------------------------------------
Commit 35a26356c709685dddb7ee51f8f301e43fccc1fd in airavata-django-portal's branch refs/heads/staging from Marcus Christie
[ https://gitbox.apache.org/repos/asf?p=airavata-django-portal.git;h=35a26356 ]
AIRAVATA-3646 Upgrade sdk to 1.4.1 for bug fix
Also updating Django to latest security fix release.
> Improve error message when there is a missing storage resource configuration
> ----------------------------------------------------------------------------
>
> Key: AIRAVATA-3646
> URL: https://issues.apache.org/jira/browse/AIRAVATA-3646
> Project: Airavata
> Issue Type: Bug
> Components: Django Portal
> Reporter: Marcus Christie
> Assignee: Marcus Christie
> Priority: Major
>
> The Airavata User Portal SDK looks up a configured UserStorageProvider for a Data Product's Storage Resource. When it can't find a UserStorageProvider, an exception is raised, but it's not very helpful:
> {code}
> API exception
> Traceback (most recent call la
> st):
> File "/var/www/portals/django-iu-geology-survey/venv/lib64/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
> response = handler(request, *args, **kwargs)
> File "/va
> r/www/portals/django-iu-geology-survey/airavata-django-portal/django_airavata/apps/api/views.py", line 819, in get
> return Response(serializer.data)
> File "/var/www/portals/django-iu-geology-surve
> y/venv/lib64/python3.6/site-packages/rest_framework/serializers.py", line 548, in data
> ret = super().data
> File "/var/www/portals/django-iu-geology-survey/venv/lib64/python3.6/site-packages/rest_
> framework/serializers.py", line 246, in data
> self._data = self.to_representation(self.instance)
> File "/var/www/portals/django-iu-geology-survey/venv/lib64/python3.6/site-packages/rest_framework/
> serializers.py", line 515, in to_representation
> ret[field.field_name] = field.to_representation(attribute)
> File "/var/www/portals/django-iu-geology-survey/venv/lib64/python3.6/site-packages/rest
> _framework/fields.py", line 1882, in to_representation
> return method(value)
> File "/var/www/portals/django-iu-geology-survey/airavata-django-portal/django_airavata/apps/api/serializers.py", line
> 543, in get_downloadURL
> if user_storage.exists(request, data_product):
> File "/var/www/portals/django-iu-geology-survey/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/user_storage/
> api.py", line 283, in exists
> storage_resource_id=storage_resource_id)
> File "/var/www/portals/django-iu-geology-survey/venv/lib64/python3.6/site-packages/airavata_django_portal_sdk/user_storage/a
> pi.py", line 65, in get_user_storage_provider
> module_name, class_name = module_class_name.rsplit(".", 1)
> AttributeError: 'NoneType' object has no attribute 'rsplit'
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)