I cannot log in to Coccinella at work

Bug #192896 reported by Joan
2
Affects Status Importance Assigned to Milestone
Coccinella
Fix Released
High
Mats

Bug Description

Good afternoon,
I am sorry not to log in to Coccinella at work. Always I get report that can´t read "state (httpurl)". I am behind proxy but IP and port of proxy is filled automatically... I don´t know how to solve this problem. Many thanks!

Revision history for this message
sander (s-devrieze) wrote :

Which version of Coccinella are you using?

Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → High
Revision history for this message
Joan (janula-pce) wrote :

First I tried version 0.96.4.1 and 0.96.5 is the same :-( I am able to connect at home (without proxy) and unable at work (with proxy which IP and port I know...)

Revision history for this message
Mats (matsben) wrote :

I have just checked in several fixes for the jlib::http package but is unable to test it with jabber.ru since I get Content-Size: 0 responses on the first stream.

Note that there are two HTTP protocols related to XMPP:
http://www.xmpp.org/extensions/xep-0025.html
http://www.xmpp.org/extensions/xep-0124.html

Me uses 0025 and ejabberd seems also: http://www.ejabberd.im/protocols

HTTP support is very little tested due to unreliable server implementations.

Revision history for this message
Mats (matsben) wrote :

Just checked in many fixes and rewrites for the HTTP polling code. Now also tested with ejabberd at jabber.ru and it works fine. The error you get about "state (httpurl)" can be a side effect of the buggy HTTP code.

Changed in coccinella:
status: New → In Progress
Revision history for this message
Mats (matsben) wrote :

Although I was never able to reproduce this one I spotted a missing initialization of this variable. Note that many fixes have been made to jlib::http during this bug hunt!

Changed in coccinella:
milestone: none → 0.96.6
status: In Progress → Fix Committed
Revision history for this message
Joan (janula-pce) wrote :

Well, I know IP number and number of port of HTTP proxy server at work - must I search out and fill in also name and password of proxy? So I know IP of my computer but don´t know port... and Coccinella include field for Computer and field for port - what to fill in here? My account is on jabber server njs.netlab.cz (Czech rep.). I have marked "Use HTTP transport" and IP and port of proxy were filled up automatically. But what to write to field URL?
Coccinella is very nice jabber client and I very hope to use it at work...
Many thanks for help in advance :-)

Revision history for this message
sander (s-devrieze) wrote :

You have to enter http://njs.netlab.cz:5280/http-poll in that field. That's the address of the HTTP Polling front end of your Jabber server.

Revision history for this message
Mats (matsben) wrote : Re: [Bug 192896] Re: I cannot log in to Coccinella at work

If the server has HTTP support it should have set up a DNS TXT record.
I tested the server and it hasn't a DNS entry for this:

proc cb {args} {puts "---> $args"}
jlib::dns::get_http_poll_url njs.netlab.cz cb
::dns::2
---> {} {Name Error - domain does not exist}

I was testing the default one http://njs.netlab.cz:5280/http-poll/
This is the http you get if you leave the URL field empty.
It connects but then it says there is a "key sequence error"
Not sure what that is...
Then tried again, and that worked! Seems not so reliable, however.
So, just cross the "Use HTTP transport" and nothing else.
I'm not behind a proxy so that not tested.

On 2/26/08, Joan <email address hidden> wrote:
> Well, I know IP number and number of port of HTTP proxy server at work -
> must I search out and fill in also name and password of proxy? So I know IP
> of my computer but don´t know port... and Coccinella include field for
> Computer and field for port - what to fill in here? My account is on jabber
> server njs.netlab.cz (Czech rep.). I have marked "Use HTTP transport" and IP
> and port of proxy were filled up automatically. But what to write to field
> URL?
> Coccinella is very nice jabber client and I very hope to use it at work...
> Many thanks for help in advance :-)
>
> --
> I cannot log in to Coccinella at work
> https://bugs.launchpad.net/bugs/192896
> You received this bug notification because you are a bug assignee.
>

Revision history for this message
Joan (janula-pce) wrote :

So: insted of report "expected integer but got" I now read report "Couldn´t open socket: invalid argument"
I have filled URL: http://njs.netlab.cz:5280/http-poll and proxy is automatically.
In tab where is: proxy - NAT -ports I have put: built in server: 5222 (or 5280)
                                         HTTP: 443 (or 5280)
and all the time I read after a few seconds that Couldn´t open socket...
Please, have I ports filled correctly?
Thanks!

Revision history for this message
Joan (janula-pce) wrote :

One small note: in tablet where is Login (I have translated all Coccinella into Czech) in field "Profile" it offers me (by the help of arrow) only Google talk and jabber.org. I must fill my JID (<email address hidden>) manually.

Revision history for this message
sander (s-devrieze) wrote :

1) You can add or edit profiles using the Edit Profiles menu entry in the File menu.
2) Are you using the latest breakfast development build of Coccinella? (there are fixes in there related to HTTP Polling)
3) Do you need to enter proxy settings in your web browser to connect to websites at work?
4) If the answer on #3 is yes: copy these proxy settings to Coccinella.
5) You'll have to enter http://njs.netlab.cz:5280/http-poll in the HTTP transport field.
6) Can you verify in your web browser if you can access http://njs.netlab.cz:5280/http-poll ? Normally you should see some error about bad XML in Firefox. If you don't see this, your company's firewall may block port 5280.

What will happen if you do all this?
-->Coccinella will connect to http://njs.netlab.cz:5280/http-poll using HTTP instead of using a normal connection with the server. As this is HTTP traffic, it'll be send through the proxy of which you entered the details in the Coccinella preferences.

Hope this makes things clear.

Revision history for this message
Mats (matsben) wrote :

First, you need to have the "daily build" since I have many fixes for the HTTP
http://coccinella.im/dailybuild
What I did: I just checked the "Use HTTP transport"
and leave the "Url:" empty. The default fills in automatically if
there is no DNS TXT support.
This works for me but sometimes I get an "invalid key".
HTTP proxy settings are never tested since I don't have one. Sorry.

Revision history for this message
Joan (janula-pce) wrote :

Hurááááááá !!!!
I am connected after I downloaded the last version 0.96.5 from your link, Mats, thanks very much :-))
I have looked at my configuration of ports at home and I have there this:
Built in server: 8235 so I tried to use it at work. HTTP I set up to 5280 (at home I have 8077) and I can use Coccinella both at home and at work!
Thank you boys once more :-))

Revision history for this message
Joan (janula-pce) wrote :

I would like to ask: Coccinella displays ICQ transports as many as contacts I have in the ICQ roster? For example: I have three ICQ contacts there and I see three times icq.netlab.cz - is it correct?
But I am very glad Coccinella works, I have test out it with my friend a few minutes ago :-))

Revision history for this message
Joan (janula-pce) wrote :

Mats, please, is Coccinella disposable on the USB flash disk? My father has not internet at home (he use to go to coffee-bar and so on) and the whiteboard we would use many times.
Thanks.

Revision history for this message
sander (s-devrieze) wrote :

> I would like to ask: Coccinella displays ICQ transports as many as contacts I have in the ICQ roster? For example: I have three ICQ contacts there and I see three times icq.netlab.cz - is it correct?

That must be a bug. Can you open a new bug tracker entry for this?

Revision history for this message
sander (s-devrieze) wrote :

> Mats, please, is Coccinella disposable on the USB flash disk? My father has not internet at home (he use to go to coffee-bar and so on) and the whiteboard we would use many times.

Yes, that's possible. But please ask questions like this in our forum:
http://coccinella.im/forum This tracker is only for bug reports and
feature wishes; not for questions and things like that. I'm happy to
answer your question when you repost it in the forum.

Revision history for this message
Joan (janula-pce) wrote :

Oh, I am sorry, I don´t realize this is not place for all my questions...
I try to write it into forum, thanks.
P.S.: Well, I put my bug into new track.

Revision history for this message
Mats (matsben) wrote :

Back to the original bug about the buggy HTTP transport: When I tested
it it worked most of the time but I got "key sequence errors" which
I've never seen on jabber.ru, and I believe both servers are ejabberd.
So I looked over it again and I schedule a new post when starting the
HTTP transaction and not when I receive the response. So I got worried
that there can be a lot of HTTP queries queued up and they can get out
of order somehow, if the HTTP server is really slow. Better is to
reschedule a POST when I get the response instead. I think this is
safer. Will do.

Revision history for this message
Mats (matsben) wrote :

The HTTP polling has now been rewritten yet another time for better stability, hopefully. Each poll is now only rescheduled from the HTTP response and not when doing the POST query. This is a much saner way to do it which should avoid multiple queries to queue up. Now only at most only a single pending POST may exist.

sander (s-devrieze)
Changed in coccinella:
status: Fix Committed → 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.