airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <>
Subject [jira] [Commented] (AIRAVATA-1397) PGA gateway needs to gracefully handle attempts to upload files that are too large.
Date Fri, 13 Jan 2017 22:03:26 GMT


Marcus Christie commented on AIRAVATA-1397:

I've taken a stab at implementing graceful handling of a large file upload while creating
or editing an experiment. What I was trying was, in the case of a file uploaded that is too
large, to redisplay the create/edit experiment form with the values provided by the user and
a message that the file they uploaded was too large.

However, it turned out to require a great deal of code organization, so I'm not going to go
forward with trying to handle a large file upload that way.  I think we are too close to a
release to reorganize so much code that is critical to creating/editing experiments and it
would need a lot of testing. Another reason is that it may not be worth the effort. The client
side large file detection as well as the display of the actual max file upload size should
help to prevent users from uploading files too large.

As an alternative what I plan to do if the user uploads a file too large is, well, handle
it ungracefully by redirecting back to the first page of the experiment create with an error
message about the file that exceeded the max upload size. This way at least the problem isn't
just silently swallowed.

> PGA gateway needs to gracefully handle attempts to upload files that are too large.
> -----------------------------------------------------------------------------------
>                 Key: AIRAVATA-1397
>                 URL:
>             Project: Airavata
>          Issue Type: Improvement
>            Reporter: Marlon Pierce
>            Assignee: Marcus Christie
>             Fix For: 0.17
> This is mostly a PHP problem.  File upload limits are specified in the php.ini file (typically,
/etc/php.ini).  The parameters upload_max_filesize and post_max_size need to be modified to
increase the size. 
> If post_max_size is exceeded, the operation will fail silently: PHP doesn't complain,
and PGA will not call the airavata clients.  If upload_max_filesize is exceeded but not the
post size limit, you will get errors.  It is advisable to change both (as documented in the
PGA's file) and to keep both the same value.

This message was sent by Atlassian JIRA

View raw message