Bug 687876 - Enabled repo with no urls (should be impossible) makes yum-debug-dump traceback
Summary: Enabled repo with no urls (should be impossible) makes yum-debug-dump traceback
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum-utils
Version: 6.0
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard: abrt_hash:672e1204
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-15 16:10 UTC by Red Hat Case Diagnostics
Modified: 2018-11-14 13:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-10 14:36:16 UTC
Target Upstream Version:


Attachments (Terms of Use)
File: backtrace (664 bytes, text/plain)
2011-03-15 16:10 UTC, Red Hat Case Diagnostics
no flags Details

Description Red Hat Case Diagnostics 2011-03-15 16:10:33 UTC
This description generated by Andreas from an ABRT report
architecture: x86_64
cmdline: /usr/bin/python -tt /usr/bin/yum-debug-dump
component: yum-utils
executable: /usr/bin/yum-debug-dump
kernel: 2.6.32-71.el6.x86_64
package: yum-utils-1.1.26-11.el6
reason: yum-debug-dump:78:dump_repos:IndexError: list index out of range
release: Red Hat Enterprise Linux Server release 6.0 (Santiago)
time: 1300205401
uid: 0
backtrace: yum-debug-dump:78:dump_repos:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/bin/yum-debug-dump", line 206, in <module>
    main()
  File "/usr/bin/yum-debug-dump", line 202, in main
    fn = my.create_debug_file(fn=filename)
  File "/usr/bin/yum-debug-dump", line 178, in create_debug_file
    fo.write(self.dump_repos())
  File "/usr/bin/yum-debug-dump", line 78, in dump_repos
    msg += '%%%s - %s\n' % (repo.id, repo.urls[0])
IndexError: list index out of range

Local variables in innermost frame:
repo: <yum.yumRepo.YumRepository object at 0x1c91f50>
msg: '%%%%REPOS\n'
self: <__main__.YumDebugDump object at 0x1988ad0>

Comment 1 Red Hat Case Diagnostics 2011-03-15 16:10:53 UTC
Created attachment 485538 [details]
File: backtrace

Comment 4 RHEL Program Management 2011-04-04 02:00:01 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 9 Karel Srot 2011-07-27 11:38:38 UTC
Hi James,
I am unable to reproduce this bug. Do you know the reproducer?

Comment 10 James Antill 2011-07-27 19:59:28 UTC
 No idea, as I said ... it should be impossible.

 You can write some code to do it, using the yum API just create a Repo that has an empty .urls ... but I think a lot of stuff will break.
 My guess is something went wrong in rhnplugin, maybe due to the new caching repos. thing (although the git code was added using a file:// url, so that shouldn't be it).

Comment 15 James Antill 2012-01-10 14:36:16 UTC
Can't reproduce, should be impossible, and customer has closed out their ticket. Closing.


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