Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1405023 - Cannot delete or edit created hardware model
Summary: Cannot delete or edit created hardware model
Keywords:
Status: CLOSED DUPLICATE of bug 1265150
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.2.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-15 12:14 UTC by Sanket Jagtap
Modified: 2016-12-16 11:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-16 11:43:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Editing (19.21 KB, image/png)
2016-12-15 15:03 UTC, Sanket Jagtap
no flags Details

Description Sanket Jagtap 2016-12-15 12:14:54 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Build : Satellite 6.2.5

How reproducible:


Steps to Reproduce:
1. Go to hosts -> Provisioning setup -> Click hardware models
2. Create a Hardware model with Html tags (for eg: <script>alert(1)<script> or <frameset>abc</frameset>
3. Try to now, edit or delete the Hardware model.

Actual results:
The hardware model is not deleted or edited , when u try to do the same , it is redirected. 
Not Found
The requested URL /models/<script>alert(1)</script>

Expected results:
The hardware model should be deleted to edited

Additional info:

Comment 3 Ivan Necas 2016-12-15 14:24:06 UTC
I can't reproduce this, neither on firefox nor chrome. Please provide additional information about the reproducer, including logs, browser and anything that might be useful to reproduce and investigate

Comment 4 Ivan Necas 2016-12-15 14:52:07 UTC
The problem seems to be with the capturing the delete button, where you need to click directly on the "Delete" label, not just the button (when it's outside of the text)

Comment 5 Sanket Jagtap 2016-12-15 15:03:47 UTC
Created attachment 1232206 [details]
Editing

When we edit the model

Comment 6 Sanket Jagtap 2016-12-15 15:04:46 UTC
Even if the delete label is clicked , a javascript alert confirmation box appears and on clicking yes , we are redirected to page where , it says 
Not Found

The requested URL /models/<script>alert(1)</script>AAAAAAA was not found on this server. 


Also , cannot edit the Hardware model , screenshot attached

Comment 7 Ivan Necas 2016-12-15 16:03:12 UTC
Connecting redmine issue http://projects.theforeman.org/issues/17686 from this bug

Comment 8 Ivan Necas 2016-12-15 16:25:02 UTC
I was first investigating other issue I hit on the hw model deletion. Is it a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1265150. If so, please close this BZ as duplicate of it instead of filing a new one.

Comment 9 Sanket Jagtap 2016-12-16 11:43:11 UTC

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


Note You need to log in before you can comment on or make changes to this bug.