Bug 1002541

Summary: Different restriction for "Repository Label" for create repo using WebUI and API
Product: Red Hat Satellite 5 Reporter: Martin Korbel <mkorbel>
Component: WebUIAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 560CC: galtukho
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-17 16:31:24 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:
Bug Depends On:    
Bug Blocks: 462714    

Description Martin Korbel 2013-08-29 12:19:30 UTC
Description of problem:
Different restriction for "Repository Label" for create repo  using WebUI and API.
WebUI removes brackets from "Repository Label", API doesn't do it.

Version-Release number of selected component (if applicable):
100%

How reproducible:
Sat 5.6.0
Sat 5.5.0
SW 2.0

Steps to Reproduce:
1. Create repo using API
> spacewalk-api --server=localhost --user=admin --password=xxx  channel.software.createRepo "%session%" "Fedora 19 (i386)" YUM http://download.englab.brq.redhat.com/released/F-19/GOLD/Everything/i386/
2. Create repo using WebUI.
Repository Label: Fedora 19 (x86_64)
Repository URL: http://download.englab.brq.redhat.com/released/F-19/GOLD/Everything/x86_64/
3. Click "Create repository" and we can see, that WebUI saves label without brackets:
Repository Label: Fedora 19 x86_64


Actual results:
Repository Label: Fedora 19 x86_64

Expected results:
Repository Label: Fedora 19 (x86_64)

Additional info:

Comment 2 Gennadii Altukhov 2016-03-16 12:49:06 UTC
Taking...

Comment 3 Gennadii Altukhov 2016-03-17 16:31:24 UTC
This is kind of "feature", but not a bug. We're removing all characters like "<", ">", "(", ")", "{", "}", from web-UI forms. I see no sense to do this only for one API-call now.

Closing...