Project

General

Profile

Actions

Bug #2640

closed

Sign out button is missing protocol

Added by Taylan Develioglu almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

On 1.2RC2

Sign out url is missing the protocol prefix (http or https).

This causes logout to fail when logged in on https and foreman is unavailable on http.

Actions #1

Updated by Dominic Cleal almost 11 years ago

I don't this here, the link has a full URL including protocol. What appears in the link - only the path, only the hostname onwards?

Actions #2

Updated by Taylan Develioglu almost 11 years ago

fqdn/users/logout

the my account link, for example, is https://fqdn/users/...

Actions #3

Updated by Marek Hulán almost 11 years ago

  • Assignee set to Marek Hulán
Actions #4

Updated by Marek Hulán almost 11 years ago

  • Status changed from New to Assigned

I can't reproduce. Also nothing in code suggests any nonstandard behavior. However this may be related to your setup if you're running foreman behind proxy. Rails detects HTTPS request behind proxy by various custom headers that your proxy probably does not attach. Make sure you are adding 'X-Forwarded-Proto: https' header correctly.

Although this is not entirely a bug we could change logout_users_url which generates absolute path to logout_users_path which generates only the relative part. This will fix the issue for users with wrongly configured proxy.

Actions #5

Updated by Marek Hulán almost 11 years ago

  • Status changed from Assigned to Ready For Testing
Actions #6

Updated by Taylan Develioglu almost 11 years ago

You are correct, we are running foreman behind proxy and the header is not added.

Actions #7

Updated by Dominic Cleal almost 11 years ago

Would you mind giving the (very small) patch a try? Looks like it'll work to me.

Actions #8

Updated by Taylan Develioglu almost 11 years ago

Yes, I tried it and it's fixed. The signout url now has https in it.

Actions #9

Updated by Marek Hulán almost 11 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF