Package: python-pyrrd Version: 0.1.0-1 Severity: normal Tags: upstream Dear Maintainer,
When using the external backend, pyrrd does not properly sanitize the filename parameter passed to the shell and, for example, fails to use / create a database with spaces in the filename. A simple example adapted from the doctests:: >>> from pyrrd.rrd import DataSource, RRA, RRD >>> filename = 'a test.rrd' >>> dataSources = [] >>> roundRobinArchives = [] >>> dataSource = DataSource(dsName='speed', dsType='COUNTER', heartbeat=600) >>> dataSources.append(dataSource) >>> roundRobinArchives.append(RRA(cf='AVERAGE', xff=0.5, steps=1, rows=24)) >>> myRRD = RRD(filename, ds=dataSources, rra=roundRobinArchives, start=92080440 0) >>> myRRD.create() rrdtool create a test.rrd --start 920804400 --step 300 DS:speed:COUNTER:600:U:U RRA:AVERAGE:0.5:1:24 Traceback (most recent call last): File "<input>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/pyrrd/rrd.py", line 175, in create self.backend.create(*data) File "/usr/lib/python2.7/dist-packages/pyrrd/backend/external.py", line 49, in create output = _cmd('create', parameters) File "/usr/lib/python2.7/dist-packages/pyrrd/backend/external.py", line 21, in _cmd raise ExternalCommandError(stderr.strip()) ExternalCommandError: ERROR: can't parse argument 'test.rrd' -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 3.2.0-3-686-pae (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-pyrrd depends on: ii python 2.7.3~rc2-1 ii python-rrdtool 1.4.7-2 ii python2.6 2.6.8-0.2 ii python2.7 2.7.3~rc2-2.1 ii rrdtool 1.4.7-2 python-pyrrd recommends no packages. python-pyrrd suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org