Uncaught 'NoSectionError' configgui when adding report settings (SMTP server etc.)

Bug #683990 reported by Georg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sbackup
Status tracked in Trunk
0.11
Fix Released
Low
Jean-Peer Lorenz
Trunk
Fix Released
Low
Jean-Peer Lorenz
sbackup (Ubuntu)
Fix Released
Undecided
Jean-Peer Lorenz

Bug Description

Binary package hint: sbackup

Steps to reproduce:
1) Open Simple Backup-Configuration from the menu
2) Go to the Report tab
3) Paste "smtp.gmail.com" into the SMTP server field (all other fields empty or default value)

Expected result:
- Text pasted, no uncaught errors

Actual Result:
- Text paster, but with uncaught error (see details below)

Further Info:
- Also happens in the To field
- Only happens on pasting from the clipboard. Writing directly in the field works fine.

Error Message:
-----------------------------------------------------------------
Sorry, this should not have happened

An uncaught error occurred. Close this message window and restart the application.

Please report this error on https://bugs.launchpad.net/sbackup.

No section: 'report'

Traceback (most recent call last):
  File "/usr/share/sbackup/sbackup/ui/configgui.py", line 1775, in on_smtpserver_changed
    self.configman.set("report", "smtpserver", self.widgets['smtpserver'].get_text())
  File "/usr/share/sbackup/sbackup/core/ConfigManager.py", line 645, in set
    ConfigParser.ConfigParser.set(self, section, option, value)
  File "/usr/lib/python2.6/ConfigParser.py", line 377, in set
    raise NoSectionError(section)
NoSectionError: No section: 'report'
-----------------------------------------------------------------

Ubuntu Release:
Description: Ubuntu 10.10
Release: 10.10

Simple Backup Package:
sbackup:
  Installed: 0.11.3ubuntu1
  Candidate: 0.11.3ubuntu1
  Version table:
 *** 0.11.3ubuntu1 0
        500 http://mirrors.163.com/ubuntu/ maverick/universe amd64 Packages
        100 /var/lib/dpkg/status

Related branches

Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Thank you for using SBackup and for taking the time reporting this bug.

In order to track down the cause of the problem some more information are required. Please answer the following questions:

* Is the bug reproducible; does it happen every time?
* do you run sbackup as superuser (root) or as regular user?

Thanks for your help.

Revision history for this message
Georg (stiggeorg) wrote :

* Is the bug reproducible; does it happen every time?
 - It used to be reproducible in the version I reported it on. However, it seems to have been fixed along the way. I'm not sure if sbackup has been updated along the way, but the problem seems to have disappeared nonetheless.

* do you run sbackup as superuser (root) or as regular user?
- as root

It seems you can close this bug, though.

summary: - Uncaught error in sbackup config when pasting to SMTP server field
+ Uncaught 'NoSectionError' configgui when adding report settings (SMTP
+ server etc.)
Changed in sbackup (Ubuntu):
assignee: nobody → Jean-Peer Lorenz (peer.loz)
Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

This error happens if report settings are changed while no section 'report' was initialized within the configuration file so far. It was not yet fixed as stated in comment #2 rather it is only triggered under certain circumstances. It is fixed now by checking the existance of section 'report' before adding options to it.

Changed in sbackup (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sbackup - 0.11.4-0ubuntu1

---------------
sbackup (0.11.4-0ubuntu1) natty; urgency=low

  * [Fix] LP: #714916 Unhandled error in gio backend when looking up
                      verbose error message
  * [Fix] LP: #662613 sbackup crashes with 'NonValidOptionException'
  * [Fix] LP: #709338 Restore/revert of non-toplevel items produces only
                      empty folders
  * [Fix] LP: #689016 Uncaught error 'invalid literal for int() when
                      processing invalid configuration files
  * [Fix] LP: #697386 RemoteMountFailedError 'Max. number of password inputs
                      reached' not handled properly
  * [Fix] LP: #697654 No desktop session found: no notification icon:
  * [Fix] LP: #701403 Unable to use remote target without giving a password:
  * [Fix] LP: #588578 Email notification/reporting doesn't work with GMAIL
  * [Fix] LP: #706037 Email reports not working; enable debug output
                      for sending mail
  * [Fix] LP: #683990 Uncaught 'NoSectionError' when adding report settings
                      (SMTP server etc.)
  * [Fix] LP: #695613 Empty notification popup due to invalid markup
  * [Fix] LP: #671785 Parsing remote URIs fails when username or password
                      contains special characters; quote special characters
                      to comply with RFC 1738 sec. 3.1
  * [Fix] LP: #675361 Restore process fails with error 'is not a file' while
                      copying
  * [Fix] LP: #696183 Failed to set GID to `admin`; improved handling of
                      non-existent user groups
  * [Fix] LP: #507177 update translations
  * debian/control: added gconf2 and desktop-file-utils to Depends
 -- Jean-Peer Lorenz <email address hidden> Tue, 08 Feb 2011 13:58:43 +0100

Changed in sbackup (Ubuntu):
status: Confirmed → Fix Released
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.