Bug 1159070 - creating channel with GPG key specified fails with "Invalid GPG Url"
Summary: creating channel with GPG key specified fails with "Invalid GPG Url"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 570
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Dimitar Yordanov
URL:
Whiteboard:
Depends On:
Blocks: sat570-blockers
TreeView+ depends on / blocked
 
Reported: 2014-10-30 21:04 UTC by Jan Hutař
Modified: 2015-01-13 10:18 UTC (History)
3 users (show)

Fixed In Version: spacewalk-java-2.3.8-56-sat
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 10:18:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2014-10-30 21:04:56 UTC
Description of problem:
Creating channel with GPG key specified fails with "Invalid GPG Url".


Version-Release number of selected component (if applicable):
Satellite-5.7.0-RHEL6-re20141024.0
spacewalk-java-2.3.8-50.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Via API:
   mystruct = {
     "url" : 'file:///etc/pki/rpm-gpg/SOMEKEY',
     "id" : '2CF02A42',
     "fingerprint" : 'A73B 0A91 6F6C 660C D371  881A F2BC 50DC 2CF0 2A42'
    }
    ret = client.channel.software.create(key, CHANNEL, \
        	                         'Name %s' % CHANNEL, \
                	                 'Summary %s' % CHANNEL, \
                        	         ARCH, PARENT_CHANNEL, CHECKSUM, \
                                         mystruct)
2. Also reproducible via API with same values


Actual results:
xmlrpclib.Fault: <Fault 1207: 'redstone.xmlrpc.XmlRpcFault: Invalid GPG Url'>


Expected results:
Should work.


Additional info:
Maybe this is caused by spacewalk.git commit 52823167b0b7b0c9377b0b316c60c2fc1db22c59 because is makes the URL uppercase and then tries to match GPG_URL_REGEX on it which have lowercase letters in it (just guessing):

protected static final String GPG_URL_REGEX = "^(https?|file)://.*?$";

Comment 2 Grant Gainey 2014-11-04 19:04:32 UTC
SW commit 0ac1bf696b34bc65a4b6069d8d16dc61609adea8 spacewalk-java-2.3.71-1

Comment 6 Martin Korbel 2015-01-09 09:34:32 UTC
Re-verified on Satellite-5.7.0-RHEL6-re20150105.1 (spacewalk-java-2.3.8-96.el6sat).

Using steps described in comment 5.

Comment 7 Clifford Perry 2015-01-13 10:18:27 UTC
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state. 

The Satellite 5.7 GA Errata:
 - https://rhn.redhat.com/errata/RHSA-2015-0033.html 

Satellite 5.7 Release Notes:
 -
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html

Satellite Customer Portal Blog announcement for release:
 - https://access.redhat.com/blogs/1169563/posts/1315743 

Cliff


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