nekohayo / specto

Automatically exported from code.google.com/p/specto
0 stars 0 forks source link

brackets in watch name lead to startup crash #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hard brackets [ ], if used in the watch 'Name:' lead to a crash at startup
(this is with ubuntu gusty, but i believe it will lead to the same issue on
any distro

What steps will reproduce the problem?
1. add a new watch with brackets in the name, my example which led to the
first crash was "pangie's blog [idle rantings]"
2. save the watch, close the program, restart specto

What is the expected output? What do you see instead?
i expected specto to run, but instead i got

[CODE]
cvaty@cvaty-laptop:~$ specto
Traceback (most recent call last):
  File "/usr/bin/specto", line 38, in <module>
    specto = Specto()
  File "/usr/lib/python2.5/site-packages/spectlib/main.py", line 100, in
__init__
    self.watch_io = Watch_io()
  File "/usr/lib/python2.5/site-packages/spectlib/watch.py", line 174, in
__init__
    self.cfg = ini_namespace(file(self.file_name))
  File "/usr/lib/python2.5/site-packages/spectlib/iniparser.py", line 621,
in __init__
    self.readfp(fp)
  File "/usr/lib/python2.5/site-packages/spectlib/iniparser.py", line 762,
in readfp
    raise exc
ConfigParser.ParsingError: File contains parsing errors:
/home/cvaty/.specto/watches.list
        [line 15]: [pangie's blog [idle rantings]]

[/CODE]

What version of the product are you using? On what operating system?
0.2.2 gusty gibbons 7.10 fully up to date

Please provide any additional information below.
 fixes would be, fix your parser, or disallow hard brackets

Original issue reported on code.google.com by chris.ca...@gmail.com on 3 Oct 2007 at 5:38

GoogleCodeExporter commented 9 years ago
Thank you for reporting this bug.
This is indeed a problem with the parser and i will try to fix it in the next 
release
(which will be amazing ;))

Original comment by woutclym...@gmail.com on 4 Oct 2007 at 6:48

GoogleCodeExporter commented 9 years ago
Fixed in Branch-Wout 
Fix: before writing i change the brackets to &brStart and &brEnd and when i 
read the
file i change them back to brackets :)

Original comment by woutclym...@gmail.com on 11 Jan 2008 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by woutclym...@gmail.com on 11 Jan 2008 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by woutclym...@gmail.com on 10 Feb 2008 at 4:41

GoogleCodeExporter commented 9 years ago

Original comment by nekoh...@gmail.com on 18 Mar 2008 at 2:33