Bug 1327223

Summary: 2.0: crush_rule API: PATCHing the 'name' with non-alphanumeric characters does not work
Product: Red Hat Ceph Storage Reporter: Harish NV Rao <hnallurv>
Component: CalamariAssignee: Boris Ranto <branto>
Calamari sub component: Back-end QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED WONTFIX Docs Contact:
Severity: medium    
Priority: unspecified CC: ceph-eng-bugs, gmeno, uboppana
Version: 2.0   
Target Milestone: rc   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-19 13:21:34 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:

Description Harish NV Rao 2016-04-14 13:59:27 UTC
Description of problem:
 PATCHing the 'name' with non-alphanumeric characters does not work for crush_rule api. It does not fail and does not change the name also. It should either fail or change the name. 

Version-Release number of selected component (if applicable):10.1.1-1.el7cp

How reproducible: always

Steps to Reproduce:
1. PATCH the crush_rule api for name with non-alphanumeric characters. e.g., replicated_ruleset_Test_#!@[ ?;
2. PATCH operation completes with:
HTTP 202 ACCEPTED
Vary: Accept
Content-Type: text/html; charset=utf-8
Allow: GET, DELETE, HEAD, OPTIONS, PATCH
{
    "request_id": "d4aa85ea-56d4-4758-90d7-13b3f128cd55"
}
3. Do GET on this crush rule.

Actual results:
The name is not changed

Expected results:
Either change the name or do not accept the command

Additional info:
Works for "-" and "_"

Comment 2 Christina Meno 2016-04-20 13:13:36 UTC
There probably could be more validation on the front end.

Harish would you please check the /api/v2/request endpoint after trying this operation? I suspect you'll see the failure there.

Comment 7 Christina Meno 2017-07-19 13:21:34 UTC
calamari won't ship in rhcs 3.0