Bug 1131815

Summary: 404 Page doesn't exists when deleting an arch that contains html tags in name
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Ohad Levy <ohadlevy>
WebUI sub component: Foreman QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: dcleal
Version: 6.0.4   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-16 14:48:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
UI raises "page doesn't exists error" on deleting arch containing html tags in name none

Description Sachin Ghai 2014-08-20 06:34:32 UTC
Created attachment 928631 [details]
UI raises "page doesn't exists error" on deleting arch containing html tags in name

Description of problem:
Deleting an arch that contains html tag in name raises:

The page you were looking for doesn't exist.

production.log says:

ActionController::RoutingError (No route matches [DELETE] "/architectures/<script>yvCLOPyGeM</script>"):
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'



Version-Release number of selected component (if applicable):
sat6 GA snap5

How reproducible:
always

Steps to Reproduce:
1. create an arch with html tags and delete it
2.
3.

Actual results:
UI raises following error on deleting arch containing html tags in name:

The page you were looking for doesn't exist.


Expected results:
arch should be deleted successfully


Additional info:

Comment 2 Dominic Cleal 2014-09-16 14:48:15 UTC

*** This bug has been marked as a duplicate of bug 1123388 ***