Bug 958182
| Summary: | Options Error: Error parsing '/http://example.com/awesomeos-modifier': URL must be http, ftp, file or https not "" | ||
|---|---|---|---|
| Product: | [Community] Candlepin (Migrated to Jira) | Reporter: | John Sefler <jsefler> |
| Component: | candlepin | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | John Sefler <jsefler> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.9 | CC: | bkearney, omaciel |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-01 13:49:47 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: | 840995 | ||
|
Description
John Sefler
2013-04-30 14:28:12 UTC
The prefix request from katello caused this. I think the test data is bad, but this will fix it just in case. https://github.com/candlepin/candlepin/pull/240 Fixed in :
commit 76d933703a9f7b52b5c06e91421013440ed5f207
Author: Bryan Kearney <bkearney>
Date: Tue Apr 30 16:09:50 2013 -0400
958182: Fix the prefix logic to not append hte prefix if the url starts with a normal url prefix
Note, we are explicitly treating a full url as GIGO. So, it will not fix:
http://this/is/a//bad/url
-- bk
Verifying version... [root@jsefler-5 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.8.13-1 subscription-manager: 1.8.10-1.el5 python-rhsm: 1.8.12-1.el5 [root@jsefler-f14-candlepin candlepin]# git show-ref | grep master fa4a5b2d43743be2c597e0d081173e505dbb6690 refs/heads/master [root@jsefler-5 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS Modifier Provides: Awesome OS Modifier Bits SKU: awesomeos-modifier Contract: 1 Account: 12331131231 Serial: 8180361165221268050 Pool ID: 8a90f8df3f19d2bc013f19d528ae03d0 Active: True Quantity Used: 1 Service Level: Service Type: Status Details: Starts: 06/05/2013 Ends: 06/05/2014 Subscription Name: Awesome OS Server Basic Provides: Awesome OS Server Bits SKU: awesomeos-server-basic Contract: 13 Account: 12331131231 Serial: 7086714794081621136 Pool ID: 8a90f8df3f19d2bc013f19d52a0d0419 Active: True Quantity Used: 1 Service Level: None Service Type: Self-Support Status Details: Starts: 06/05/2013 Ends: 06/05/2014 [root@jsefler-5 ~]# [root@jsefler-5 ~]# yum repolist Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. This system is not registered with RHN Classic or RHN Satellite. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. https://cdn.redhat.com/foo/path/always/5Server/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden Trying other mirror. repo id repo name status always-enabled-content always-enabled-content 0 awesomeos-modifier awesomeos-modifier 0 content-label content 0 content-label-empty-gpg content-emptygpg 0 content-label-no-gpg content-nogpg 0 repolist: 0 [root@jsefler-5 ~]# [root@jsefler-5 ~]# rct cat-cert /etc/pki/entitlement/8180361165221268050.pem | grep awesomeos-modifier SKU: awesomeos-modifier Name: awesomeos-modifier Label: awesomeos-modifier URL: http://example.com/awesomeos-modifier GPG: http://example.com/awesomeos-modifier/gpg VERIFIED: no more misplaced / leading the URL |