-
pep.
Ge0rG, can you point me to a thread for PARS? (on standards?)
-
Ge0rG
It's in the June 2016 archive I think, will look up from PC later
-
jonasw
LMSTFY
-
jonasw
pep., https://mail.jabber.org/pipermail/standards/2016-June/031150.html https://mail.jabber.org/pipermail/standards/2017-April/032599.html https://mail.jabber.org/pipermail/standards/2017-May/032616.html (if you get a chance, Ge0rG, please confirm that this is the thread you meant to link)
-
jonasw
(those are three links, but it’s the same thread, mailman archive is stupid)
-
Ge0rG
jonasw: thanks, those are exactly the right links
-
jonasw
Ge0rG, yw
-
marc
There was some guy who proposed a protocol to access SMS via XMPP from multiple clients. What happend with this protocol/idea?
-
Ge0rG
marc: are you talking about https://jmp.chat/ or moparisthebest' self-echo component?
-
Ge0rG
https://github.com/moparisthebest/xmpp-echo-self
-
marc
Ge0rG, probably the self-echo stuff
-
marc
GitHub not reachable... fuck ... :D
-
Zash
Allow me to point and laugh
-
marc
Ge0rG, do we need to return the TOKEN (ad-hoc command)?
-
marc
Could be used as manual fallback but apart from that I don't know a good reason to return it
-
Ge0rG
marc: we MUST return an xmpp: URI and we MAY return a web URI
-
marc
Ge0rG, yes, I know but this wasn't the question :P
-
Ge0rG
marc: my answer was supposed to be comprehensive, so we should not return anything beyond that
-
Ge0rG
marc: one could think about adding a description text, token validity info, onboarding information etc.; but I think a minimal protocol is beneficial
-
marc
Ge0rG, well I already have defined a token expiration field :)
-
Ge0rG
marc: I think that URI and URL are not the right names, BTW.
-
marc
Ge0rG, I'm open for suggestions :)
-
Ge0rG
marc: I'd go with `uri` for the xmpp: link, but something like `landingpage` or `web` for the https
-
marc
yeah, but it should contain 'url' I think
-
marc
something like landing_url
-
marc
maybe...
-
jonasw
please no underscores in XML
-
Ge0rG
marc: after thinking about it, it's okay to return the validity to the inviter. Their client could create an i18ned message to share, like "Hi, I would like to invite you to chat with me under <https://...>. This link will expire in 2 weeks."
-
Ge0rG
marc: http://ajaxian.com/archives/uri-vs-url-whats-the-difference
-
marc
Ge0rG, I'm glad to hear this ;)
-
marc
Ge0rG, I know the difference between URI and URL
-
marc
Ge0rG, What's your point? :D
-
jonasw
Ge0rG, do you find it ironic that your link has UTF-8 mojibake?
-
jonasw
> depending on the client’s capabilities
-
Ge0rG
marc: my point is that by using "uri" and "url" in the response, you imply they are different representations of the same thing, whereas they are different things, more or less.
-
Ge0rG
jonasw: yes. Sorry.
-
marc
Ge0rG, yes, that's correct so we'll change this. But 'landing_url' or 'invitation_url' are okay in my opinion
-
Ge0rG
marc: "jonasw> please no underscores in XML"
-
marc
oh, missed that :D
-
marc
What's the reason?
-
jonasw
it’s ugly
-
jonasw
we don’t do it in XMPP so far, AFAIK
-
Ge0rG
jonasw: would you be ok with `landing-url`?
-
jonasw
(the only exception possibly features for PubSub)
-
jonasw
sure
-
marc
Just for reasons of appearance?
-
jonasw
marc, yes :)
-
marc
Ok, I like this :D
-
SouL
landingUrl
-
zinid
CamelCase
-
Ge0rG
<x xmlns='jabber:x:data' type='result'> <title>Invitation</title> <reported> <field var='uri' label='Invitation link'/> <field var='landing-url' label='Landing Page'/> <field var='expire' label='Expiration Time'/> </reported> <item> <field var='uri'><value>xmpp:georg@yax.im?add;preauth=aG5axoo8iagahS9o;ibr</value></field> <field var='landing-url'><value>https://yax.im/i/#georg@yax.im?add;preauth=aG5axoo8iagahS9o;ibr</value></field> <field var='expire'><value>2017-12-17T02:56:15Z</value></field> </item> </x>
-
Ge0rG
marc: like this?
-
jonasw
aaaa
-
jonasw
data tables
-
jonasw
I’m afraid of data tables
-
marc
Ge0rG, looks similar to my XEP yes :D
-
marc
But I don't use reported
-
jonasw
I’m afraid (literally) that Ge0rG is right in his use of reported.
-
marc
I think that's only necessary if you have multiple <item> elements
-
jonasw
marc, using a form would be the wrong semantic here.
-
zinid
and I don't have reported support in ejabberd
-
zinid
great
-
marc
:D
-
jonasw
zinid, I know that feel
-
Ge0rG
I've combined an example from ad-hoc with what marc wrote in his XEP.
-
jonasw
damn
-
jonasw
I was hoping that Ad-Hoc might forbid that
-
marc
:D
-
marc
<iq type='result' to='romeo@example.com' from='example.com' id='exec2'> <command xmlns='http://jabber.org/protocol/commands' sessionid='config:20020923T213616Z-700' node='invite' status='completed'> <x xmlns='jabber:x:data' type='result'> <item> <field var='uri'> <value>xmpp:example.com?register;invite-token=TOKEN</value> </field> <field var='landing-url'> <value>https://example.com/invite/#TOKEN</value> </field> <field var='expire'> <value>2017-11-06T02:56:15Z</value> </field> </item> </x> </command> </iq>
-
marc
Ignore the XMPP URI...
-
jonasw
let me delve into the horros and re-read XEP-0004 on the reported thing
-
Holger
> (the only exception possibly features for PubSub) IIRC we use _ and - inconsistently there \o/
-
marc
Time to update the XEP then ;)
-
jonasw
it isn’t clear to me whether <reported/> is required when type='result' is used
-
jonasw
there is no normative language regarding that afaict
-
mathieui
btw, xmpp.net: “ It's too busy, try again later. ”
-
jonasw
again?
-
jonasw
I need to fix that issue which makes some domains break the queue
-
jonasw
but I was hoping not having to touch PHP
-
SouL
underscores for the win!
-
moparisthebest
marc: I also hacked it into my conversations fork and have been using it for a month or so, works great
-
marc
moparisthebest, how do you send SMS? How do you select the recipient?
-
moparisthebest
The hard part has been designing a plugin API but I'm almost done with that too
-
moparisthebest
The local part of the jid
-
marc
moparisthebest, so you just add a contact to the roster?
-
moparisthebest
marc: I don't really bother with that yet
-
moparisthebest
https://github.com/moparisthebest/Conversations/tree/sms
-
moparisthebest
That's the hacky code, expect conversations pr and separate stand alone plugin in a few days
-
marc
moparisthebest, hehe nice :)
-
moparisthebest
marc: if you're much of an Android dev I want MMS with attachments to convert to/from http upload too but MMS on Android looks like a nightmare...
-
jonasw
s/MMS/anything/
-
jonasw
hm, that was unfortunate
-
jonasw
s/MMS/anything/;s/anything/MMS/ should fix it
-
moparisthebest
SMS isn't bad, but yes this is all way worse than plain Java
-
jonasw
and plain java is already bad ;-)
-
SouL
What did you say!?
-
marc
moparisthebest, I'm not really an Android dev :D
-
moparisthebest
jonasw: well it's no rust, but at least it's not erlang :)
-
marc
moparisthebest, what happens if you have two Conversations clients with your plugin? :)
-
moparisthebest
marc: badness
-
marc
:D
-
moparisthebest
Double sms I'd guess
-
jonasw
moparisthebest, actually, I need to look into erlang.
-
jonasw
that video is convincing
-
marc
I like Erlang somehow :)
-
SouL
jonasw, do you have a link for it? I forgot to bookmark it
-
moparisthebest
Erlang http://howfuckedismydatabase.com/nosql/
-
jonasw
https://www.youtube.com/watch?v=xrIjfIjssLE
-
jonasw
there you go
-
marc
moparisthebest, do you have plans to fix this or support it?
-
moparisthebest
marc: which
-
marc
moparisthebest, multiple SMS-capable devices
-
moparisthebest
marc: each could pick it's own different echo component and then it'd all work fine
-
moparisthebest
And yes the plugin will support that
-
marc
moparisthebest, but isn't the idea to allow sending SMS from desktop-clients, for example?
-
moparisthebest
Oh wait marc so all connected xmpp clients can send SMS
-
moparisthebest
Only the one conversations needs the plugin
-
moparisthebest
Others need nothing new or special
-
moparisthebest
That all works today
-
marc
Sure but what if I have two smartphones
-
marc
Or two SIM cards?
-
moparisthebest
That when you'd need a seperate echo domain for each
-
moparisthebest
Otherwise you don't know what number to send with
-
marc
moparisthebest, okay, can you somehow select which echo domain to be used?
-
moparisthebest
Yes
-
moparisthebest
Not in the hacky version with no options
-
moparisthebest
Plugin version will support this
-
marc
moparisthebest, sounds promising :)
-
marc
moparisthebest, But selection of the SMS-device will need support in other clients as well, right?
-
moparisthebest
Now I don't have a phone with 2 Sim cards so that will be harder
-
moparisthebest
No
-
moparisthebest
All other clients see is a regular xmpp chat
-
marc
moparisthebest, how do you decide the SIM card/device? phonenumber@echo-sim1 and phonenumber@echo-sim2 ?
-
moparisthebest
The phone knows anything sent to echo.burtrum.org or whatever goes out via SMS
-
Guus
Hi all - I'm attempting to arrange for a hotel discount for the upcoming Summit and Fosdem in Brussels (February 1st - 4th). To get some kind of headcount, it'd be good if you could sign up on the wiki page if you're planning to be there: https://wiki.xmpp.org/web/Summit_22
-
Ge0rG
moparisthebest> All other clients see is a regular xmpp chat Why is this message duplicated in my client? Meh.
-
zinid
I constantly receive duplicates
-
Ge0rG
zinid: it should be filtered away by yaxim's deduplicator.
-
zinid
yeah, heuristics
-
Ge0rG
Unfortunately, my client doesn't have a log going back 20mins, and my server doesn't log outgoing c2s stanzas. Meh.
-
Ge0rG
zinid: MUC message (ID) rewriting makes heuristics a required feature.
-
zinid
Ge0rG, I know
-
jonasw
Ge0rG, why do you see different peoples messages twice though?
-
Ge0rG
Ok, now this is just getting more and more weird. prosody only delivered that message ID once to my yaxim.
-
Ge0rG
jonasw: it's only a single message from a single person duplicated.
-
Ge0rG
Maybe my MSN just rejoined the MUC, but I should get the message as part of history then.
-
Ge0rG
Okay, there was a 0198 reconnect just in that moment.
-
Ge0rG
Something fishy is going on, and I don't know what it is.
-
Ge0rG
Will increase logcat buffer to 16M now.
-
pep.
jonasw, Ge0rG, thanks for the links! (PARS)
-
zinid
Ge0rG, does yaxim dump XML traffic in logcat?
-
Ge0rG
zinid: if you enable it, yes.
-
zinid
Ge0rG, nice
-
jonasw
sounds like an off-by-one in the stream management handling
-
jonasw
reminds me of early aioxmpp's reconnect loops when a broken stanza was received. broken stanza -> exception -> disconnect stream -> resume stream management -> receive same broken stanza
-
Ge0rG
jonasw: yeah, well possible. But I know for sure that I've fixed the off-by-ones in yaxim. It was a long and complex process
-
Ge0rG
jonasw: if you close the stream, you are not allowed to resume.
-
jonasw
Ge0rG, I’m not sure that the stream was closed cleanly. it’s been a while.
-
marc
Ge0rG, are you fine with 'invite' and 'create-account' ad-hoc command names?
-
Ge0rG
marc: yeah
-
jonasw
what are the semantics of those commands again?
-
marc
jonasw, invite a user, create an account (optinal with predefined username) :)
-
jonasw
create an account we already have an adhoc for that
-
Ge0rG
jonasw: the former will create a PARS link with an "ibr" tag.
-
marc
latter is for admins or other privileged users
-
Ge0rG
jonasw: do we?
-
Ge0rG
jonasw: the goal is for the admin to define the user name, and then the user can use IBR to specify their password.
-
marc
Ge0rG, jonasw I tink we had this exact same disucussion a couple of days ago :D
-
jonasw
https://xmpp.org/extensions/xep-0133.html#add-user
-
jonasw
Ge0rG, ah okay
-
jonasw
ahh, so it’s invite minus PARS
-
marc
I think the wording was exactly the same :D
-
Ge0rG
jonasw: no, it's a "I define a username and send a link" thing
-
Ge0rG
jonasw: so it's rather PARS-for-accounts
-
Ge0rG
jonasw: and it implies PARS between inviter and invitee
-
jonasw
Ge0rG, how is that different from "invite minus PARS"?
-
jonasw
no wait
-
jonasw
so create-account allows for IBR registration, but also PARS?
-
jonasw
what’s the difference to invite then?
-
marc
invite gives you the possiblity to create an account or just make server-side PARS
-
marc
account-creation creates an account on the server
-
jonasw
and create-account forces account creation?
-
marc
yes
-
jonasw
I see
-
marc
jonasw, any objections so far? :)
-
jonasw
make sure you make that distinction clear in the document and provide use cases which support that distinction
-
Ge0rG
jonasw: create-account is for admins who want to enroll friends. invite is for users of (semi)public servers.
-
Ge0rG
jonasw: a server admin can use invite if they don't want to pre-define the account name
-
jonasw
Ge0rG, I don’t see why I wouldn’t use invite as an admin, too?
-
Ge0rG
jonasw: however, there is no guarantee that an invite will lead to account creation
-
Ge0rG
jonasw: if the user already has an account, invite will merely fall-back to PARS
-
jonasw
win
-
jonasw
why wouldn’t I want that?
-
Ge0rG
jonasw: what?
-
Ge0rG
Sigh. Something just happened, and now my yaxim got reset.
-
Ge0rG
like, all-data-lost-app-reset.
-
jonasw
why would I want force people to create an account?
-
jonasw
if they already have one?
-
jonasw
especially if they still could create an account with 'invite' if they wanted to
-
jonasw
create-account seems to have only limitations in my eyes
-
jonasw
and I’m failing to see the use-case for that
-
marc
jonasw, if you want to ensure that set of users is on your server, for example if you don't use E2EE :D
-
Ge0rG
jonasw: it's because marc insists that you want to have all your friends on your server.
-
jonasw
I see
-
jonasw
I don’t follow that argument, but okay
-
jonasw
I don’t care as long as both works and I don’t have to use create-account :)
-
Ge0rG
jonasw: I see create-account as a feature I can use to easily onboard my grand-aunt.
-
jonasw
why don’t use invite for that?✎ -
jonasw
why not use invite for that? ✏
-
jonasw
ah, because they have to choose an account name
-
Ge0rG
right
-
jonasw
but then again, clients could offer default names based on the screenname, as was discussed earlier here, IIRC
-
marc
Maybe you have a company or other organization where you have to enforce that all memebers are on a "special" server. For privacy reasons, for example.
-
Ge0rG
marc: good point.
-
jonasw
indeed
-
Ge0rG
marc: mention it in the rationale / user-story
-
jonasw
yes
-
marc
Ge0rG, thanks!
-
Ge0rG
the XSF loves corporate rollouts
-
jonasw
that’s the kind of example I was looking for :)
-
marc
Okay, good that we agree on that :) I'm happy now
-
jonasw
(even though corporate onboarding will probably work very different)
-
marc
jonasw, yes, but this depends of how big the "organization" is
-
marc
s/of/on
-
jonasw
normally there would be some kind of single-sign-on in place and the xmppd may not even have privilegues to create an account there. but sure, there may be use-cases.
-
moparisthebest
Ge0rG, don't know why it was duplicated, at the time I only had conversations running so single client even
-
Ge0rG
moparisthebest: looks like it was a yaxim bug, but we'll never find out. Sorry for bothering you.
-
zinid
but people already have accounts (twitter, google), why do you want to register them on your server?
-
moparisthebest
Ge0rG, no bother, conversations has a method for guessing if a message is the same not sure if you can copy it
-
zinid
why we cannot use oauth, like all others do?
-
marc
zinid, oauth is about authorization, you still need to create an account, right?
-
zinid
marc, right
-
marc
zinid, what's you point regarding the account creation / user invitation proposal then?
-
zinid
marc, you need no account creation
-
zinid
you can create it on the fly at first login
-
marc
zinid, you're talking about public servers, right?
-
zinid
marc, I would use it on my private server too, why not?
-
marc
zinid, okay, I have a private server and want somebody to join it
-
marc
zinid, what's your protocol flow then?
-
zinid
I'm not talking about invitation
-
zinid
this is a separate subject
-
Ge0rG
Step 1: troll everyone Step 2: ??? Step 3: PROFIT!
-
SouL
Hahaha
-
zinid
Ge0rG, wow, oauth is trolling now?
-
marc
zinid, but we were talking about invitation
-
zinid
> why would I want force people to create an account? I replied to this ^^^
-
Ge0rG
zinid: with oauth, you can connect to an existing account. but you can't xmpp-connect to a service not offering xmpp
-
zinid
what?
-
Ge0rG
zinid: you could create an xmpp account by logging in with an oauth provider and using that provider as "identity verification"
-
zinid
so what?
-
Ge0rG
zinid: you can't login to twitter with an xmpp client
-
zinid
I can
-
zinid
for user this will be transparent
-
zinid
you choose an xmpp server, provides oauth provider and it's done
-
Ge0rG
zinid: so you will still create an xmpp account?
-
zinid
sure
-
zinid
in an automatic way
-
zinid
the point is that it's pain in ass to keep all accounts with passwords for a user
-
Ge0rG
zinid: so instead of a password, you use an oauth token issued by Faceoogle?
-
zinid
yes
-
zinid
or how it's called, I don't remember details
-
zinid
you can fetch address book and send invites by the way
-
mathieui
https://help.aol.com/articles/aim-discontinued RIP.
-
pep.
What a shame
-
edhelas
time to replace it with another protocol
-
mathieui
there’s nothing to replace
-
mathieui
nobody was using it
-
pep.
"Can I still use AIM between now and December 15?", *now* being Dec 11th.
-
Ge0rG
more users than XMPP? :P
-
Ge0rG
But ICQ is still running?
-
ThurahT
by now I've helped ~15 people to convert to xmpp. And I never even had AIM.. : )
-
Ge0rG
ThurahT: are they all on jabber.org? :D
-
ThurahT
yeah, I wanted only the best for them
-
SamWhited
not sure if…
-
ThurahT
: )
- Ge0rG smells sarcasm
-
jonasw
when the news broke that AIM was about to be discontinued, I suggested to set up an XMPP domain which focuses on easy conversion from AIM
-
jonasw
nobody had the time though :)
-
Ge0rG
jonasw: such an irony
-
ThurahT
I had a few who might have needed that. But eventually they caught on setting servers up.
-
zinid
jonasw, don't be sad, that was pointless anyway, everyone is "converted" into whatsapp 🙂