Bug 1032802 - Repo Discovery: unable to perform repo discovery using a file:/// resource
Summary: Repo Discovery: unable to perform repo discovery using a file:/// resource
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-20 21:22 UTC by Brad Buckingham
Modified: 2019-09-26 13:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-07 17:12:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Brad Buckingham 2013-11-20 21:22:02 UTC
Description of problem:

The WebUI does not currently allow users to perform repo discovery using file URLs.

Version-Release number of selected component (if applicable):
katello-1.4.6-61.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. go to Content->Repositories->Products
2. click Repo Discovery
3. enter a file resource URL (e.g. file:///var/www/html/repos)

Actual results:
The Discover button is disabled

Expected results:
The Discover button is enabled

Additional info:

As a workaround, it is possible to accomplish repo discovery using the CLI.

Pre-requisite, the product used in the CLI should exist prior to discovery:

For example:

$ katello --username admin --password [password] shell

katello> repo discover --org ACME_Corporation --name my_repo_prefix --url=file:///var/www/repos --product zoo
Discovering repository urls, this could take some time...
(-)  [1] file:///var/www/repos/zoo1
(-)  [2] file:///var/www/repos/zoo2
(-)  [3] file:///var/www/repos/zoo3

Select urls for which candidate repos should be created; use `y` to confirm (h for help):1
(+)  [1] file:///var/www/repos/zoo1
(-)  [2] file:///var/www/repos/zoo2
(-)  [3] file:///var/www/repos/zoo3

Select urls for which candidate repos should be created; use `y` to confirm (h for help):2
(+)  [1] file:///var/www/repos/zoo1
(+)  [2] file:///var/www/repos/zoo2
(-)  [3] file:///var/www/repos/zoo3

Select urls for which candidate repos should be created; use `y` to confirm (h for help):3
(+)  [1] file:///var/www/repos/zoo1
(+)  [2] file:///var/www/repos/zoo2
(+)  [3] file:///var/www/repos/zoo3

Select urls for which candidate repos should be created; use `y` to confirm (h for help):y
Successfully created repository [ my_repo_prefix_var_www_repos_zoo1 ]
Successfully created repository [ my_repo_prefix_var_www_repos_zoo2 ]
Successfully created repository [ my_repo_prefix_var_www_repos_zoo3 ]
katello>

Comment 1 RHEL Program Management 2013-11-20 21:28:12 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Brad Buckingham 2017-01-07 17:12:26 UTC
The behavior described no longer exists.  A user may now perform repo discovery via the ui using a 'file' URL.  Closing this bugzilla.


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