broken syncdaemon.conf; improve the error handling
Bug #561936 reported by
Jan Oetjen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
Confirmed
|
Low
|
Ubuntu One Foundations+ team |
Bug Description
For reasons I don't know my syncdaemon.conf looks exactly like:
org/1999/
<http://
which obviously is completly wrong. Unfortunately the Ubuntu One Client is missing some error checking when reading the file and crashes if I right click the icon. I simply fixed this by removing the config directory and letting the client generate a new one, but I think it would be a good idea to improve the error handling when the file is read in the client to prevent crashes.
Jan
P.S.: I attached the broken syncdaemon.conf
summary: |
- broken syncdaemon.conf + broken syncdaemon.conf; improve the error handling |
tags: | added: chicharra chicharra-maverick |
Changed in ubuntuone-client: | |
importance: | Undecided → High |
importance: | High → Medium |
tags: |
added: chicharra-natty removed: chicharra-maverick |
Changed in ubuntuone-client: | |
assignee: | nobody → Ubuntu One Foundations+ team (ubuntuone-foundations+) |
assignee: | Ubuntu One Foundations+ team (ubuntuone-foundations+) → nobody |
Changed in ubuntuone-client: | |
assignee: | nobody → Roberto Alsina (ralsina) |
tags: |
added: chicharra-oneiric removed: chicharra-natty |
To post a comment you must log in.
I confirmed it on Maverick and Natty, version:
ii ubuntuone-client 1.5.3+r839~natty1
If I create a garbage syncdaemon.conf, it fails with this error:
Traceback (most recent call last): ubuntuone- client/ ubuntuone- syncdaemon" , line 187, in <module> ubuntuone- client/ ubuntuone- syncdaemon" , line 74, in main pymodules/ python2. 7/ubuntuone/ syncdaemon/ config. py", line 375, in configglue read(filenames) python2. 7/ConfigParser. py", line 297, in read python2. 7/ConfigParser. py", line 504, in _read eaderError( fpname, lineno, line) MissingSectionH eaderError: File contains no section headers. .config/ ubuntuone/ syncdaemon. conf, line: 1
File "/usr/lib/
main(sys.argv)
File "/usr/lib/
args=args, usage=usage)
File "/usr/lib/
cp.
File "/usr/lib/
self._read(fp, filename)
File "/usr/lib/
raise MissingSectionH
ConfigParser.
file: /home/ralsina/