Bug 757094
Summary: | Showing a detail of a repo fails with exception | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Ivan Necas <inecas> |
Component: | API | Assignee: | Ivan Necas <inecas> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Garik Khachikyan <gkhachik> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.1 | CC: | bkearney, gkhachik, lzap, mkoci |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-22 18:08:54 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 747354 |
Description
Ivan Necas
2011-11-25 13:19:04 UTC
The issue changed a little to authorization denial: katello -u admin -p admin repo info --name "Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server" --product "Red Hat Enterprise Linux Server" User admin is not allowed to access api/repositories/show The same happens when enabling and disabling the repo: katello -u admin -p admin repo enable --name "Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server" --product "Red Hat Enterprise Linux Server" User admin is not allowed to access api/repositories/show Strange, it works with custom products. Only RH products are affected. I have no clue what is wrong. I will try again with clean installation, but I can return to it after Monday. It's because product.readable? returns true only if there is some repo enabled (introduced in commit ec906c19abcf1db5d1c80bfd6746778abedc1c45). I don't see the reason why it should behave this way. This also prevents showing product details unless some repo enabled. @Partha: why we don't consider product without enabled repos readable? during bug verification please check: --- kk org subscriptions --name ACME_Corporation --- as it now throws: "User admin is not allowed to access api/products/show" This is also caused by the check on enabled repos on product = subscriptions are assigned to marketing product and marketing products themselves have no repos, neither enabled or disabled. After discussions we agreed on product being readable and editable even if it has no enabled repos. Fixed in 17de64b427c107d5b0ff71f10b955a1f198e97fd. getting rid of 6.0.0 version since that doesn't exist |