question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why 302 redirect to /admin?

See original GitHub issue

Hi, can I ask why airflow redirects from / to /admin if EVERY navigation is anchored at /admin/something?

I am asking this because I’m in the process of integrating airflow into our current stack and it’s annoying for proxying purposes to have that, not to mention the /admin/admin/admin/css/bootstrap/admin.css request that is made from the /admin/index.html.

Is it possible to remove the first redirect to /admin and leave airflow responding solely on /?

Thank you!

Edit: probably related to https://github.com/airbnb/airflow/issues/726

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mistercrunchcommented, Feb 3, 2016

Well Airflow is built on top of flask-admin and leverages its templates and views. I’m unclear on where the /admin/admin/admin stuff is coming from, but it shouldn’t occur.

It may be sound to port the UI to Flask App Builder or even Django (much more of an undertaking) to get authentication and granular permissions / role management. I can’t justify spending the time at this point though.

If anyone can spare an intern, that’s a pretty scoped out project with little need for guidance.

0reactions
mistercrunchcommented, Feb 9, 2016

actually the requirements.txt doesn’t have much things pinned, I should really remove it from there.

The proper way to install is using the bracket notation as in pip install airflow[hive] and specify the subpackages you need.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix the HTTP 302 Error (5 Methods) - Kinsta
HTTP 302 codes are useful to temporarily redirect website users to another URL. ... The Plugins page in the WordPress admin dashboard.
Read more >
wp-admin 302 redirects - WordPress Stack Exchange
Mainly, I can't get into wp-admin (or wp-login.php) as it redirects with two 301 redirects and then multiple 302 redirects.
Read more >
Redirecting to Admin page - WordPress.org
And this redirection is being cached by the browser, the request status code is 302. After successful login when the user again hits...
Read more >
django - Redirect to /admin/login/ results in 302 - Stack Overflow
So /admin/login should be an exception where user can get when he is not logged in.
Read more >
2.2.5: Admin page stuck in 301/302 redirect loop when HTTPS ...
Admin is stuck in 301/302 redirect loop; I can see in the headers that the SSL certificate is recognised as valid.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found