Bug#640615: gajim fails to start when the config file contains blank lines

2011-09-06 Thread Yann Leboulanger

On Mon, 05 Sep 2011 23:08:30 +0200, Pascal Volk wrote:

Package: gajim
Version: 0.14.4-1
Severity: important
Tags: upstream

Dear gajim maintainers,

when I try to start gajim out of a xterm it dies with:

Traceback (most recent call last):
  File gajim.py, line 429, in module
interface = Interface()
  File /usr/share/gajim/src/gui_interface.py, line 3358, in 
__init__

cfg_was_read = parser.read()
  File /usr/share/gajim/src/common/optparser.py, line 66, in 
read

optname, key, subname, value = regex.match(line).groups()
AttributeError: 'NoneType' object has no attribute 'groups'

The reason for the above problem are blank lines in the config file, 
e.g.

in lines 339-343:

 35 version = 0.14.4
  …
337 themes.human.contacttextcolor = #00
338 accounts.xmmp.example.net.subscribe_location = True
339 accounts.xmmp.example.net.subscription_request_msg = Hi 
there,

340
341 some text …
342
343 John Doe
344 accounts.xmmp.example.net.http_auth = ask


In this report, the package maintainer is not responsible, it's Gajim 
software directly, so I'd prefer you report the bug upstream directly.


But as I'm also Gajim developper, I can reply:

You modified your config file by hand, right? Gajim (0.14.4) itself 
should not set empty lines when you save your subscriptio nrequest 
message.


--
Yann



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#640615: gajim fails to start when the config file contains blank lines

2011-09-06 Thread Pascal Volk
On 09/06/2011 10:31 AM Yann Leboulanger wrote:
 On Mon, 05 Sep 2011 23:08:30 +0200, Pascal Volk wrote:
 Package: gajim
 Tags: upstream
 
 In this report, the package maintainer is not responsible, it's Gajim 
 software directly, so I'd prefer you report the bug upstream directly.
 
 But as I'm also Gajim developper, I can reply:
 
 You modified your config file by hand, right? Gajim (0.14.4) itself 
 should not set empty lines when you save your subscriptio nrequest 
 message.

No, I didn't modify the config file by hand. Why should I do that?
On Sunday one of my colleagues asked for Jabber authorization. I did the
same and entered a few lines of text into the text area.

Looks like Gajim 0.14.4 would store multiple lines of text in the wrong
format.


Regards,

Pascal
-- 
Ubuntu is an ancient African word meaning “I can’t install Debian.”
 -- unknown



smime.p7s
Description: S/MIME Cryptographic Signature


Bug#640615: gajim fails to start when the config file contains blank lines

2011-09-06 Thread Yann Leboulanger

On 09/06/2011 08:45 PM, Pascal Volk wrote:

On 09/06/2011 10:31 AM Yann Leboulanger wrote:

On Mon, 05 Sep 2011 23:08:30 +0200, Pascal Volk wrote:

Package: gajim
Tags: upstream

  


it's not easy to manage a bugtracker, but managing 2 


No, I didn't modify the config file by hand. Why should I do that?
On Sunday one of my colleagues asked for Jabber authorization. I did the
same and entered a few lines of text into the text area.

Looks like Gajim 0.14.4 would store multiple lines of text in the wrong
format.


Right, I can reproduce. Fix is in the future 0.15 release.
I build a new 0.14.4 package to fix it, and sent it to my debian developper.

Thanks for the report.
--
Yann



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#640615: gajim fails to start when the config file contains blank lines

2011-09-05 Thread Pascal Volk
Package: gajim
Version: 0.14.4-1
Severity: important
Tags: upstream

Dear gajim maintainers,

when I try to start gajim out of a xterm it dies with:

Traceback (most recent call last):
  File gajim.py, line 429, in module
interface = Interface()
  File /usr/share/gajim/src/gui_interface.py, line 3358, in __init__
cfg_was_read = parser.read()
  File /usr/share/gajim/src/common/optparser.py, line 66, in read
optname, key, subname, value = regex.match(line).groups()
AttributeError: 'NoneType' object has no attribute 'groups'

The reason for the above problem are blank lines in the config file, e.g.
in lines 339-343:

 35 version = 0.14.4
  …
337 themes.human.contacttextcolor = #00
338 accounts.xmmp.example.net.subscribe_location = True
339 accounts.xmmp.example.net.subscription_request_msg = Hi there,
340
341 some text …
342
343 John Doe
344 accounts.xmmp.example.net.http_auth = ask


Best Regards,

Pascal

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gajim depends on:
ii  dnsutils   1:9.7.3.dfsg-1+b1 Clients provided with BIND
ii  python 2.6.7-3   interactive high-level object-orie
ii  python-gtk22.24.0-2  Python bindings for the GTK+ widge

Versions of packages gajim recommends:
ii  dbus  1.4.14-1   simple interprocess messaging syst
ii  notification-daemon   0.7.1-5daemon for displaying passive pop-
ii  plasma-widgets-workspace [not 4:4.6.5-2  plasma widgets and containments fo
ii  python-crypto 2.3-2  cryptographic algorithms and proto
ii  python-dbus   0.84.0-2   simple interprocess messaging syst
ii  python-gnupginterface 0.3.2-9.1  Python interface to GnuPG (GPG)
ii  python-openssl0.13~a1-1  Python wrapper around the OpenSSL 

Versions of packages gajim suggests:
ii  aspell-en 7.1-0-1English dictionary for GNU Aspell
pn  avahi-daemon  none (no description available)
pn  dvipngnone (no description available)
ii  gnome-keyring 3.0.3-2GNOME keyring services (daemon and
ii  gstreamer0.10-plugins-ugly0.10.18-3  GStreamer plugins from the ugly 
ii  libgtkspell0  2.0.16-1   a spell-checking addon for GTK's T
pn  nautilus-sendto   none (no description available)
pn  network-manager   none (no description available)
pn  python-avahi  none (no description available)
pn  python-farsight   none (no description available)
ii  python-gconf  2.28.1-3   Python bindings for the GConf conf
ii  python-gnome2 2.28.1-3   Python bindings for the GNOME desk
pn  python-gnomekeyring   none (no description available)
pn  python-kerberos   none (no description available)
ii  texlive-latex-base2009-13TeX Live: Basic LaTeX 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