priyadi / roundcube-converse.js-xmpp-plugin

XMPP plugin for Roundcube Webmail based on converse.js
48 stars 18 forks source link

js errors #8

Closed alexanderustinov closed 10 years ago

alexanderustinov commented 10 years ago

New to this plugin and have a problem.

Serverside: roundcube 0.9.5 on debian 7 with prosody 0.8.2 and nightly converse plugin. Clientside: iceweasel (firefox) 17

According to the prosody logs BOSH sessions are opening when i log in to roundcube and the xmpp server connectivity is allright: mod_bosh info New BOSH session, assigned it sid '1b387834-b178-4e60-b681-98a66e21dc2f'

But when i click "toggle chat" button nothing happens. In the browser log there are two errors: 1.Keys should not be generated without CSPRNG. converse.min.js?s=1384069363 Line: 142 2.ReferenceError: locales is not defined http://my.site.domain.net/?_task=mail&_mbox=INBOX# Line: 457

Is it a bug or i am doing something wrong? :)

A.

priyadi commented 10 years ago

Hi,

Can you try without devel mode first? Or at least use the converse version specified in submodule (commit 3c57892cbf7e11bcd12a2bbae3e7ac37bf9e2a8a). The code is still untested with latest version of converse.

alexanderustinov commented 10 years ago

devel mode is false, unfortunately

(have no permission to view commit 3c57892)

priyadi commented 10 years ago

Hi, the error "Keys should not be generated without CSPRNG" seems to be related to OTR. What browser/OS are you using? Can you try with another OS/browser?

jcbrand commented 10 years ago

Hi guys, FWIW Keys should not be generated without CSPRNG does sound like OTR but I've never encountered it before.

alexanderustinov commented 10 years ago

Tried:

  1. Firefox 17 on linux - no conversation window after click on "toggle chat"
  2. Firefox 24 on win - window opens, tells me to enter jid and pass (but in the config i tell plugin to use roundcube credentials). xmpp error log tells nothing. jabber-server says "new bosh session".

Not quite sure where is problem (jabber service is new to this server).

Ah, forgot.

  1. Doesn't work in ie 8 also! :)
jcbrand commented 10 years ago

The main problem is that your browser doesn't have a CSRNG (Cryptographically secure random number generator) required for the OTR encryption.

If you want to use iceweasel 17 or IE then you're better off using the 0.6.6 release, which doesn't have the OTR functionality.

jseidl commented 10 years ago

For the behavior you've mentioned (windows not showing up, showing up with devel mode but requiring credentials) you are probably having issues with the bosh XMPP prebinding. Try to connect through BOSH with Pidgin and see if that works, then proceed to converse. You might also need to setup an reverse proxy in front if facing CORS issues..

ref http://metajack.im/2010/01/19/crossdomain-ajax-for-xmpp-http-binding-made-easy/ and http://wiki.movim.eu/manual:bosh_servers

priyadi commented 10 years ago

I'm closing this because apparently the CSRNG requirement is fixed in converse.js 0.7.1 (changelog entry: Don't load OTR crypto if the browser doesn't have a CSRNG). The other issues seem to be configuration problem.

Let me know if I'm wrong on this.

alexanderustinov commented 10 years ago

Everything is correct, thank you.