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 2021/10/15 17:15:00 UTC
[jira] [Commented] (AIRAVATA-3532) [Errno 21] Is a directory:
'/var/www/portals/gateway-user-data/lrose/username/Default_Project/precip_stage2_BhQJ8dI/rate'
[ https://issues.apache.org/jira/browse/AIRAVATA-3532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429389#comment-17429389 ]
ASF subversion and git services commented on AIRAVATA-3532:
-----------------------------------------------------------
Commit 0bf9e843f36f0bcfc433aa337f6bfa1464ec31fe in airavata-django-portal-sdk's branch refs/heads/master from Marcus Christie
[ https://gitbox.apache.org/repos/asf?p=airavata-django-portal-sdk.git;h=0bf9e84 ]
AIRAVATA-3532 In addition to checking that data product exists, also double check it is a file
> [Errno 21] Is a directory: '/var/www/portals/gateway-user-data/lrose/username/Default_Project/precip_stage2_BhQJ8dI/rate'
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: AIRAVATA-3532
> URL: https://issues.apache.org/jira/browse/AIRAVATA-3532
> Project: Airavata
> Issue Type: Bug
> Components: Django Portal
> Environment: https://gateway.lrose.net/
> Reporter: Marcus Christie
> Assignee: Marcus Christie
> Priority: Major
>
> When a directory is registered as an output file, the Django Portal tries to read from it as though it were a file, but then gets the exception IsADirectoryError.
> The app interface having an output of type URI and value that resolves to a directory is a misconfiguration, but the Django Portal should more gracefully handle such a situation.
> {code}
> Traceback (most recent call last):
> File "/var/www/portals/django-lrose/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
> response = get_response(request)
> File "/var/www/portals/django-lrose/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
> File "/var/www/portals/django-lrose/venv/lib64/python3.6/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
> return view_func(request, *args, **kwargs)
> File "/var/www/portals/django-lrose/airavata-django-portal/django_airavata/apps/workspace/views.py", line 174, in view_experiment
> response.data['detail']))
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)