airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (Jira)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-3303) 404 Not Found when forward slash in experiment id
Date Wed, 25 Mar 2020 13:19:00 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066669#comment-17066669
] 

Marcus Christie commented on AIRAVATA-3303:
-------------------------------------------

I tried to get encoded forward slashes to work, here's what I had to do:
* enable [AllowEncodedSlashes|https://httpd.apache.org/docs/current/mod/core.html#allowencodedslashes]
in Apache virtual host
* in ExperimentViewSet set {{lookup_value_regex = ".*"}}
** also FullExperimentViewSet
** also SharedEntityViewSet

This "works", however it still would fail if there is more than one forward slash consecutively
because Apache collapses multiple consecutive forward slashes into one slash, see https://www.webmasterworld.com/apache/3978441.htm.

Because of this and because I'd rather not have the Django portal code be dependent on how
the proxying web server is configured, I think it would be better to remove forward slashes
from the experiment ID on the backend.  That should be simple enough but it will require some
data migration to remove forward slashes from existing experiment IDs that contain them.


> 404 Not Found when forward slash in experiment id
> -------------------------------------------------
>
>                 Key: AIRAVATA-3303
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3303
>             Project: Airavata
>          Issue Type: Improvement
>          Components: Django Portal
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>
> API request to load experiment when id has forward slash results in 404 not found. 
> For example: https://seagrid.org/api/experiments/Clone_of_Opt%2Bfreq_acetic_anhydride_SVWN%2F6-31G_964cc6c5-9167-4e2c-99e3-5d899e378fc7/
> {{%2F}} is the encoded forward slash.
> Apparently even though encoded properly the forward slash being decoded at some point
and considered part of the URL.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message