Project

General

Profile

Actions

Bug #27541

closed

errors": ["undefined method `srpms' for #<Katello::ContentViewVersion:0x000000000d500c28>"

Added by Vijay Singh over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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>" 
    ]
}


Related issues 1 (1 open0 closed)

Related to Katello - Tracker #27539: [Tracker] SRPM IssuesNew

Actions
Actions #1

Updated by Vijay Singh over 5 years ago

Actions #2

Updated by Chris Roberts over 5 years ago

  • Target version set to Katello 3.14.0
  • Found in Releases Katello 3.12.1 added
Actions #3

Updated by Chris Roberts over 5 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by Chris Roberts about 5 years ago

  • Status changed from New to Assigned
Actions #5

Updated by Chris Roberts about 5 years ago

Before:

```ruby

[DEBUG 2019-10-18T17:55:31 Exception] Using exception handler HammerCLIKatello::ExceptionHandler#handle_internal_error
[ERROR 2019-10-18T17:55:31 Exception] undefined method `srpms' for #<Katello::ContentViewVersion:0x000000000f2df780>

```

After:

```ruby
[vagrant@centos7-katello-devel katello]$ hammer srpm list --content-view-version-id 2
---|--------|---------------------------
ID | NAME | FILENAME
---|--------|---------------------------
1 | g2clib | g2clib-1.4.0-9.el7.src.rpm
---|--------|---------------------------
```

Actions #6

Updated by The Foreman Bot about 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8393 added
Actions #7

Updated by The Foreman Bot about 5 years ago

  • Fixed in Releases Katello 3.15.0 added
Actions #8

Updated by Chris Roberts about 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #9

Updated by Chris Roberts about 5 years ago

  • Fixed in Releases Katello 3.14.0 added
  • Fixed in Releases deleted (Katello 3.15.0)
Actions

Also available in: Atom PDF