Project

General

Profile

Bug #1463

Incorrect Redirect from Environments and Puppet Classes

Added by Matt Mencel about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

I am running foreman in a subdir, so the URL is https://hostname/foreman. Seems to work fine except for the "Import puppet classes and environments" button on the Environments and Puppet Classes pages. It looks like it should redirect back to itself (e.g. https://hostname/foreman/environments), but the redirect is losing the /foreman from the path (https://hostname/environments), and I get a 404 not found. Hitting back button makes it work.

From the log...

Processing EnvironmentsController#import_environments (for IP_ADDR at 2012-01-20 12:43:46) [GET]
Redirected to https://puppet.dom.com/environments
Completed in 8ms (DB: 0) | 302 Found [https://puppet.dom.com/foreman/environments/import_environments]


Related issues

Has duplicate Foreman - Feature #1577: Provide configuration to change Foreman root urlDuplicate

Associated revisions

Revision b596ba59 (diff)
Added by Ivan Necas over 10 years ago

fixes #1463 - let Foreman run on a sub path

e.g. for it being available on http://localhost:3000/foreman you run:

RAILS_RELATIVE_URL_ROOT=/foreman rails s

History

#1 Updated by Ohad Levy over 10 years ago

  • Target version set to 1.0

#2 Updated by Ivan Necas over 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF