Bug 1773298

Summary: GET /katello/api/srpms/compare always fails with error: Missing template katello/api/v2/common/compare
Product: Red Hat Satellite Reporter: vijsingh
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: chrobert, pcreech
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 12:59:33 UTC Type: Bug
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: 1378442    

Description vijsingh 2019-11-17 12:08:25 UTC
Description of problem:

GET /katello/api/srpms/compare always fails with error: Missing template katello/api/v2/common/compare


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

@Satellite 6.7.0 snap 1.0

How reproducible:

Always

Steps to Reproduce:

1. Create two yum repos (repo1, repo2).
2. Upload SRPM into that.
3. Create two C.V.(by adding one in each) and publish it.
4. Now try to compare with below API:

$ curl --header "Accept:application/json,version=2" --header "Content-Type:application/json" --request GET --insecure --user admin:pass https://srpm-centos7-katello-devel.vijsingh.example.com/katello/api/srpms/compare --data "{\"content_view_version_ids\":[1,6]}" 
{"displayMessage":"Missing template katello/api/v2/common/compare with {:locale=\u003e[:en], :formats=\u003e[:json], :variants=\u003e[], :handlers=\u003e[:raw, :erb, :html, :builder, :ruby, :rabl]}. Searched in:\n  * \"/home/vagrant/foreman/app/views\"\n  * \"/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/graphiql-rails-1.7.0/app/views\"\n  * \"/home/vagrant/katello/app/views\"\n  * \"/home/vagrant/katello/engines/bastion/app/views\"\n  * \"/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-0.16.0/app/views\"\n  * \"/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/apipie-rails-0.5.16/app/views\"\n","errors":["Missing template katello/api/v2/common/compare with {:locale=\u003e[:en], :formats=\u003e[:json], :variants=\u003e[], :handlers=\u003e[:raw, :erb, :html, :builder, :ruby, :rabl]}. Searched in:\n  * \"/home/vagrant/foreman/app/views\"\n  * \"/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/graphiql-rails-1.7.0/app/views\"\n  * \"/home/vagrant/katello/app/views\"\n  * \"/home/vagrant/katello/engines/bastion/app/views\"\n  * \"/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-0.16.0/app/views\"\n  * \"/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/apipie-rails-0.5.16/app/views\"\

Comment 3 Bryan Kearney 2019-11-17 13:01:07 UTC
Upstream bug assigned to chrobert

Comment 6 Chris Roberts 2019-11-26 14:48:18 UTC
After talking to Vijay, this looks like it is being affected in multiple areas and we are going to push to 6.8 to allow proper time for fixing this.

Comment 8 James Jeffers 2020-06-15 11:49:43 UTC
Connecting redmine issue https://projects.theforeman.org/issues/27546 from this bug

Comment 9 Bryan Kearney 2020-06-15 20:01:25 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27546 has been resolved.

Comment 14 errata-xmlrpc 2020-10-27 12:59:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4366