Project

General

Profile

Bug #8597

Foreman 1.7.0 Issue with partition table names and "/" characters

Added by Martin Zimmermann over 7 years ago. Updated about 4 years ago.

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

Description

I've created a new partition table named "AutoYast /dev/sda" by using the Foreman 1.7.0 GUI (menu item Hosts -> Partition Table -> New Partition Table). The partition table was created successfully, however it was not possible to open/edit/delete the entry afterwards ... instead the following error messages appeared:

"The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved."

Error message /var/log/foreman/production.log:

Started GET "/ptables/AutoYaST%20/dev/sda/edit" for 10.0.2.2 at 2014-12-03 22:06:16 +0100
ActionController::RoutingError (No route matches [GET] "/ptables/AutoYaST%20/dev/sda/edit"):
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
foreman-debug-GlFD6.tar.xz foreman-debug-GlFD6.tar.xz 213 KB Martin Zimmermann, 12/05/2014 11:46 AM
screenshot_1.PNG View screenshot_1.PNG 44.4 KB Error Message Frontend Martin Zimmermann, 12/05/2014 11:47 AM
screenshot_0.PNG View screenshot_0.PNG 111 KB Martin Zimmermann, 12/05/2014 11:47 AM
Screenshot 1 Screenshot 0

Related issues

Related to Foreman - Feature #4386: implement gem friendly_id to simply find by id, name, label, etcClosed2014-02-19
Related to Foreman - Bug #10545: Allow Dots in ptables urlDuplicate2015-05-192015-05-19
Has duplicate Foreman - Bug #8654: Hardware model with '/' or '.' in name causes 'page does not exist'Duplicate2014-12-10
Has duplicate Foreman - Bug #9663: URL Encoding not working when items have "/" in their nameDuplicate2015-03-05
Has duplicate Foreman - Bug #10104: Partition tables with a slash in their name cannot be openedDuplicate2015-04-09
Has duplicate Foreman - Bug #10991: Can't view or remove partition table containing / in the nameDuplicate2015-07-02

Associated revisions

Revision 053c032d (diff)
Added by Tom Caspy about 7 years ago

fixes #8597 - escape slashes for ptable URL parameters

Revision 8e30db87 (diff)
Added by Tom Caspy about 7 years ago

fixes #8597 - escape slashes for ptable URL parameters

(cherry picked from commit 053c032dba5b52593c0235d96d74cdd1aae65721)

History

#1 Updated by Dominic Cleal over 7 years ago

  • Related to Feature #4386: implement gem friendly_id to simply find by id, name, label, etc added

#2 Updated by Dominic Cleal over 7 years ago

  • Category set to Web Interface

#3 Updated by Tom Caspy over 7 years ago

  • Assignee set to Tom Caspy

#4 Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2001 added
  • Pull request deleted ()

#5 Updated by Dominic Cleal over 7 years ago

  • Has duplicate Bug #8654: Hardware model with '/' or '.' in name causes 'page does not exist' added

#6 Updated by Dominic Cleal over 7 years ago

  • Has duplicate Bug #9663: URL Encoding not working when items have "/" in their name added

#7 Updated by Dominic Cleal over 7 years ago

  • Has duplicate Bug #10104: Partition tables with a slash in their name cannot be opened added

#8 Updated by Diogo Ferreira about 7 years ago

Error also occurs when using "." in the name:

> /var/log/foreman/production.log <
2015-05-14 10:16:32 [F]
ActionController::RoutingError (No route matches [GET] "/ptables/Kickstart%20Centos%207.1/edit"):
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'

#9 Updated by Dominic Cleal about 7 years ago

  • Related to Bug #10545: Allow Dots in ptables url added

#10 Updated by Dominic Cleal about 7 years ago

  • Legacy Backlogs Release (now unused) set to 56

#11 Updated by Tom Caspy about 7 years ago

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

#12 Updated by Dominic Cleal about 7 years ago

  • Has duplicate Bug #10991: Can't view or remove partition table containing / in the name added

#13 Updated by Marek Hulán over 5 years ago

  • Bugzilla link set to 1304245

Also available in: Atom PDF