Bug 1310422 - Cannot assign product to another organization
Summary: Cannot assign product to another organization
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.6
Hardware: x86_64
OS: Linux
unspecified
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-21 12:49 UTC by Oleksandr Shtaier
Modified: 2018-08-02 20:59 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-02 20:59:49 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Oleksandr Shtaier 2016-02-21 12:49:19 UTC
Description of problem:
Defect is reproducible for both API and Hammer CLI.

API:
Attempt to update product with new organization gives no error, but actually no changes happened:

Making HTTP PUT request to https://my_server/katello/api/v2/products/72 with options {'verify': False, 'auth': ('username', 'pass'), 'headers': {'content-type': 'application/json'}} and data {"description": null, "label": "f44252c2-a057-4ae6-a2c7-9ca26a17e999", "organization_id": 106, "sync_plan_id": null, "repository_ids": [], "id": 72, "gpg_key_id": null, "name": "test_name"}.

Received HTTP 200 response: {"sync_state":null,"last_sync":null,"last_sync_words":null,"organization":{"name":"org_name","label":"2f2e7855-c46a-46cf-b160-f51f3864fbf4","id":105},"id":72,"cp_id":"1456057498035","name":"test_name","label":"f44252c2-a057-4ae6-a2c7-9ca26a17e999","description":null,"provider_id":207,"sync_plan_id":null,"sync_status":{"state":null},"sync_summary":{},"gpg_key_id":null,"redhat":false,"repository_count":0,"":null,"created_at":"2016-02-21T12:24:57Z","updated_at":"2016-02-21T12:24:58Z","product_content":[],"available_content":[],"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"readonly":false,"repositories":[],"provider":{"name":"Anonymous"}}

For that specific example id should change to 106, but that fact doesn't happen

CLI:
Create new product:
hammer -u username -p pass product info --name my_prod --organization-id 102
ID:           70
Name:         my_prod
Label:        my_prod
Description:  
Sync State:   
Sync Plan ID: 
GPG:          
    GPG Key ID: 
    GPG Key:
Organization: org_name
Readonly:     false
Deletable:    
Content:

Attempt to update product
1) Unexpected and non-informative message:
hammer -u username -p pass product update --id 70 --organization-id 103
Could not update the product:
  Missing values for product.
2) Found way to run command at all, but organization was not updated as expected
hammer -u username -p pass product update --id 70 --name my_prod --organization-id 103
Product updated
hammer -u username -p pass product info --name my_prod --organization-id 103
Error: product not found
hammer -u username -p pass product info --name my_prod --organization-id 102
ID:           70
Name:         my_prod
Label:        my_prod
Description:  
Sync State:   
Sync Plan ID: 
GPG:          
    GPG Key ID: 
    GPG Key:
Organization: org_name
Readonly:     false
Deletable:    
Content:

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

How reproducible:
Always

Steps to Reproduce:
1. Create product assigned to organization
2. Attempt to update product and assign it to another organization

Actual results:
Product is not updated

Expected results:
Product updated successfully

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:38 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 5 Bryan Kearney 2018-08-02 20:59:49 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the 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.