Bug 1471229 - yum history list all causes "invalid literal for int() with base 10: 'all'"
Summary: yum history list all causes "invalid literal for int() with base 10: 'all'"
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-14 18:29 UTC by Jonas Jonsson
Modified: 2018-05-29 11:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-29 11:31:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jonas Jonsson 2017-07-14 18:29:56 UTC
Description of problem:
Execurting "sudo yum history list all" gives Python exception.

Version-Release number of selected component (if applicable):
yum-3.4.3-512.fc26.noarch

How reproducible:
Always.

Steps to Reproduce:
1. Run sudo yum history list all
2. See exception
3.

Actual results:
$ sudo yum history list all
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/cli/commands/__init__.py", line 924, in _convert_tids
    tids.add(str2tid(t))
  File "/usr/lib/python3.6/site-packages/dnf/cli/commands/__init__.py", line 905, in str2tid
    tid = int(s)
ValueError: invalid literal for int() with base 10: 'all'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/yum", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.6/site-packages/dnf/yum/main.py", line 34, in user_main
    errcode = dnf.cli.main.main(args, YumConf, YumCli, YumOptionParser)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 115, in cli_run
    cli.run()
  File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 962, in run
    return self.command.run()
  File "/usr/lib/python3.6/site-packages/dnf/cli/commands/__init__.py", line 934, in run
    extcmds = self._convert_tids(merged)
  File "/usr/lib/python3.6/site-packages/dnf/cli/commands/__init__.py", line 927, in _convert_tids
    tids.update(self.output.history.search([t]))
  File "/usr/lib/python3.6/site-packages/dnf/yum/history.py", line 1480, in search
    for row in self._yieldSQLDataList(npatterns, fields, ignore_case):
  File "/usr/lib/python3.6/site-packages/dnf/yum/history.py", line 1460, in _yieldSQLDataList
    executeSQL(cur, qsql, pat_data)
  File "/usr/lib/python3.6/site-packages/dnf/yum/sqlutils.py", line 169, in executeSQLQmark
    return cursor.execute(query, params)


Expected results:


Additional info:

Comment 1 Fedora End Of Life 2018-05-03 09:01:52 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2018-05-29 11:31:40 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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