Menu

#9 xmlns='punjab:tmp"

open
nobody
None
5
2006-10-24
2006-10-24
Anonymous
No

Why do punjab send messages with xmlns='punjab:tmp" in
body stenza ???
Because of it, lots of messages are not readable for
lots of clients (like psi)

Discussion

  • Greg

    Greg - 2007-01-04

    Logged In: YES
    user_id=1133308
    Originator: NO

    With this patch it seems to work corectly :

    Index: punjab/httpp.py

    RCS file: /cvsroot/punjab/punjab/punjab/httpp.py,v
    retrieving revision 1.32
    diff -u -r1.32 httpp.py
    --- punjab/httpp.py 7 Nov 2005 14:03:03 -0000 1.32
    +++ punjab/httpp.py 4 Jan 2007 00:15:45 -0000
    @@ -84,7 +84,7 @@

    # TODO - fix this hack!
    if self.req['rid'] != '0':
    - self.xml = '<tmp xmlns="punjab:tmp">'+self.xml+'</tmp>'
    + self.xml = '<tmp xmlns="jabber:client">'+self.xml+'</tmp>'

    self.stream.parse(self.xml)
    if self.req['rid'] != '0':

     
  • Nobody/Anonymous

    Logged In: NO

    Many thanks for this patch. It works. But xmlns should really be removed from body tags, it's not conform.

     

Log in to post a comment.