Project

General

Profile

Actions

Bug #4519

closed

Renaming host with / in name causes "No route matches" error

Added by Dominic Cleal over 10 years ago. Updated over 6 years ago.

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

Description

1. Edit an existing host
2. Change name to "foo/bar" (or add a "/" inside the name)
3. Submit form

You receive the following error:

No route matches {:action=>"toggle_manage", :controller=>"hosts", :id=>"foo/bar.example.com"}

The save doesn't occur as the name is invalid (since #3697), but the form fails to re-render.


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #3697: Field Validations Should be more ComprehensiveClosedStephen Benjamin11/20/2013Actions
Related to Foreman - Bug #4456: CVE-2014-0089 - Stored Cross Site Scripting (XSS) on 500 error pageClosedJoseph Magen02/26/201403/18/2014Actions
Related to Foreman - Bug #9531: Removing host name from Host#edit throws routing errorClosedTomer Brisker02/24/2015Actions
Actions

Also available in: Atom PDF