Bug 1429545

Summary: UI: HW model names starting with number are wrongly treated as IDs
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: WebUIAssignee: satellite6-bugs <satellite6-bugs>
WebUI sub component: Foreman QA Contact: Lukas Pramuk <lpramuk>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: tbrisker
Version: 6.2.8   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-07 11:58:22 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:

Description Lukas Pramuk 2017-03-06 15:11:18 UTC
Description of problem:
HW model names starting with number are wrongly treated as IDs. 
Accessing HW model with name starting with number (name=1foo) turns wrongly into accessing completely different HW model with id derived from the name (id=1)

Version-Release number of selected component (if applicable):
@satellite-6.2.8-4.0.el7sat.noarch

How reproducible:
Have HW model with name that converts into existing id

Steps to Reproduce:
1. Have at least one HW model defined.
2. Crete HW model with the name '1foo'
3. Try to Access/Edit the HW model '1foo'

>>> you see details for HW model with id=1


Actual results:
editing completely different HW model

Expected results:
editing correct HW model

Comment 2 Tomer Brisker 2017-03-07 11:58:22 UTC
Although not completely identical in symptoms, this is caused by the same root cause as bz1265150 which has already been fixed upstream. Closing as dup.

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