Hi,
I did manage to get it *connecting* to the jabber server - in
C:\Python24\Lib\site-packages\gov\lbl\dsd\bajjer\io.py, I replaced the single
quotes with double quotes on line 110. This is also of course incorrect as
single quotes are just as valid. To make it completely correct, I would have
the function check first single and then double quotes e.g.
ids = re.findall("id='([^']+)'", data)
if len(ids) == 0:
ids = re.findall("id=\"([^\"]+)\"", data)
if len(ids) == 0:
return None
return ids[0]
The second problem is then that the servers don't seem to understand the
presence type "available". From what I can tell, in
C:\Python24\Lib\site-packages\AccessGrid3\AccessGrid\Jabber\JabberClient.py,
you would need to replace line 86 with:
if type == 'unavailable':
i.e. remove the available from the if. This should then send the presence
information without a type (which I think means available in other clients).
The third problem, probably the hardest to solve, is to replace the code that
determines the conference server in
C:\Python24\Lib\site-packages\AccessGrid3\AccessGrid\Jabber\JabberClient.py
lines 1263 - 1268. This needs to be replaced with a call to the service
discovery of the jabber server. This should then search for a service with
category "conference" and type "text". This can then be used as the conference
service.
Unfortunately, I don't know how to do this bit. In the short run, you can
always be just as bad, and just prepend "conference" to jabberHost. This would
work with openfire.
Andrew :)
---------------------------------------------------------
Andrew G D Rowley
Senior Development Officer
Research Computing Services
The University of Manchester
Devonshire House, Oxford Road
Manchester, M13 9PL
t : +44 (0) 161 275 0685
e : [email protected]
w : www.manchester.ac.uk/researchcomputing
---------------------------------------------------------
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dinale, Justin
Sent: 12 March 2009 22:46
To: [email protected]
Subject: Re: [AG-TECH] Spam sent to room text chat
Andrew,
A few emails a go you said "I am just fiddling with the Openfire jabber source
code to add the appropriate bit that will hopefully make it work with single
inverted commas (to avoid needing to upgrade everyone's client).", does this
mean you were able to change the AG client side to work with Openfire?
We're using AG on an intranet, and for us upgrading everyone's client is a
reasonable option. If you did change the AG client side, how much work did it
entail?
Cheers,
Justin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew Rowley
Sent: Friday, 13 March 2009 3:46 AM
To: [email protected]
Subject: Re: [AG-TECH] Spam sent to room text chat
Hi,
It appears that there are too many problems in the AG Toolkit Jabber client to
make it work with other servers. I got it to work with openfire by changing
openfire to send an id with single inverted commas instead of double ones.
This lead to other issues, the main one being that it assumes that the jabber
server is conference.{sub-domain}, rather than checking with the server to see
what it is registered under. So jabber.mcs.anl.gov becomes
conference.mcs.anl.gov without checks. Other servers don't seem to do things
this way i.e. they tend to make the server conferernce.jabber.mcs.anl.gov.
This is too fixed in the openfire code to change, so I have given up for now.
Andrew :)
---------------------------------------------------------
Andrew G D Rowley
Senior Development Officer
Research Computing Services
The University of Manchester
Devonshire House, Oxford Road
Manchester, M13 9PL
t : +44 (0) 161 275 0685
e : [email protected]
w : www.manchester.ac.uk/researchcomputing
---------------------------------------------------------
-----Original Message-----
From: Michael Miller [mailto:[email protected]]
Sent: 12 March 2009 13:33
To: Andrew Rowley
Subject: Re: [AG-TECH] Spam sent to room text chat
Andrew,
I had installed OpenFire a while ago and wasn't able to get it to work with the
VenueClient. Perhaps the quotes were the reason. Please let me know if you
need someone to test your fix.
thanks
Michael
"If you're clear in your vision and trust the people in your team with clear
objectives, they will invariably do their best to achieve everything desired,
and usually deliver everything you could have hoped for and even more." -Paul
Debevec
----- Original Message -----
From: "Andrew Rowley" <[email protected]>
To: "Natalia Costas Lago" <[email protected]>, "ag-tech" <[email protected]>
Sent: Thursday, March 12, 2009 6:55:43 AM GMT -06:00 US/Canada Central
Subject: Re: [AG-TECH] Spam sent to room text chat
Hi,
Interestingly, I am looking at this at the moment. Unfortunately, the Jabber
client in the toolkit has a bit of code that assumes that the XML attributes
use single inverted commas. I am just fiddling with the Openfire jabber source
code to add the appropriate bit that will hopefully make it work with single
inverted commas (to avoid needing to upgrade everyone's client).
I will put it somewhere when I have done and let the list know.
Andrew :)
---------------------------------------------------------
Andrew G D Rowley
Senior Development Officer
Research Computing Services
The University of Manchester
Devonshire House, Oxford Road
Manchester, M13 9PL
t : +44 (0) 161 275 0685
e : [email protected]
w : www.manchester.ac.uk/researchcomputing
---------------------------------------------------------
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Natalia Costas Lago
Sent: 12 March 2009 11:44
To: ag-tech
Subject: [AG-TECH] Spam sent to room text chat
Dear all,
We received porn and ads to the text chat in our Venue Server Lobby
room. I have checked the jabber server the venue client uses is the following
"VenueServer.textHost" : 'jabber.mcs.anl.gov',
I wonder if there are some documents that explain how to deploy our own
jabber server. Or at least a way an admin can add some filters to
avoid non allowed IP addresses send messages.
Thanking you in advance.
Kind regards,
====================================================
Natalia Costas Lago
Técnico de Comunicaciones - Dpto. de Comunicaciones
Centro de Supercomputacion de Galicia (CESGA)
Avenida de Vigo, s/n (Campus Sur)
15705 Santiago de Compostela - SPAIN
E-mail: [email protected]
Tel: +34 981 56 98 10 (ext. 237)
Fax: +34 981 59 46 16
Web: http://www.cesga.es/
====================================================
IMPORTANT: This email remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT
1914. If you have received this email in error, you are requested to contact
the sender and delete the email.