Actions
Bug #27541
closederrors": ["undefined method `srpms' for #<Katello::ContentViewVersion:0x000000000d500c28>"
Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Description
errors": ["undefined method `srpms' for #<Katello::ContentViewVersion:0x000000000d500c28>"
Steps:
1. Create a yum repo. 2. Upload SRPM into that. 3. Try to list SRPM as below: [vagrant@srpm-centos7-hammer-devel ~]$ curl --header "Accept:application/json,version=2" --header "Content-Type:application/json" --request GET --insecure --user admin:test123 https://srpm-centos7-katello-devel.example.com/katello/api/srpms --data "{\"content_view_version_id\":[1]}"|python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 242 0 211 100 31 549 80 --:--:-- --:--:-- --:--:-- 549 { "displayMessage": "undefined method `srpms' for #<Katello::ContentViewVersion:0x000000000d500c28>", "errors": [ "undefined method `srpms' for #<Katello::ContentViewVersion:0x000000000d500c28>" ] }
Actions