Project

General

Profile

Actions

Bug #21979

closed

Not possible to view/edit repository: undefined method 'product' for #

Added by Bernhard Suttner over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The following issue occurs while using: http://[ip]:3000/katello/api/v2/products/7 (VERIFY_URL)

{"displayMessage":"undefined method `product' for #\u003cKatello::Content:0x00000010b74098\u003e","errors":["undefined method `product' for #\u003cKatello::Content:0x00000010b74098\u003e"]}

Steps to reproduce:
- Add a new product (only enter the name)
- Verify that the product exists with VERIFY_URL
- Add a repository to this product (only enter the name and set the type to yum)
=> Broken

 NoMethodError: undefined method `product' for #<Katello::Content:0x007fc958087018>
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activemodel-4.2.9/lib/active_model/attribute_methods.rb:433:in `method_missing'
 | /home/vagrant/katello/app/models/katello/glue/candlepin/product_content.rb:10:in `modified_product_ids'
 | /home/vagrant/katello/app/views/katello/api/v2/products/_product_content.json.rabl:12:in `block in eval_source'

- Verify that the product exists with VERIFY_URL => broken

Related issues 2 (0 open2 closed)

Related to Katello - Bug #21955: Improve repository sets apiClosedJustin Sherrill12/12/2017Actions
Related to Katello - Bug #22017: updating a repo fails with "undefined method content"ClosedJustin Sherrill12/18/2017Actions
Actions

Also available in: Atom PDF