Kallithea issues archive

Issue #159: error 404 after login

Reported by: Leonid Lee
State: resolved
Created on: 2015-09-16 09:12
Updated on: 2018-05-13 19:59

Description

Hello,

I configured kallithea on 127.0.0.1:5000. It works behind apache proxy on location http://server/hg

There is such config in cfg-file

[filter:proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /hg

So after successful login I have 404 error because page was redirected to http://server/hg/hg/

Any ideas?

Attachments

login.py

Comments

Comment by Leonid Lee, on 2015-09-16 10:14

My workaround is to add redirect to apache conf.

Redirect "/hg/hg/" "http://server/hg/"

Comment by Andrej Shadura, on 2015-09-16 10:57

I have to admit I have also encountered a similar issue once, let me look at this.

Comment by Andrej Shadura, on 2015-09-16 10:58

To be honest, I think in both your and my case it is some misconfiguration, but I have to find out what exactly is wrong.

Comment by Arnaud GUT, on 2015-09-16 12:36

Latest rhodecode version has the same issue: https://rhodecode.tenderapp.com/help/discussions/problems/9163-wrong-login-redirection-since-350. Bug in a Python package? If this can help.

Comment by Andrej Shadura, on 2015-09-16 13:10

Right, I see, that's an actual issue with the code. I'll try to fix it and let you know later.

Comment by Leonid Lee, on 2015-09-16 13:31

@andrew_shadura @agut Thank You guys!

Comment by Andrej Shadura, on 2015-09-16 13:36

This is related to #104

Comment by Andrej Shadura, on 2015-09-16 13:58

Comment by Leonid Lee, on 2015-09-16 17:19

@andrew_shadura I'm sorry I'm not able to view this page because of security policy of my company. I will check it out later, at home.

Comment by sambasama, on 2015-09-18 15:02

Tested out the patch, seems to resolve the problem.

Comment by Mads Kiilerich, on 2015-09-20 23:44

Please also test the stable branch.

Comment by Leonid Lee, on 2015-11-05 11:16

@andrew_shadura Hello Andrew! It seems I used pip to install kallithea, so product version is 0.2.9. I cannot apply patch using HG, so I made changes in login.py using vi editor.

Do I need to clear any cache to get these changes available in kallithea? Attaching login.py...

Comment by Leonid Lee, on 2015-11-05 11:16

Comment by Andrej Shadura, on 2015-11-05 11:40

That has already been fixed in 0.3, please upgrade your instance.

Comment by Thomas De Schampheleire, on 2018-05-13 19:59

This has been fixed long time ago.