-
lovetox
i have a user, which host its muc service and httpupload service on the same hostname
-
lovetox
is this something usual which a client needs to deal with, or is this something a server opterator should rather not do
-
Zash
I don't think that should be a problem
-
edhelas
ah this :D I had to fix my database schema for those cases
-
edhelas
why XMPP admins always want to do funky things :p
-
Zash
Because they don't want to deal with a pile of subdomains, I gather.
-
edhelas
subdomains are expensives things nowadays
-
Zash
They'd put the MUC on the base host if they could (and some do this)
-
pep.
(yes!)
-
pep.
Also, it's prettier :)
-
edhelas
*doubts*
-
pep.
Totally not subjective
-
pep.
like it's totally not subjective to ask for multiple domains anyway :P
-
Zash
Namespacing and separation of concern is of course bad things that we should avoid.
-
Zash
/s
-
edhelas
I remember that we talked about some MAM sync strategy, is there some documents somewhere that explains some good practices ?
-
edhelas
better than "grab all the things since the begining of times"
-
edhelas
found that one
-
edhelas
https://github.com/modernxmpp/modernxmpp/pull/41/files
-
Zash
https://github.com/modernxmpp/modernxmpp/pull/41 discussion: https://mail.jabber.org/pipermail/standards/2021-August/038483.html
-
edhelas
ok I see
-
edhelas
hopefully I don't have the JS clients limit
-
edhelas
finally, some good things of having a server side based XMPP client !
-
flow
lovetox> i have a user, which host its muc service and httpupload service on the same hostname should be perfectly fine, in fact, you should be able to run most services under the main XMPP name, which makes many things a lot easier, e.g. less dns entries, less stuff to put in the certificate (and to authenticate)
-
Zash
flow, can I interest you in authoring a XEP saying that?
-
Zash
currently some clients don't work unless you put HTTP Upload on a subdomain
-
Zash
while some others don't work if you put XEP-0215 on a subdomain
-
Zash
MUC has the thing where it occupies nodeparts@ and you'd have take care not to cause conflicts with users
-
flow
but that's something the service implementation has to take care of
-
Zash
yes
-
Zash
IIRC some clients had to fix problems when you did put users and MUCs at the same hostname
-
flow
that said, I believe MUC occupying the same "namesapce" as user JIDs is a valid reason to have an extra subdomain
-
flow
but http upload would be better without one
-
Zash
flow, yes, but the examples show a subdomain, so that's what at least one client did, and thus you have to deploy it like that or it doesn't work
-
flow
Zash, did you open issues for clients which need http upload on an extra XMPP address?
-
Zash
and they didn't want to change because look at the XEP!
-
flow
I think I could be presuaded in writing a patch for the http upload XEP to not use an extra XMPP address if it has consensus✎ -
flow
I think I could be persuaded in writing a patch for the http upload XEP to not use an extra XMPP address if it has consensus ✏
-
Zash
I'm only really aware of Siskin, and that issue was closed
-
flow
closed as WONTFIX?
-
Zash
https://github.com/tigase/siskin-im/issues/37
-
flow
https://github.com/tigase/siskin-im/issues/37#issuecomment-625876730 is probably a hint that some tribal knowledge of XMPP got lost
-
flow
IIRC there is a way to iterate all "services" of a user's server to discover the feature
-
flow
e.g. that PSI does to find components
-
flow
that way, it should be trivial to discover that http upload is provied by the user's server address directly
-
MattJ
FWIW my preferred fix is for someone to write an informational "how to discover services" XEP
-
flow
yes, but I wonder why this is not part of xep30 already
-
flow
not saying that it must go int xep30, only that it feels like the right place to mention it from the beginning
-
MattJ
Yeah, in hindsight it should have been I think
-
Zash
What's this saying? https://xmpp.org/extensions/xep-0030.html#items-relationship
-
flow
seems to come pretty close to it
-
Zash
https://xmpp.org/extensions/xep-0045.html#disco-service seems to perpetuate the subdomain requirement
-
Zash
There's also the thing with node-less MUCs
-
lovetox
in case of gajim, it works if you put httpupload without subdomain
-
lovetox
what it seems the user did was, it put muc and httpupload on the same subdomain
-
lovetox
which was unexpected because i discover these with disco-items
-
lovetox
and for some reason i thought, every items belongs to one service
-
lovetox
so after i found a service in the subsequent disco info for the item
-
lovetox
i stopped looking for furhter✎ -
lovetox
i stopped looking for further ✏
-
Zash
https://xmpp.org/extensions/xep-0030.html#info-basic > An entity MAY have multiple identities.
-
Zash
I thought it made sense to put all file transfer related things on the same host, ie proxy65+http upload+xep215