Bug 1311113 - No validation for repository label update
Summary: No validation for repository label update
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.1.7
Hardware: x86_64
OS: Linux
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-23 12:20 UTC by Oleksandr Shtaier
Modified: 2017-08-04 13:20 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-04 13:20:56 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Oleksandr Shtaier 2016-02-23 12:20:55 UTC
Description of problem:
Issue is specific to API part only. When I try to update repository label value - no error shown and nothing happened with entity

Making HTTP POST request to https://server.com/katello/api/v2/repositories with options {'verify': False, 'auth': ('login', 'pass'), 'headers': {'content-type': 'application/json'}} and data {"product_id": 149, "content_type": "yum", "url": "url", "name": "test_name"}.

Received HTTP 200 response: {...,"id":72,"name":"test_name","label":"df0d496f-c7f9-4ba0-b3ad-8cb98bc76609","content_type":"yum",...}

Making HTTP PUT request to https://server/katello/api/v2/repositories/72 with options {'verify': False, 'auth': ('login', 'pass'), 'headers': {'content-type': 'application/json'}} and data {"label": "ZQmZIjTjpX"}.

Received HTTP 200 response: {...,"id":72,"name":"name","label":"df0d496f-c7f9-4ba0-b3ad-8cb98bc76609","content_type":"yum",...}

For example for product we will get next error in the same situation:
"Validation failed: Label cannot be changed."

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

How reproducible:
Always

Steps to Reproduce:
1. Attempt to change repository label
2.
3.

Actual results:
No error shown. No changes to entity happened

Expected results:
"Validation failed: Label cannot be changed." error should be raised

Additional info:

Comment 2 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 3 Bryan Kearney 2016-07-26 15:35:28 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 5 Bryan Kearney 2017-08-04 13:20:56 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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