I think I've managed to forge a correct metadata publish thing, but for some reason xmpp clients don't seem to try and retrieve the actual avatar data. Can someone spot what's wrong in these 3 stanzas from the gajim XML console? Could it be I am missing a disco#feature thing?
https://paste.sr.ht/~nicoco/0f9051db51f6c39739eb4f06c74cf3728a79f4dc
marchas joined
thomaslewishas left
xnamedhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
jubalhhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
jubalhhas joined
TheRealkaranohas left
TheRealkaranohas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
marchas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
lovetox
Run gajim -v and it will tell you what's wrong
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
TheRealkaranohas left
TheRealkaranohas joined
marchas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
marchas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
atomicwatchhas left
TheRealkaranohas left
TheRealkaranohas joined
Alexhas left
Alexhas joined
marchas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
sonnyhas left
sonnyhas joined
TheRealkaranohas left
TheRealkaranohas joined
sonnyhas left
sonnyhas joined
Wojtekhas joined
TheRealkaranohas left
TheRealkaranohas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
TheRealkaranohas left
TheRealkaranohas joined
Wojtekhas left
kurtainhas left
TheRealkaranohas left
TheRealkaranohas joined
atomicwatchhas joined
TheRealkaranohas left
TheRealkaranohas joined
Alexhas left
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Alexhas left
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
debaclehas left
TheRealkaranohas left
TheRealkaranohas joined
Samhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
atomicwatchhas left
atomicwatchhas joined
TheRealkaranohas left
TheRealkaranohas joined
Alexhas left
TheRealkaranohas left
TheRealkaranohas joined
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
nicoco_
thx for the idea lovetox:
> Disco info malformed: dummy.localhost Caps hashes differ: I+de1e1XDUWqmfsV2dQlfugNNOk= != UYVitpA8UsRh8d2G0/8fsVQ9+Sc=
damn these caps/disco/pubsub/pep things are sooooo hard to get right
adxhas joined
TheRealkaranohas left
TheRealkaranohas joined
debaclehas joined
TheRealkaranohas left
jubalhhas left
TheRealkaranohas joined
flowhas left
kurtainhas joined
nikhas left
nikhas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
nikhas left
nikhas joined
TheRealkaranohas left
TheRealkaranohas joined
Link Mauve
lovetox, in these stanzas, the @to Gajim sends the disco#info to is wrong, right?
Link Mauve
Why is it asking the domain instead of the account?
Link Mauve
The second stanza should be to="baba@dummy.localhost" instead of to="dummy.localhost".
TheRealkaranohas left
TheRealkaranohas joined
nicoco_
Link Mauve: dummy.localhost also has its own avatar, so I think it's OK that gajim sends this too?
Link Mauve
Oh right.
Link Mauve
But then that’s unrelated to baba@dummy.localhost’s avatar.
Link Mauve
And might be your issue?
jubalhhas joined
flowhas joined
Laurahas left
Alexhas left
nicoco_
neither dummy.localhost's and baba@dummy.localhost's avatars are requested. maybe the stanzas I posted were not cleverly selected by me, I apologize. it's still not clear to me which entity between the gateway component and "puppet JID" (baba@) needs to advertise which caps/disco. I'm trying to get rid of this caps hash warning for a start, but it feels I'm completely misusing slixmpp for some reason.✎
nicoco_
neither dummy.localhost's nor baba@dummy.localhost's avatars are requested. maybe the stanzas I posted were not cleverly selected by me, I apologize. it's still not clear to me which entity between the gateway component and "puppet JID" (baba@) needs to advertise which caps/disco. I'm trying to get rid of this caps hash warning for a start, but it feels I'm completely misusing slixmpp for some reason. ✏
Laurahas joined
Alexhas joined
Link Mauve
nicoco_, I tested it using xmpp-rs’s generate-caps example, it returned ParseError("Required attribute 'type' must not be empty.")
Link Mauve
See https://xmpp.org/registrar/disco-categories.html#gateway
Link Mauve
Those are the allowed gateway types, you might want to add some once you support their services.
Link Mauve
See XEP-0030 section 10.2.1.
TheRealkaranohas left
TheRealkaranohas joined
nicoco_
hehe well, gateway types are pretty outdated, let's try and pretend this is AIM then :)
Link Mauve
nicoco_, that’s why I said you may want to ask the registrar to add the ones you want to support.
nikhas left
nikhas joined
nicoco_
thanks for the suggestion but I am not at ease asking for anything "official" since all these disco/nodes/caps/pubsub/pep concepts are VERY blurry in my mind. up until now I had hacked something with vcard-temp and pushing roster items with their alias for nicknames, but now that I start trying to follow the "modern" XEPs, I'm starting to lose self-confidence. I need to do some reading probably✎
nicoco_
thanks for the suggestion but I don't feel comfortable asking for anything "official" since all these disco/nodes/caps/pubsub/pep concepts are VERY blurry in my mind. up until now I had hacked something with vcard-temp and pushing roster items with their alias for nicknames, but now that I start trying to follow the "modern" XEPs, I'm starting to lose self-confidence. I need to do some reading probably ✏
nikhas left
nikhas joined
Link Mauve
Caps aren’t only for PEP, they tell other entities everything you support, so it’s quite important to get it right.
nikhas left
nikhas joined
zawarudohas joined
Link Mauve
Otherwise, other entities won’t be able to tell what you support, and either send you things you don’t understand, or more likely send stuff that adhere to the very baseline of XMPP they think every other entity supports.
Link Mauve
Basically disabling everything advanced in their UI.
heartyhas left
heartyhas joined
Link Mauve
nicoco_, with type="aim", xmpp-rs says your caps should be <c xmlns='http://jabber.org/protocol/caps' hash="sha-1" node="http://slixmpp.com/ver/1.8.2" ver="LzPKML/zA6ZRJRXL7xsQA4kemhE="/>.
TheRealkaranohas left
TheRealkaranohas joined
jubalhhas left
Link Mauve
And the intermediate string, after concatenation, is gateway/aim//The great legacy network (slidge)<http://jabber.org/protocol/caps<http://jabber.org/protocol/chatstates<http://jabber.org/protocol/commands<http://jabber.org/protocol/disco#info<http://jabber.org/protocol/nick+notify<http://jabber.org/protocol/nick<http://jabber.org/protocol/shim#SubID<http://jabber.org/protocol/shim<jabber:iq:oob<jabber:iq:register<jabber:iq:search<jabber:x:data<jabber:x:oob<urn:xmpp:avatar:data<urn:xmpp:avatar:metadata+notify<urn:xmpp:avatar:metadata<urn:xmpp:carbons:2<urn:xmpp:chat-markers:0<urn:xmpp:fasten:0<urn:xmpp:forward:0<urn:xmpp:message-correct:0<urn:xmpp:message-retract:0<urn:xmpp:reactions:0<urn:xmpp:receipts<urn:xmpp:reply:0<
nicoco_
yes, I managed to have caps correct, at least for the puppets, by accident after a lot of trial and error a while ago, and did not want to touch this part of the code anymore since then - clients send chat states, presences, markers, it was all good so it's a perfect time to break it all now =)
but adding PEP support forces me to look at this stinky part of the code again, which is probably going to be a good thing in the end, but boy it is painful. it's probably extra confusing for a gateway that does not only have its own JID, but also puppet JIDs, and these puppet JIDs need to have some "puppet resource", then where do the "node" concept fit in this hierarchy is not clear to me, and well, maybe slixmpp's modules were not built with this extra complexity in mind too.
Link Mauve
I hope that helps you debug your issue, if you don’t know what to do with these don’t hesitate to ask me for a more in-depth explanation!
Link Mauve
nicoco_, PEP is only on the account, so on your puppets’ bare JID.
Link Mauve
Their resources don’t appear there.
nicoco_
thanks for your help! I think I should not bother trying to generate the caps verstring myself, but try and understand how to do it properly with slixmpp's helpers, so maybe I'll shout some questions in slix's muc instead
Link Mauve
Sure!
Alexhas left
Alexhas joined
nicoco_
>nicoco_, PEP is only on the account, so on your puppets’ bare JID.
hum ok that's interesting, because I remember having to advertise caps *with a resource* for clients to send markers and composing/paused chat states, but this is different for PEP, I did not realize that.
Link Mauve
I’ve never used slixmpp for component, I usually write its plugins with only clients in mind, but XEP-0030 and 0115 predate my involvement by a lot. ^^
Link Mauve
nicoco_, conceptually, a resource is a connected client (even if it’s fake in your case), a user can have multiple of those connected at a same time, each with a different featureset, so with different caps.
Link Mauve
But PEP is entirely handled by the server, with no involvement of connected clients (that way your contacts can see your avatar even when you’re offline, for instance), so it lives on your bare JID.
Link Mauve
Note also that in the case of avatars, it’s not about your puppets’ caps, but about their contacts’ caps.
Link Mauve
So actual XMPP users.
Link Mauve
They are the ones having the +notify.
nicoco_
slix's xep0030 and xep0115 are pretty hard to understand for my "hobbyist dev" brain. but I think I'll have to dive into them to implement some sort of "disco#items" access control to get things right in a "gateway with multiple users" context. although maybe not with what I understood about PEP yesterday. but maybe. but maybe not. anyway, the fact ✎
nikhas left
nikhas joined
larmahas joined
Alexhas left
Alexhas joined
nicoco_
slix's xep0030 and xep0115 are pretty hard to understand for my "hobbyist dev" brain. but I think I'll have to dive into them to implement some sort of "disco#items" access control to get things right in a "gateway with multiple users" context. although maybe not with what I understood about PEP yesterday. but maybe. but maybe not. ✏
pep.
"that way you contacts can see your avatar even when you're offline" which is funny because the audience of avatars is sometimes used to indicate offline-ness. Or maybe it's only in MUC because there is makes some sense of you don't keep a cache
Link Mauve
MUC doesn’t really have the concept of offline participants, they are not participants any longer.
TheRealkaranohas left
TheRealkaranohas joined
Link Mauve
nicoco_, oh no I was wrong, the actual caps string is:
gateway/aim/en/The great legacy network (slidge)<http://jabber.org/protocol/caps<http://jabber.org/protocol/chatstates<http://jabber.org/protocol/commands<http://jabber.org/protocol/disco#info<http://jabber.org/protocol/nick+notify<http://jabber.org/protocol/nick<http://jabber.org/protocol/shim#SubID<http://jabber.org/protocol/shim<jabber:iq:oob<jabber:iq:register<jabber:iq:search<jabber:x:data<jabber:x:oob<urn:xmpp:avatar:data<urn:xmpp:avatar:metadata+notify<urn:xmpp:avatar:metadata<urn:xmpp:carbons:2<urn:xmpp:chat-markers:0<urn:xmpp:fasten:0<urn:xmpp:forward:0<urn:xmpp:message-correct:0<urn:xmpp:message-retract:0<urn:xmpp:reactions:0<urn:xmpp:receipts<urn:xmpp:reply:0<
Link Mauve
I forgot to copy the xml:lang="en" from the iq.
nicoco_
Link Mauve, can you confirm that I am getting things right here:
- `baba@dummy.localhost/slidge` should have `http://jabber.org/protocol/chatstates`, `urn:xmpp:message-correct:0`, etc. in its `disco#items` for clients to send all the cool modern IM features and not just message bodys.
- `baba@dummy.localhost` (bare) should have `urn:xmpp:avatar:metadata`, `urn:xmpp:avatar:data`, `http://jabber.org/protocol/nick` in its disco#items and nothing else (well vcard, user gaming, geoloc at some point, but let's try and get avatars working first)
- `baba@dummy.localhost` (bare) will send to `test@localhost` (the actual XMPP user physical person, I heard there are still some left on earth) the `pubsub#event/avatar metadata` thing
- hopefully, if everything's done right, movim/gajim/conversations/whatever will retrieve the actual avatar with an iq to `baba@dummy.localhost`, which `dummy.localhost` will receive -- this is where I'm stuck right now, this does not happen, but probably related to the disco/caps thing.
- `baba@dummy.localhost` should send the iq reply with the base64 encoded avatar
nicoco_
about the caps string, I think slixmpp should handle that, and I should not have to generate it myself... but the xep_0030 module works in mysterious ways
Alexhas left
Matrix Traveler (bot)has left
homebeachhas left
homebeachhas joined
Matrix Traveler (bot)has joined
Link Mauve
It’s the xep_0115 module which generates it I think.
nicoco_
indeed, you're right
nicoco_
but I hope that if have add all the disco features and call `await xmpp.pluging["xep_0115"].update_caps(jid=contact.jid)`, It'll work 🤞✎
nicoco_
but I hope that if add all the disco features and call `await xmpp.pluging["xep_0115"].update_caps(jid=contact.jid)`, It'll work 🤞 ✏
nicoco_
but I hope that if add all the disco ~features~ items and call `await xmpp.pluging["xep_0115"].update_caps(jid=contact.jid)`, It'll work 🤞 ✏
Link Mauve
nicoco_, first - you’re right. Second - no, the account JID should have a pep identity, an account identity, and the relevant PubSub features (those from the http://jabber.org/protocol/pubsub# namespace) but not the avatar and nick stuff.
Link Mauve
Avatar and nick are for PubSub to expose, not for disco#info.
Link Mauve
Third, fourth and fifth - are correct.
Link Mauve
It’s likely that clients won’t talk PubSub to your account JIDs if they don’t advertise they are PubSub services.
heartyhas left
nicoco_
>Avatar and nick are for PubSub to expose, not for disco#info.
>clients won’t talk PubSub to your account JIDs if they don’t advertise they are PubSub services.
I think this is the part I completely missed in my attempts to get this working so far. sounds like I've got some experiments to run with this in mind now. thanks again
heartyhas joined
heartyhas left
TheRealkaranohas left
TheRealkaranohas joined
heartyhas joined
TheRealkaranohas left
TheRealkaranohas joined
zawarudohas left
zawarudohas joined
wurstsalathas left
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
kurtainhas left
Alexhas left
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
miruxhas left
kurtainhas joined
antranigvhas joined
zawarudohas left
TheRealkaranohas left
TheRealkaranohas joined
adxhas left
Samhas joined
TheRealkaranohas left
TheRealkaranohas joined
zawarudohas joined
techmetx11has left
techmetx11has joined
antranigvhas left
antranigvhas joined
atomicwatchhas left
Wojtekhas joined
spiralhas left
sonnyhas left
sonnyhas joined
antranigvhas left
antranigvhas joined
antranigvhas left
spiralhas joined
miruxhas joined
TheRealkaranohas left
TheRealkaranohas joined
rubihas left
rubihas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
spiralhas left
TheRealkaranohas joined
rubihas left
rubihas joined
atomicwatchhas joined
miruxhas left
spiralhas joined
TheRealkaranohas left
TheRealkaranohas joined
miruxhas joined
Laurahas left
TheRealkaranohas left
jubalhhas joined
TheRealkaranohas joined
Laurahas joined
Laurahas left
Laurahas joined
spiralhas left
Samhas left
Samhas joined
TheRealkaranohas left
TheRealkaranohas joined
Samhas left
zawarudohas left
Samhas joined
TheRealkaranohas left
TheRealkaranohas joined
techmetx11has left
techmetx11has joined
antranigvhas joined
TheRealkaranohas left
TheRealkaranohas joined
Laurahas left
Laurahas joined
zawarudohas joined
TheRealkaranohas left
TheRealkaranohas joined
wurstsalathas joined
paulhas joined
TheRealkaranohas left
TheRealkaranohas joined
spiralhas joined
adxhas joined
zawarudohas left
techmetx11has left
techmetx11has joined
TheRealkaranohas left
TheRealkaranohas joined
zawarudohas joined
TheRealkaranohas left
TheRealkaranohas joined
techmetx11has left
techmetx11has joined
PapaTutuWawahas joined
Kevhas joined
sonnyhas left
sonnyhas joined
Laurahas left
spiralhas left
Kevhas left
Kevhas joined
zawarudohas left
atomicwatchhas left
Laurahas joined
xnamedhas left
spiralhas joined
Kevhas left
Kevhas joined
Kevhas left
TheRealkaranohas left
TheRealkaranohas joined
marc0shas left
marc0shas joined
Kevhas joined
zawarudohas joined
Kevhas left
Kevhas joined
Kevhas left
spiralhas left
Kevhas joined
Kevhas left
Mx2has joined
heartyhas left
TheRealkaranohas left
atomicwatchhas joined
TheRealkaranohas joined
heartyhas joined
spiralhas joined
techmetx11has left
techmetx11has joined
xnamedhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
zawarudohas left
TheRealkaranohas joined
zawarudohas joined
TheRealkaranohas left
TheRealkaranohas joined
Kevhas joined
TheRealkaranohas left
TheRealkaranohas joined
Kevhas left
spiralhas left
sonnyhas left
sonnyhas joined
Samhas left
spiralhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Samhas joined
Kevhas joined
Kevhas left
spiralhas left
Wojtekhas left
Kevhas joined
Kevhas left
nikhas left
Matrix Traveler (bot)has left
homebeachhas left
homebeachhas joined
Matrix Traveler (bot)has joined
spiralhas joined
atomicwatchhas left
Laurahas left
atomicwatchhas joined
uhas joined
Alexhas left
Kevhas joined
TheRealkaranohas left
TheRealkaranohas joined
Kevhas left
Kevhas joined
Kevhas left
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
Samhas left
raghavgururajanhas joined
adxhas left
adxhas joined
Samhas joined
spiralhas left
uhas left
Alexhas joined
uhas joined
spiralhas joined
deadsendhas joined
Alexhas left
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
stpeterhas joined
zawarudohas left
Alexhas left
Alexhas joined
stpeterhas left
TheRealkaranohas left
TheRealkaranohas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
zawarudohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Alexhas left
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
spiralhas left
spiralhas joined
Alexhas left
Alexhas joined
uhas left
uhas joined
Kevhas joined
Kevhas left
_roothas left
_roothas joined
Laurahas joined
wurstsalathas left
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
nikhas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
MSavoritias (fae,ve)has left
Kevhas joined
zawarudohas left
MSavoritias (fae,ve)has joined
Kevhas left
spiralhas left
Kevhas joined
Kevhas left
spiralhas joined
uhas left
uhas joined
norayrhas left
zawarudohas joined
norayrhas joined
norayrhas left
TheRealkaranohas left
TheRealkaranohas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
marchas left
marchas joined
spiralhas left
TheRealkaranohas left
TheRealkaranohas joined
rubihas left
norayrhas joined
zawarudohas left
rubihas joined
xnamedhas left
Alexhas left
Alexhas joined
rubihas left
rubihas joined
spiralhas joined
rabbitseatcarrotshas joined
Alexhas left
Alexhas joined
xnamedhas joined
kikuchiyohas left
zawarudohas joined
kikuchiyohas joined
kikuchiyohas left
kikuchiyohas joined
kikuchiyohas left
kikuchiyohas joined
kikuchiyohas left
kikuchiyohas joined
kikuchiyohas left
PapaTutuWawahas left
kikuchiyohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
antranigvhas left
Dele Olajidehas joined
Dele Olajidehas left
Dele Olajidehas joined
Dele Olajidehas left
zawarudohas left
Dele Olajidehas joined
TheRealkaranohas left
TheRealkaranohas joined
Dele Olajidehas left
Dele Olajidehas joined
Dele Olajidehas left
Dele Olajidehas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Dele Olajidehas left
TheRealkaranohas left
TheRealkaranohas joined
spiralhas left
TheRealkaranohas left
TheRealkaranohas joined
spiralhas joined
antranigvhas joined
xnamedhas left
debaclehas left
antranigvhas left
raghavgururajanhas left
deadsendhas left
Alexhas left
spiralhas left
Alexhas joined
rubihas left
rubihas joined
Alexhas left
Alexhas joined
spiralhas joined
TheRealkaranohas left
TheRealkaranohas joined
lovetox
i think you are all confused
lovetox
if a client requests avatars or nick from pubsub, does not depend on any disco info
jubalhhas left
Samhas left
TheRealkaranohas left
TheRealkaranohas joined
Alexhas left
TheRealkaranohas left
TheRealkaranohas joined
Alexhas joined
rubihas left
rubihas joined
debaclehas joined
Samhas joined
rabbitseatcarrotshas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
pulkomandyhas left
pulkomandyhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
zawarudohas joined
rubihas left
rubihas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
antranigvhas joined
Alexhas left
Alexhas joined
PapaTutuWawahas joined
TheRealkaranohas left
TheRealkaranohas joined
rubihas left
rubihas joined
TheRealkaranohas left
rubihas left
TheRealkaranohas joined
rubihas joined
Vaulorhas left
Vaulorhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Alexhas left
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
rabbitseatcarrotshas joined
TheRealkaranohas left
TheRealkaranohas joined
marchas left
Yagizаhas left
zawarudohas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
xnamedhas joined
TheRealkaranohas left
TheRealkaranohas joined
rubihas left
rubihas joined
marchas joined
uhas left
uhas joined
TheRealkaranohas left
TheRealkaranohas joined
rubihas left
spiralhas left
Matrix Traveler (bot)has left
homebeachhas left
homebeachhas joined
Matrix Traveler (bot)has joined
TheRealkaranohas left
TheRealkaranohas joined
wurstsalathas joined
marchas left
TheRealkaranohas left
TheRealkaranohas joined
spiralhas joined
TheRealkaranohas left
TheRealkaranohas joined
rubihas joined
rubihas left
TheRealkaranohas left
TheRealkaranohas joined
rubihas joined
TheRealkaranohas left
TheRealkaranohas joined
jubalhhas joined
spiralhas left
TheRealkaranohas left
TheRealkaranohas joined
zawarudohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
uhas left
uhas joined
TheRealkaranohas left
TheRealkaranohas joined
thomaslewishas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Mx2has left
thomaslewishas left
spiralhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
e-snailhas left
TheRealkaranohas left
TheRealkaranohas joined
Kevhas joined
Kevhas left
TheRealkaranohas left
TheRealkaranohas joined
Mx2has joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Kevhas joined
ralphmhas left
ralphmhas joined
Kevhas left
TheRealkaranohas left
TheRealkaranohas joined
Schimon_has left
thomaslewishas joined
TheRealkaranohas left
TheRealkaranohas joined
spiralhas left
thomaslewishas left
TheRealkaranohas left
TheRealkaranohas joined
thomaslewishas joined
TheRealkaranohas left
TheRealkaranohas joined
Link Mauve
lovetox, it could check that it’s an actual PubSub service.
TheRealkaranohas left
TheRealkaranohas joined
lovetox
what? pubsub events come from the account
spiralhas joined
lovetox
if i disco the account, i will not get a pubsub service disco back
TheRealkaranohas left
Link Mauve
You will actually get a category pubsub type pep identity, and various pubsub features.
lovetox
the issue here is, his component sends a pubsub event to gajim, and gajim does not react like he wants
lovetox
no disco will fix that
lovetox
Link Mauve, ?! if i disco link@mauve.net i will get back type=pep?!?
Link Mauve
Yes.
lovetox
ah damn, we disco the resource, nobody discos the account
thomaslewishas left
lovetox
ok, yes gajim doesnt do this, i would also dont know why it should
lovetox
if i get a event, i act on it
lovetox
either on the other side is a pubsub service or i get an error
e-snailhas joined
thomaslewishas joined
Link Mauve
lovetox, a PubSub service could support the http://jabber.org/protocol/pubsub#presence-subscribe feature but not the http://jabber.org/protocol/pubsub#retrieve-items one.
Link Mauve
But yes, handling an error is also fine.
paulhas left
thomaslewishas left
thomaslewishas joined
Kevhas joined
uhas left
uhas joined
Kevhas left
paulhas joined
Kevhas joined
Kevhas left
Kevhas joined
Kevhas left
spiralhas left
marchas joined
Kevhas joined
spiralhas joined
Kevhas left
uhas left
uhas joined
Alexhas left
Alexhas joined
uhas left
Mx2has left
thomaslewishas left
zawarudohas left
Mx2has joined
marchas left
marchas joined
pulkomandyhas left
pulkomandyhas joined
Vaulorhas left
miruxhas left
zawarudohas joined
rabbitseatcarrotshas left
spiralhas left
nicoco_
your discussion got me even more confused, but stanzas are better than words aren't they? I fixed the caps verstring nonsense and to try and start simple, I am just trying to get the bridge component to correctly use 0084 for its own avatar (we'll puppet JIDs later)
gajim logs show that the pubsub#event seems correctly parsed ("Received avatar metadata: dummy.localhost - ...") but gajim does not try to "retrieve" the actual avatard data
movim on the other hand, makes 2 iq gets: urn:xmpp:avatar:data and urn:xmpp:avatar:metadata, but for some reason the :data one is missing the "item id" so I guess there is still something wrong with identity/disco/namespaces or something
any idea what's wrong with this? https://paste.sr.ht/~nicoco/f73001f408de0d46f386b6c69ed05f2a893e04c4✎
nicoco_
your discussion got me even more confused, but stanzas are better than words aren't they? I fixed the caps verstring nonsense and to try and start simple, I am just trying to get the bridge component to correctly use 0084 for its own avatar (we'll see puppet JIDs later)
gajim logs show that the pubsub#event seems correctly parsed ("Received avatar metadata: dummy.localhost - ...") but gajim does not try to "retrieve" the actual avatard data
movim on the other hand, makes 2 iq gets: urn:xmpp:avatar:data and urn:xmpp:avatar:metadata, but for some reason the :data one is missing the "item id" so I guess there is still something wrong with identity/disco/namespaces or something
any idea what's wrong with this? https://paste.sr.ht/~nicoco/f73001f408de0d46f386b6c69ed05f2a893e04c4 ✏
the avatar is updated in the movim ui, yeehaa! not in gajim, though, I am unsure what's missing for gajim to retrieve the avatar. lovetox you're saying the component behavior is non conform and that's why it won't work in gajim?
Mx2has joined
marchas joined
lovetox
no i didnt say that
lovetox
i said you should read the log
lovetox
but then you posted something about disco, which you found in the log, which was unrelated to the whole issue
Kevhas joined
jubalhhas left
Kevhas left
Kevhas joined
nicoco_
oh ok well this other wild bug of my thing appeared out of the blue ^^
Kevhas left
spiralhas joined
nicoco_
anything you see in this debug log that would explain why gajim doesn't try to retrieve the avatar? https://paste.sr.ht/~nicoco/4be6088c71a03e7a00f99ca63fa7fa42684511a2
yes it's in the roster. it's probably the cache thing indeed, since my component responded with incorrect stuff before, it messed things up probably. will try with a clean profile and removing all gajim cache
nicoco_
and it seems to work. thanks a lot for your help!
zawarudohas left
techmetx11has left
techmetx11has joined
wurstsalathas left
debaclehas left
zawarudohas joined
Samhas left
spiralhas joined
Samhas joined
xnamedhas left
xnamedhas joined
Vaulorhas joined
Millesimushas left
zawarudohas left
sonnyhas left
sonnyhas joined
xnamedhas left
spiralhas left
sonnyhas left
sonnyhas joined
Alexhas left
Alexhas joined
PapaTutuWawahas left
spiralhas joined
Millesimushas joined
Kevhas joined
Kevhas left
Kevhas joined
Kevhas left
Kevhas joined
Kevhas left
spiralhas left
lovetox
i think the idea that you can have alternate formats in your user avatar is rather hard to use
SouLhas left
xnamedhas joined
lovetox
the problem arises, because the id of the node = sha of the image/png content type
larmahas left
lovetox
so you need to save that to know when the avatar changes
kikuchiyohas left
kikuchiyohas joined
lovetox
but if you dont use image/png, you download something else
lovetox
which has a different hash
lovetox
and then it becomes a problem, of how do i know i downloaded this already?
spiralhas joined
lovetox
now you need to save in some db, the node id hash side by side with whatever you downloaded
lovetox
hash i usually good to check if a file is really that file
lovetox
but this is broken in this scenario
lovetox
it becomes a, lookup that hash in some db that maps to the actual hash of some file
xeckshas left
lovetox
adding to that is that people thought the XEP actually want to provide a way to upload different resolutions of the same content-type
lovetox
but this is not the intention of the XEP, its always about different content-types, not different resolutions of the same
Kevhas joined
lovetox
if we look back now, how many clients actually implement pubilshing multiple types, and downloading multiple types?
lovetox
probably none
xnamedhas left
Kevhas left
rabbitseatcarrotshas left
zawarudohas joined
lovetox
and, if i think about, how would you add or update a content-type which is not image/png
lovetox
you are not allowed to change the node id, because it always is the hash of the image/png type
lovetox
so you cannot communicate updates
lovetox
ah no that works, because the hash is inside the info element
lovetox
so you simply have to ignore the node id
lovetox
and check all the info items
Kevhas joined
Kevhas left
Alexhas left
Alexhas joined
nicoco_
FWIW, I've taken the "let's make everything a PNG" road, since I needed the conversion for the hash anyway, I figured let's keep things simple. early optimization blablabla✎
nicoco_
FWIW, I've taken the "let's make everything a PNG" road, since I needed the conversion for the hash anyway, I figured let's keep things simple. premature optimization blablabla ✏