restore-trash crashed with ValueError in run(): invalid literal for int() with base 10: '536-540'

Bug #1046990 reported by Steve Magoun
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
trash-cli (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

restore-trash crashed when I tried to provide a range of files to delete rather than a single file

To reproduce:
1) Run 'restore-trash'
2) At the input prompt, enter a range like '1-2'

Expected results:
trash-cli complains that the input is invalid; there is no stack dump

Actual results:
Stack dump

[Ideally a range would be valid input!]

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: trash-cli 0.12.7-1
ProcVersionSignature: Ubuntu 3.5.0-13.14-generic 3.5.3
Uname: Linux 3.5.0-13-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.5.1-0ubuntu4
Architecture: amd64
Date: Thu Sep 6 14:15:54 2012
ExecutablePath: /usr/bin/restore-trash
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/restore-trash
ProcEnviron:
 TERM=xterm
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/restore-trash']
SourcePackage: trash-cli
Title: restore-trash crashed with ValueError in run(): invalid literal for int() with base 10: '536-540'
UpgradeStatus: Upgraded to quantal on 2012-08-07 (30 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Steve Magoun (smagoun) wrote :
description: updated
tags: removed: need-duplicate-check
Changed in trash-cli (Ubuntu):
importance: Undecided → Medium
Andreas Moog (ampelbein)
information type: Private → Public
Revision history for this message
Andreas Moog (ampelbein) wrote :

Thanks for the report, forwarded to the author of the software as 2 seperate issues:

https://github.com/andreafrancia/trash-cli/issues/21 - Don't crash on invalid input
https://github.com/andreafrancia/trash-cli/issues/22 - Support ranges

Changed in trash-cli (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.