Bug 999426 - PG-Error while creating gpg-key
Summary: PG-Error while creating gpg-key
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: Nightly
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-21 10:10 UTC by Sachin Ghai
Modified: 2019-09-25 20:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 17:07:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
PG-error while creating a new gpg-key (97.34 KB, image/png)
2013-08-21 10:10 UTC, Sachin Ghai
no flags Details
PG error while selecting "Products & Repositories' tab (125.78 KB, image/png)
2013-09-16 09:29 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2013-08-21 10:10:04 UTC
Created attachment 788783 [details]
PG-error while creating a new gpg-key

Description of problem:
Creating a gpg-key via webUI throws following error:

--
   PGError: ERROR: missing FROM-clause entry for table "products" LINE 1: ...vironment_id" = 1 ORDER BY repositories.name ASC, products.n... ^ : SELECT "repositories".* FROM "repositories" WHERE "repositories"."gpg_key_id" = 2 AND "repositories"."environment_id" = 1 ORDER BY repositories.name ASC, products.name ASC (ActiveRecord::StatementInvalid)
    Click here for more details.
--
Version-Release number of selected component (if applicable):
katello-1.4.3-1.git.256.b710f10.el6.noarch


How reproducible:
always

Steps to Reproduce:
1.Go to Contents--> repository-> gpg  key --> new gpg-key
2. enter name and browse file to upload
3.

Actual results:
PGError: ERROR: missing FROM-clause entry for table "products" LINE 1: ...vironment_id" = 1 ORDER BY repositories.name ASC, products.n... ^ : SELECT "repositories".* FROM "repositories" WHERE "repositories"."gpg_key_id" = 2 AND "repositories"."environment_id" = 1 ORDER BY repositories.name ASC, products.name ASC (ActiveRecord::StatementInvalid)

Expected results:
User should be able to add gpg-key without any error

Additional info:

Comment 2 Justin Sherrill 2013-09-13 21:14:27 UTC
I am unable to reproduce this.  Are you still able to?

Comment 3 Sachin Ghai 2013-09-16 09:01:50 UTC
Not able to reproduce it with following build:

katello-1.4.6-1.git.95.3ef5eb8.el6.noarch

Comment 4 Sachin Ghai 2013-09-16 09:28:09 UTC
Please ignore comment3.

Its reproducible but with different steps:

1.Go to Contents--> repository-> gpg  key --> new gpg-key
2. enter name and browse file to upload
3. select 'Product & Repositories' tab.

The reported error is reproducible now when you select 'Product & Repositories' tab.

Reproducible with: katello-1.4.6-1.git.95.3ef5eb8.el6.noarch

Comment 5 Sachin Ghai 2013-09-16 09:29:31 UTC
Created attachment 798185 [details]
PG error while selecting "Products & Repositories' tab

Comment 6 Justin Sherrill 2013-09-16 14:05:50 UTC
Thanks for looking into this Sachin!

https://github.com/Katello/katello/pull/2957

Comment 9 Corey Welton 2013-09-27 20:04:55 UTC
QE Verified, no more PG error
katello 1.4.6-13.el6sat

Comment 10 Bryan Kearney 2014-04-24 17:07:39 UTC
This was verified and delivered with MDP2. Closing it out.


Note You need to log in before you can comment on or make changes to this bug.