Log In - destination is wrong

Simo Suurla February 25, 2015

Hi, I have following difficulties in logging in trough "Ask question" button:

image2015-2-25 13:40:15.png

Here is how this happens:

image2015-2-25 13:30:59.png

Here is source code of the destination of the "Log in" -button

image2015-2-25 13:29:33.png

It seems that somehow the corrupted:

<a class="aui-button cq-login" href="/login.action?os_destination=%252Fquestions" tabindex="0">Log in</a>

 Any Ideas how to fix this? We are running Confluence 5.7 and Questions 1.1.47 on linux.

 

3 answers

1 accepted

0 votes
Answer accepted
Simo Suurla February 25, 2015

Finally got working work around:

#Fix invalid url in login trought Ask question -button.
AllowEncodedSlashes on
RewriteEngine on
RewriteRule ^/(.)questions$ /questions [R]

Dominik Budde May 27, 2015

I have the same behaviour. Confluence is not running behind an Apache so that I don't see the possibility to put the rewrite code of Simo Suurla in any configuration file.

It is a really confusing behaviour.

Do I really have to configure an Apache to rewrite the mistaken url ?

0 votes
Dominik Budde May 31, 2015

This issue is logged under https://jira.atlassian.com/browse/CQ-1813

I upvoted this one.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 25, 2015

Hmm.  Is the base url in Confluence set correctly?

Simo Suurla February 25, 2015

It seems to be right.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 25, 2015

Ok, that's the easy one confirmed, just needed to rule that out as a problem. Two more questions 1) Are you sure questions is installed and activated ok? Could you try https://conflu-test kela fi/questions and see if that does take you to questions (Note that I removed some dot from the url to avoid any robots picking it up and spamming you) 2) Are you running it behind Apache?

Simo Suurla February 25, 2015

Yes, I think installation is fine because everything else is working. If I am logged in already there is no problem. Yes, we are running this behind Apache. But I have not noticed this kind any ware in Confluence before.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 25, 2015

Ahh, that's not quite what I was going for, but I have seen problems with redirects in Apache doing that. I think I found it was a broken redirect when I ran into it, but I'm sure there were other ways to configure apache to get it wrong!

Simo Suurla February 25, 2015

ProxyPass / http://localhost:8090/ ProxyPassReverse / http://localhost:8090/ #also tried this but did not help.. Redirect /%2Fquestions https://conflu-test.kela.fi/questions </VirtualHost>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events