You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Stanislaw Pitucha (JIRA)" <ji...@apache.org> on 2019/02/05 05:24:00 UTC

[jira] [Created] (AIRFLOW-3806) Redirects use absolute URLs

Stanislaw Pitucha created AIRFLOW-3806:
------------------------------------------

             Summary: Redirects use absolute URLs
                 Key: AIRFLOW-3806
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3806
             Project: Apache Airflow
          Issue Type: Bug
          Components: webserver
    Affects Versions: 1.10.2
            Reporter: Stanislaw Pitucha


I'm having an issue deploying airflow behind a load balancer where the user's connection is terminated using https, but then forwarded to airflow using http.

For some reason the redirect from path "/" uses the current domain and forced http port. This seems to both:
 * ignore the base_url
 * use the full domain where only a relative location would be enough

I see there's AIRFLOW-571 open to address the similar problem, but it seems like a very specific workaround rather than a fix for sending the wrong redirect in the first place.

HTTP 302 allows relative redirect, so for example "/" -> "/admin/" should work just fine without the domain name or the schema. If the absolute path is desired, it should use "base_url" as defined in the config file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)