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

Hello *,

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:

<snip>
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'
</snip>

Thanks,
– Martin

<https://localhost:2443/ptables/AutoYaST%20/dev/sda/edit&gt;

foreman-debug-GlFD6.tar.xz (10.8 KB)

Hello *,

Bug ticket: Bug #8597: Foreman 1.7.0 Issue with partition table names and "/" characters - Foreman

Thanks.

··· -- Martin

This is a bug indeed, we changed how URLs are generated in 1.7 and it's
caused a few similar issues.

Could you please file it in our bug tracker?

http://projects.theforeman.org/projects/foreman/issues/new

··· On 03/12/14 21:33, Martin Zimmermann wrote: > Hello *, > > 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: > > > "T/he 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"):


Dominic Cleal
Red Hat Engineering