Ticket #1803 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

gmail users vcard created with a resource

Reported by: baron@… Owned by: asterix
Priority: normal Milestone: 0.10
Component: None Version: svn
Severity: normal Keywords:
Cc: OS:

Description

Traceback (most recent call last):

File "/home/jnewton/pkgs/gajim/src/common/xmpp/idlequeue.py", line 133, in process_events

obj.pollin()

File "/home/jnewton/pkgs/gajim/src/common/xmpp/transports_nb.py", line 143, in pollin

self._do_receive()

File "/home/jnewton/pkgs/gajim/src/common/xmpp/transports_nb.py", line 244, in _do_receive

self.on_receive(received)

File "/home/jnewton/pkgs/gajim/src/common/xmpp/dispatcher_nb.py", line 347, in dispatch

handlerfunc?(session,stanza)

File "/home/jnewton/pkgs/gajim/src/common/connection_handlers.py", line 943, in _vCardCB

self.save_vcard_to_hd(who, card)

File "/home/jnewton/pkgs/gajim/src/common/connection_handlers.py", line 766, in save_vcard_to_hd

fil = open(path_to_file, 'w')

IOError: [Errno 21] Is a directory: u'/home/jnewton/.gajim/vcards/xoxegarcia@…-'

This directory contains the file 'Talk.v91BA0877D8-' which looks like a full vcard file to me. Once I removed the directory, restarted gajim the error went away. I regot information on this user and the xoxegarcia@…- was recreated as a file with the full vcard.

Attachments

Change History

Changed 3 years ago by nk

I would like also to ask why I have foo and foo- files in vcards dir?

and why in avatars dir:

stpeter@jabber.org-.jpeg
stpeter@jabber.org-_notif_size_bw.png
stpeter@jabber.org-_notif_size_colored.png
stpeter@jabber.org.jpeg
stpeter@jabber.org_notif_size_bw.png
stpeter@jabber.org_notif_size_colored.png

(not the - and without -)

Changed 3 years ago by nk

I meant note instead of 'not' ;(

Changed 3 years ago by asterix

without '-': old version without punycode: delete it, it's no more used.

For the main pb:

~/.gajim/vcards/xoxegarcia@…-' should not be a folder with 'Talk.v91BA0877D8-' in it. So the problem is why is it created as a folder with resource name in it ? do you know how to reproduce that ? I'll look at the code.

Changed 3 years ago by nk

so the correct is with -?

why stpeter@… gets a - in the end? afterall it's all latin. this is strange

Changed 3 years ago by baron@…

Just a note. This user subscribed to me for the first time yesterday. I understand that the vcard storage changed a sometime ago. I keep up to date on the svn repository almost every morning.

Changed 3 years ago by nk

  • status changed from new to closed
  • resolution set to worksforme
  • milestone set to 0.10

I cannot repro this. I talk with Gtalk and Gmail users everyday. never had this. maybe it was a bad state between some commits you faced there?

Add/Change #1803 (gmail users vcard created with a resource)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.