librelist archives

« back to archive

#439 auto_login and keepalive not working

#439 auto_login and keepalive not working

From:
Christopher Smith
Date:
2015-08-19 @ 05:20
Team,

How to overcome this issue?

when I disable keepalive, my client seems to not broadcast its presence

I am not an xmpp expert, I did see something, (I cannot find the link again)

about strophe.js version being changed.

I appreciate all of your help.

thanks

Re: [conversejs] #439 auto_login and keepalive not working

From:
Jc Brand
Date:
2015-08-19 @ 10:02
On Wed, Aug 19, 2015 at 01:20:08AM -0400, Christopher Smith wrote:
>    Team,
>    How to overcome this issue?
>    when I disable keepalive, my client seems to not broadcast its presence
>    I am not an xmpp expert, I did see something, (I cannot find the link
>    again)
>    about strophe.js version being changed.
>    I appreciate all of your help.
>    thanks

In the ticket I mention that the problem is solved and there are links to the
commits I made to fix it.

I should make a new release of converse.js soon which will contain those fixes.

JC

Re: [conversejs] #439 auto_login and keepalive not working

From:
Jc Brand
Date:
2015-08-24 @ 16:43
On Tue, Aug 25, 2015 at 01:11:14AM -0400, Christopher Smith wrote:
>    after upgraded to v0.95, I still face the same issue as per bug 439
>    the chat only displays (when keepalive and auto login are not used
>    together)
>    .getJSON('/session', function (data) {
>                    converse.initialize({
>                    auto_list_rooms: false,
>                    auto_subscribe: false,
>                    allow_muc : false,
>                    allow_registration: false,
>                    bosh_service_url: data.boshUrl, // Please use this 
connection manager only for testing purposes
>                    hide_muc_server: true,
>                    //i18n: locales.en, // Refer to ./locale/locales.js 
to see which locales are supported
>                    auto_reconnect: true,
>                    auto_login: true,
>                    authentication: 'prebind',
>                    keepalive: false,
>                    jid: data.jid,
>                    rid: data.rid,
>                    sid: data.sid,
>                    debug: true,
>                    show_controlbox_by_default: false,
>                    roster_groups: false,
>                    allow_logout: false,
>                });

I'm starting to get annoyed, because instead of reading the documentation for
the config settings that you are using, you want other people to spend their
time telling you what to do.

The auto_login setting doesn't take a rid, sid and jid and isn't compatible
with with 'prebind' authentication. You would know that if you'd spend a few
minutes reading up on the different configuration settings.

https://conversejs.org/docs/html/configuration.html#auto-login
https://conversejs.org/docs/html/configuration.html#authentication

Re: [conversejs] #439 auto_login and keepalive not working

From:
Christopher Smith
Date:
2015-08-25 @ 11:32
JC

I think you read with a great amount of discernment here and your insight
is not fortified with your development experience of the software.

During the selection of software for chat, our goal was to require no
passwords in javascript- hence prebind was selected.  During version 0.9 of
our software this seemed to work.

How would one secure a solution with xmpp jid and password in plaintext?

This seems to readily allow one to use an outside xmpp client to connect to
the services.

I thank you for your help and encourage you to exercise  tact and grace
while providing help to those with less experience in your software.

thanks again.

On Mon, Aug 24, 2015 at 12:43 PM, JC Brand <lists@opkode.com> wrote:

> On Tue, Aug 25, 2015 at 01:11:14AM -0400, Christopher Smith wrote:
> >    after upgraded to v0.95, I still face the same issue as per bug 439
> >    the chat only displays (when keepalive and auto login are not used
> >    together)
> >    .getJSON('/session', function (data) {
> >                    converse.initialize({
> >                    auto_list_rooms: false,
> >                    auto_subscribe: false,
> >                    allow_muc : false,
> >                    allow_registration: false,
> >                    bosh_service_url: data.boshUrl, // Please use this
> connection manager only for testing purposes
> >                    hide_muc_server: true,
> >                    //i18n: locales.en, // Refer to ./locale/locales.js
> to see which locales are supported
> >                    auto_reconnect: true,
> >                    auto_login: true,
> >                    authentication: 'prebind',
> >                    keepalive: false,
> >                    jid: data.jid,
> >                    rid: data.rid,
> >                    sid: data.sid,
> >                    debug: true,
> >                    show_controlbox_by_default: false,
> >                    roster_groups: false,
> >                    allow_logout: false,
> >                });
>
> I'm starting to get annoyed, because instead of reading the documentation
> for
> the config settings that you are using, you want other people to spend
> their
> time telling you what to do.
>
> The auto_login setting doesn't take a rid, sid and jid and isn't compatible
> with with 'prebind' authentication. You would know that if you'd spend a
> few
> minutes reading up on the different configuration settings.
>
> https://conversejs.org/docs/html/configuration.html#auto-login
> https://conversejs.org/docs/html/configuration.html#authentication
>

Re: [conversejs] #439 auto_login and keepalive not working

From:
Christopher Smith
Date:
2015-08-25 @ 11:37
In addition, no place in the documentation is there an explicit
incompatibility stated

about XMPP Prebind and autologin.

On Tue, Aug 25, 2015 at 7:32 AM, Christopher Smith <
christopher.lynn.smith@gmail.com> wrote:

> JC
>
> I think you read with a great amount of discernment here and your insight
> is not fortified with your development experience of the software.
>
> During the selection of software for chat, our goal was to require no
> passwords in javascript- hence prebind was selected.  During version 0.9 of
> our software this seemed to work.
>
> How would one secure a solution with xmpp jid and password in plaintext?
>
> This seems to readily allow one to use an outside xmpp client to connect
> to the services.
>
> I thank you for your help and encourage you to exercise  tact and grace
> while providing help to those with less experience in your software.
>
> thanks again.
>
> On Mon, Aug 24, 2015 at 12:43 PM, JC Brand <lists@opkode.com> wrote:
>
>> On Tue, Aug 25, 2015 at 01:11:14AM -0400, Christopher Smith wrote:
>> >    after upgraded to v0.95, I still face the same issue as per bug 439
>> >    the chat only displays (when keepalive and auto login are not used
>> >    together)
>> >    .getJSON('/session', function (data) {
>> >                    converse.initialize({
>> >                    auto_list_rooms: false,
>> >                    auto_subscribe: false,
>> >                    allow_muc : false,
>> >                    allow_registration: false,
>> >                    bosh_service_url: data.boshUrl, // Please use this
>> connection manager only for testing purposes
>> >                    hide_muc_server: true,
>> >                    //i18n: locales.en, // Refer to ./locale/locales.js
>> to see which locales are supported
>> >                    auto_reconnect: true,
>> >                    auto_login: true,
>> >                    authentication: 'prebind',
>> >                    keepalive: false,
>> >                    jid: data.jid,
>> >                    rid: data.rid,
>> >                    sid: data.sid,
>> >                    debug: true,
>> >                    show_controlbox_by_default: false,
>> >                    roster_groups: false,
>> >                    allow_logout: false,
>> >                });
>>
>> I'm starting to get annoyed, because instead of reading the documentation
>> for
>> the config settings that you are using, you want other people to spend
>> their
>> time telling you what to do.
>>
>> The auto_login setting doesn't take a rid, sid and jid and isn't
>> compatible
>> with with 'prebind' authentication. You would know that if you'd spend a
>> few
>> minutes reading up on the different configuration settings.
>>
>> https://conversejs.org/docs/html/configuration.html#auto-login
>> https://conversejs.org/docs/html/configuration.html#authentication
>>
>
>

Re: [conversejs] #439 auto_login and keepalive not working

From:
Christopher Smith
Date:
2015-08-25 @ 11:49
One other thought- the jid that you display in the documention , it does
not mention the resources during

My XMPP prebind library generation jid as below in accordance with

                              jid:chris@servicename.com/xjcKZPBezF

Upon reading this definition of jids
http://xmpp.org/extensions/xep-0029.html

it allows resource identifiers.  Your documention does not mention any
incompatibility with resource identifiers in the definition of jids.

I will try to trim off the resource - perhaps this is causing an issue.




On Tue, Aug 25, 2015 at 7:37 AM, Christopher Smith <
christopher.lynn.smith@gmail.com> wrote:

> In addition, no place in the documentation is there an explicit
> incompatibility stated
>
> about XMPP Prebind and autologin.
>
> On Tue, Aug 25, 2015 at 7:32 AM, Christopher Smith <
> christopher.lynn.smith@gmail.com> wrote:
>
>> JC
>>
>> I think you read with a great amount of discernment here and your insight
>> is not fortified with your development experience of the software.
>>
>> During the selection of software for chat, our goal was to require no
>> passwords in javascript- hence prebind was selected.  During version 0.9 of
>> our software this seemed to work.
>>
>> How would one secure a solution with xmpp jid and password in plaintext?
>>
>> This seems to readily allow one to use an outside xmpp client to connect
>> to the services.
>>
>> I thank you for your help and encourage you to exercise  tact and grace
>> while providing help to those with less experience in your software.
>>
>> thanks again.
>>
>> On Mon, Aug 24, 2015 at 12:43 PM, JC Brand <lists@opkode.com> wrote:
>>
>>> On Tue, Aug 25, 2015 at 01:11:14AM -0400, Christopher Smith wrote:
>>> >    after upgraded to v0.95, I still face the same issue as per bug 439
>>> >    the chat only displays (when keepalive and auto login are not used
>>> >    together)
>>> >    .getJSON('/session', function (data) {
>>> >                    converse.initialize({
>>> >                    auto_list_rooms: false,
>>> >                    auto_subscribe: false,
>>> >                    allow_muc : false,
>>> >                    allow_registration: false,
>>> >                    bosh_service_url: data.boshUrl, // Please use this
>>> connection manager only for testing purposes
>>> >                    hide_muc_server: true,
>>> >                    //i18n: locales.en, // Refer to ./locale/locales.js
>>> to see which locales are supported
>>> >                    auto_reconnect: true,
>>> >                    auto_login: true,
>>> >                    authentication: 'prebind',
>>> >                    keepalive: false,
>>> >                    jid: data.jid,
>>> >                    rid: data.rid,
>>> >                    sid: data.sid,
>>> >                    debug: true,
>>> >                    show_controlbox_by_default: false,
>>> >                    roster_groups: false,
>>> >                    allow_logout: false,
>>> >                });
>>>
>>> I'm starting to get annoyed, because instead of reading the
>>> documentation for
>>> the config settings that you are using, you want other people to spend
>>> their
>>> time telling you what to do.
>>>
>>> The auto_login setting doesn't take a rid, sid and jid and isn't
>>> compatible
>>> with with 'prebind' authentication. You would know that if you'd spend a
>>> few
>>> minutes reading up on the different configuration settings.
>>>
>>> https://conversejs.org/docs/html/configuration.html#auto-login
>>> https://conversejs.org/docs/html/configuration.html#authentication
>>>
>>
>>
>

Re: [conversejs] #439 auto_login and keepalive not working

From:
Christopher Smith
Date:
2015-08-25 @ 12:24
Team,

I have tried almost every combination that I could think of.  I have not
been successful in achieving XMPP prebind configuration with converse.js

I looked at the documentation.  It also does not show the rid and sid being
set in teh configuration.

Perhaps, I am missing something. I continue to get


Could not restore session for jid: chris@servernamecom Error message:
_restore: no restoreable session.

I have tried with many configurations with rid and sid and rid and sid
commented.

con = converse;
converse.initialize({
       auto_list_rooms: false,
       auto_subscribe: false,
       allow_muc : false,
       allow_registration: false,
       bosh_service_url: data.boshUrl, // Please use this connection
manager only for testing purposes
       hide_muc_server: true,
       //i18n: locales.en, // Refer to ./locale/locales.js to see which
locales are supported
auto_reconnect: true,
authentication: 'prebind',
       keepalive: true,
       jid: data.jid,
        rid: data.rid,
        sid: data.sid,
       debug: true,
       show_controlbox_by_default: false,
       roster_groups: false,
       allow_logout: false,
   });

On Tue, Aug 25, 2015 at 7:49 AM, Christopher Smith <
christopher.lynn.smith@gmail.com> wrote:

> One other thought- the jid that you display in the documention , it does
> not mention the resources during
>
> My XMPP prebind library generation jid as below in accordance with
>
>                               jid:chris@servicename.com/xjcKZPBezF
>
> Upon reading this definition of jids
> http://xmpp.org/extensions/xep-0029.html
>
> it allows resource identifiers.  Your documention does not mention any
> incompatibility with resource identifiers in the definition of jids.
>
> I will try to trim off the resource - perhaps this is causing an issue.
>
>
>
>
> On Tue, Aug 25, 2015 at 7:37 AM, Christopher Smith <
> christopher.lynn.smith@gmail.com> wrote:
>
>> In addition, no place in the documentation is there an explicit
>> incompatibility stated
>>
>> about XMPP Prebind and autologin.
>>
>> On Tue, Aug 25, 2015 at 7:32 AM, Christopher Smith <
>> christopher.lynn.smith@gmail.com> wrote:
>>
>>> JC
>>>
>>> I think you read with a great amount of discernment here and your
>>> insight is not fortified with your development experience of the software.
>>>
>>> During the selection of software for chat, our goal was to require no
>>> passwords in javascript- hence prebind was selected.  During version 0.9 of
>>> our software this seemed to work.
>>>
>>> How would one secure a solution with xmpp jid and password in plaintext?
>>>
>>> This seems to readily allow one to use an outside xmpp client to connect
>>> to the services.
>>>
>>> I thank you for your help and encourage you to exercise  tact and grace
>>> while providing help to those with less experience in your software.
>>>
>>> thanks again.
>>>
>>> On Mon, Aug 24, 2015 at 12:43 PM, JC Brand <lists@opkode.com> wrote:
>>>
>>>> On Tue, Aug 25, 2015 at 01:11:14AM -0400, Christopher Smith wrote:
>>>> >    after upgraded to v0.95, I still face the same issue as per bug 439
>>>> >    the chat only displays (when keepalive and auto login are not used
>>>> >    together)
>>>> >    .getJSON('/session', function (data) {
>>>> >                    converse.initialize({
>>>> >                    auto_list_rooms: false,
>>>> >                    auto_subscribe: false,
>>>> >                    allow_muc : false,
>>>> >                    allow_registration: false,
>>>> >                    bosh_service_url: data.boshUrl, // Please use this
>>>> connection manager only for testing purposes
>>>> >                    hide_muc_server: true,
>>>> >                    //i18n: locales.en, // Refer to
>>>> ./locale/locales.js to see which locales are supported
>>>> >                    auto_reconnect: true,
>>>> >                    auto_login: true,
>>>> >                    authentication: 'prebind',
>>>> >                    keepalive: false,
>>>> >                    jid: data.jid,
>>>> >                    rid: data.rid,
>>>> >                    sid: data.sid,
>>>> >                    debug: true,
>>>> >                    show_controlbox_by_default: false,
>>>> >                    roster_groups: false,
>>>> >                    allow_logout: false,
>>>> >                });
>>>>
>>>> I'm starting to get annoyed, because instead of reading the
>>>> documentation for
>>>> the config settings that you are using, you want other people to spend
>>>> their
>>>> time telling you what to do.
>>>>
>>>> The auto_login setting doesn't take a rid, sid and jid and isn't
>>>> compatible
>>>> with with 'prebind' authentication. You would know that if you'd spend
>>>> a few
>>>> minutes reading up on the different configuration settings.
>>>>
>>>> https://conversejs.org/docs/html/configuration.html#auto-login
>>>> https://conversejs.org/docs/html/configuration.html#authentication
>>>>
>>>
>>>
>>
>

Re: [conversejs] #439 auto_login and keepalive not working

From:
Christopher Smith
Date:
2015-08-25 @ 12:45
The only time that the chat displays without error with prebind is when
keepalive is false. However, the connect continue to be lost and prevents
the ability to chat.


con = converse;
converse.initialize({
       auto_list_rooms: false,
       auto_subscribe: false,
       allow_muc : false,
       allow_registration: false,
       bosh_service_url: data.boshUrl, // Please use this connection
manager only for testing purposes
       hide_muc_server: true,
       //i18n: locales.en, // Refer to ./locale/locales.js to see which
locales are supported
auto_reconnect: true,
authentication: 'prebind',
       keepalive: false,
       jid: data.jid,
        rid: data.rid,
        sid: data.sid,
       debug: true,
       show_controlbox_by_default: false,
       roster_groups: false,
       allow_logout: false,
   });

On Tue, Aug 25, 2015 at 8:24 AM, Christopher Smith <
christopher.lynn.smith@gmail.com> wrote:

> Team,
>
> I have tried almost every combination that I could think of.  I have not
> been successful in achieving XMPP prebind configuration with converse.js
>
> I looked at the documentation.  It also does not show the rid and sid
> being set in teh configuration.
>
> Perhaps, I am missing something. I continue to get
>
>
> Could not restore session for jid: chris@servernamecom Error message:
> _restore: no restoreable session.
>
> I have tried with many configurations with rid and sid and rid and sid
> commented.
>
> con = converse;
> converse.initialize({
>        auto_list_rooms: false,
>        auto_subscribe: false,
>        allow_muc : false,
>        allow_registration: false,
>        bosh_service_url: data.boshUrl, // Please use this connection
> manager only for testing purposes
>        hide_muc_server: true,
>        //i18n: locales.en, // Refer to ./locale/locales.js to see which
> locales are supported
> auto_reconnect: true,
> authentication: 'prebind',
>        keepalive: true,
>        jid: data.jid,
>         rid: data.rid,
>         sid: data.sid,
>        debug: true,
>        show_controlbox_by_default: false,
>        roster_groups: false,
>        allow_logout: false,
>    });
>
> On Tue, Aug 25, 2015 at 7:49 AM, Christopher Smith <
> christopher.lynn.smith@gmail.com> wrote:
>
>> One other thought- the jid that you display in the documention , it does
>> not mention the resources during
>>
>> My XMPP prebind library generation jid as below in accordance with
>>
>>                               jid:chris@servicename.com/xjcKZPBezF
>>
>> Upon reading this definition of jids
>> http://xmpp.org/extensions/xep-0029.html
>>
>> it allows resource identifiers.  Your documention does not mention any
>> incompatibility with resource identifiers in the definition of jids.
>>
>> I will try to trim off the resource - perhaps this is causing an issue.
>>
>>
>>
>>
>> On Tue, Aug 25, 2015 at 7:37 AM, Christopher Smith <
>> christopher.lynn.smith@gmail.com> wrote:
>>
>>> In addition, no place in the documentation is there an explicit
>>> incompatibility stated
>>>
>>> about XMPP Prebind and autologin.
>>>
>>> On Tue, Aug 25, 2015 at 7:32 AM, Christopher Smith <
>>> christopher.lynn.smith@gmail.com> wrote:
>>>
>>>> JC
>>>>
>>>> I think you read with a great amount of discernment here and your
>>>> insight is not fortified with your development experience of the software.
>>>>
>>>> During the selection of software for chat, our goal was to require no
>>>> passwords in javascript- hence prebind was selected.  During version 0.9 of
>>>> our software this seemed to work.
>>>>
>>>> How would one secure a solution with xmpp jid and password in plaintext?
>>>>
>>>> This seems to readily allow one to use an outside xmpp client to
>>>> connect to the services.
>>>>
>>>> I thank you for your help and encourage you to exercise  tact and grace
>>>> while providing help to those with less experience in your software.
>>>>
>>>> thanks again.
>>>>
>>>> On Mon, Aug 24, 2015 at 12:43 PM, JC Brand <lists@opkode.com> wrote:
>>>>
>>>>> On Tue, Aug 25, 2015 at 01:11:14AM -0400, Christopher Smith wrote:
>>>>> >    after upgraded to v0.95, I still face the same issue as per bug
>>>>> 439
>>>>> >    the chat only displays (when keepalive and auto login are not used
>>>>> >    together)
>>>>> >    .getJSON('/session', function (data) {
>>>>> >                    converse.initialize({
>>>>> >                    auto_list_rooms: false,
>>>>> >                    auto_subscribe: false,
>>>>> >                    allow_muc : false,
>>>>> >                    allow_registration: false,
>>>>> >                    bosh_service_url: data.boshUrl, // Please use
>>>>> this connection manager only for testing purposes
>>>>> >                    hide_muc_server: true,
>>>>> >                    //i18n: locales.en, // Refer to
>>>>> ./locale/locales.js to see which locales are supported
>>>>> >                    auto_reconnect: true,
>>>>> >                    auto_login: true,
>>>>> >                    authentication: 'prebind',
>>>>> >                    keepalive: false,
>>>>> >                    jid: data.jid,
>>>>> >                    rid: data.rid,
>>>>> >                    sid: data.sid,
>>>>> >                    debug: true,
>>>>> >                    show_controlbox_by_default: false,
>>>>> >                    roster_groups: false,
>>>>> >                    allow_logout: false,
>>>>> >                });
>>>>>
>>>>> I'm starting to get annoyed, because instead of reading the
>>>>> documentation for
>>>>> the config settings that you are using, you want other people to spend
>>>>> their
>>>>> time telling you what to do.
>>>>>
>>>>> The auto_login setting doesn't take a rid, sid and jid and isn't
>>>>> compatible
>>>>> with with 'prebind' authentication. You would know that if you'd spend
>>>>> a few
>>>>> minutes reading up on the different configuration settings.
>>>>>
>>>>> https://conversejs.org/docs/html/configuration.html#auto-login
>>>>> https://conversejs.org/docs/html/configuration.html#authentication
>>>>>
>>>>
>>>>
>>>
>>
>

Re: [conversejs] #439 auto_login and keepalive not working

From:
Christopher Smith
Date:
2015-08-25 @ 12:49
could not decode message

Re: [conversejs] #439 auto_login and keepalive not working

From:
Christopher Smith
Date:
2015-08-19 @ 12:00
Team,

Any eta for this?  I am not that familiar with the open ticket process.

Is it possible to share the ticket url?  I can find the issues, but I do
not see a link to fixed issues

thanks

On Wed, Aug 19, 2015 at 6:02 AM, JC Brand <lists@opkode.com> wrote:

> On Wed, Aug 19, 2015 at 01:20:08AM -0400, Christopher Smith wrote:
> >    Team,
> >    How to overcome this issue?
> >    when I disable keepalive, my client seems to not broadcast its
> presence
> >    I am not an xmpp expert, I did see something, (I cannot find the link
> >    again)
> >    about strophe.js version being changed.
> >    I appreciate all of your help.
> >    thanks
>
> In the ticket I mention that the problem is solved and there are links to
> the
> commits I made to fix it.
>
> I should make a new release of converse.js soon which will contain those
> fixes.
>
> JC
>

Re: [conversejs] #439 auto_login and keepalive not working

From:
Jc Brand
Date:
2015-08-19 @ 13:04

On 19 Augustus 2015 2:00:51 nm. GMT+02:00, Christopher Smith 
<christopher.lynn.smith@gmail.com> wrote:
>Team,
>
>Any eta for this?  I am not that familiar with the open ticket process.

The ticket is closed because a fix had already been committed. No eta for 
a release. 

>Is it possible to share the ticket url?  I can find the issues, but I
>do
>not see a link to fixed issues

I find it strange that you don't know the ticket URL, you wrote the issue 
number in this email's subject field (#439).

The ticket is on github:
github.com/jcbrand/converse.js/issues/439

JC 

>On Wed, Aug 19, 2015 at 6:02 AM, JC Brand <lists@opkode.com> wrote:
>
>> On Wed, Aug 19, 2015 at 01:20:08AM -0400, Christopher Smith wrote:
>> >    Team,
>> >    How to overcome this issue?
>> >    when I disable keepalive, my client seems to not broadcast its
>> presence
>> >    I am not an xmpp expert, I did see something, (I cannot find the
>link
>> >    again)
>> >    about strophe.js version being changed.
>> >    I appreciate all of your help.
>> >    thanks
>>
>> In the ticket I mention that the problem is solved and there are
>links to
>> the
>> commits I made to fix it.
>>
>> I should make a new release of converse.js soon which will contain
>those
>> fixes.
>>
>> JC
>>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.