In a JID we have that 1023 bytes limit for each component, but is that before or after normalisation?
Link Mauve
Say I have a JID of the form ™™™™™™™…@ (with a count of ‘™’ comprised between 341 and 511), should it get accepted by other entities or rejected on the basis it is too long?
TheRealkaranohas left
TheRealkaranohas joined
Link Mauve
™ gets normalised to tm, and the former is 3 bytes long in UTF-8, the latter 2 bytes long.
TheRealkaranohas left
TheRealkaranohas joined
jubalhhas left
marc0shas left
marc0shas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
larma
As always: Be strictest on data you create and lax on what others did: Do not allow to sign in or register with the >341 ™ in a component, but accept the <512 ™ when received.
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
Link Mauve
Yeah, that makes sense.
TheRealkaranohas joined
Link Mauve
Are there codepoints which go the other way, grow in byte length when normalised?
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Zash
Prosody uses char[1024] (including NUL trailer) buffers for both input and output, so would reject both cases of oversized JID component.
Zash
There's only 0x10FFFF code points, so you could check all of them fairly quickly ;)
Link Mauve
Indeed.
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
larma
Link Mauve, I think composed chars will typically increase in size when normalized✎
TheRealkaranohas joined
lovetoxhas left
larma
Link Mauve, I think chars that can be expressed as composed chars will typically increase in size when normalized ✏
larma
Like á (0xC3A1) turns into á (0x61CC81)
larma
are we talking about NFC or NFD though?
marc0shas left
marc0shas joined
Zash
"yes"
Link Mauve
Ah no, I was talking about stringprep.
larma
Ah, stringprep only increases IIRC
debaclehas left
Mx2has left
nikhas left
debaclehas joined
nikhas joined
Link Mauve
Only decreases right?
Mx2has joined
Link Mauve
Like in that ™ → tm example.
larma
uhm, I was thinking of number of codepoints. Not sure about utf-8 encoding then
Link Mauve
Oh.
larma
maybe i'm mixing things up though
Link Mauvehas left
larma
Try with ǰ (\u01F0 = 0xC7B0), I think it should become ǰ (\u006A\u030C = 0x6ACC8C)
Zash
I observe that it recomposes 0061 0301 → 00E1 (a+´ → á)
Link Mauvehas joined
larma
The issue with stringprep is that it does case mapping, and some chars have different codepoint requirements in different cases
jubalhhas joined
larma
ΐ \u0390 is case mapped into ΐ \u03B9\u0308\u0301
jubalhhas left
marc0shas left
marc0shas joined
TheRealkaranohas left
TheRealkaranohas joined
spiralhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
jubalhhas joined
marc0shas left
marc0shas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Mx2has left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
lovetoxhas joined
Mx2has joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
debaclehas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
moparisthebesthas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Beherithas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
xeckshas left
xeckshas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
adxhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
Beherithas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
spiralhas joined
MSavoritias (fae,ve)has left
MSavoritias (fae,ve)has joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
antranigvhas joined
nikhas left
nikhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Alexhas left
Alexhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
tskhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
antranigvhas left
kurtainhas left
TheRealkaranohas left
TheRealkaranohas joined
atomicwatchhas left
TheRealkaranohas left
TheRealkaranohas joined
adxhas joined
SouLhas left
SouLhas joined
TheRealkaranohas left
TheRealkaranohas joined
Laurahas left
Laurahas joined
atomicwatchhas joined
nikhas left
kujiuhas joined
larmahas left
larmahas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
larmahas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
larmahas joined
larmahas left
larmahas joined
larmahas left
larmahas joined
kurtainhas joined
TheRealkaranohas left
TheRealkaranohas joined
larmahas left
larmahas joined
larmahas left
larmahas joined
TheRealkaranohas left
TheRealkaranohas joined
larmahas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
larmahas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
flow
Link Mauve, would it make sense if it was before normalization? Then a JID would be somtimes valid and somtimes not, a situation that doesn't appear to be much appealing
spiralhas left
TheRealkaranohas left
Kevhas joined
TheRealkaranohas joined
Kevhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
jubalhhas left
jubalhhas joined
flow
fwiw, jxmpp applies enforces the 1023 bytes limit on the resulting normalized string encoded in utf-8✎
tskhas joined
flow
fwiw, jxmpp enforces the 1023 bytes limit on the resulting normalized string encoded in utf-8 ✏
larmahas left
TheRealkaranohas left
TheRealkaranohas joined
adxhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Mx2has left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Vaulorhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Mx2has joined
debaclehas joined
Samhas left
moparisthebesthas joined
nikhas joined
Samhas joined
Samhas left
Samhas joined
adxhas joined
nikhas left
TheRealkaranohas left
TheRealkaranohas joined
nikhas joined
moparisthebesthas left
TheRealkaranohas left
TheRealkaranohas joined
spiralhas joined
TheRealkaranohas left
TheRealkaranohas joined
heartyhas left
marc0shas left
marc0shas joined
heartyhas joined
Mx2has left
Mx2has joined
TheRealkaranohas left
TheRealkaranohas joined
alhas joined
larmahas joined
TheRealkaranohas left
TheRealkaranohas joined
atomicwatchhas left
TheRealkaranohas left
TheRealkaranohas joined
sonnyhas left
sonnyhas joined
TheRealkaranohas left
TheRealkaranohas joined
Yagizаhas left
adxhas left
TheRealkaranohas left
TheRealkaranohas joined
adxhas joined
Laurahas left
Laurahas joined
Samhas left
Samhas joined
norayrhas left
atomicwatchhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
adxhas left
TheCoffeMakerhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
atomicwatchhas left
TheRealkaranohas left
TheCoffeMakerhas joined
TheRealkaranohas joined
raghavgururajanhas joined
atomicwatchhas joined
TheCoffeMakerhas left
TheCoffeMakerhas joined
miruxhas left
miruxhas joined
TheRealkaranohas left
TheRealkaranohas joined
nikhas left
nikhas joined
TheRealkaranohas left
TheRealkaranohas joined
Mx2has left
alhas left
moparisthebesthas joined
nikhas left
TheRealkaranohas left
nikhas joined
TheRealkaranohas joined
antranigvhas joined
nikhas left
nikhas joined
adxhas joined
sonnyhas left
Mx2has joined
sonnyhas joined
Vaulorhas joined
Patigahas left
sonnyhas left
sonnyhas joined
Mx2has left
nikhas left
nikhas joined
wurstsalathas left
norayrhas joined
Mx2has joined
TheRealkaranohas left
TheRealkaranohas joined
atomicwatchhas left
TheRealkaranohas left
TheRealkaranohas joined
marc0shas left
marc0shas joined
atomicwatchhas joined
antranigvhas left
wurstsalathas joined
marc0shas left
marc0shas joined
xeckshas left
xeckshas joined
xnamedhas left
xnamedhas joined
euhas left
euhas joined
Patigahas joined
TheRealkaranohas left
TheRealkaranohas joined
MSavoritias (fae,ve)has left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Kevhas joined
Kevhas left
xnamedhas left
MSavoritias (fae,ve)has joined
xnamedhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Schimonhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
marc0shas left
marc0shas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
miruxhas left
miruxhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
marc0shas left
marc0shas joined
TheRealkaranohas left
TheRealkaranohas joined
marc0shas left
PapaTutuWawahas joined
marc0shas joined
Zash
but can you pass a >1023 octet string into it?
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheCoffeMakerhas left
TheCoffeMakerhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
marc0shas left
marc0shas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Mx2has left
TheRealkaranohas left
TheRealkaranohas joined
heartyhas left
Yagizаhas joined
TheRealkaranohas left
TheRealkaranohas joined
marc0shas left
marc0shas joined
TheRealkaranohas left
TheRealkaranohas joined
heartyhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
nephelehas joined
rom1dep
hello there, do you happen to know if there's a ranking of clients by popularity? Something that a scraper like muclumbus could aggregate and report about. I'm being told that my perception about a certain client being close to extinct is wrong, and it not supporting recent XEPs is a proof that XMPP is full of obsolete clients
nephelehas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Link Mauve
rom1dep, hi, it’s for a single server but you can find our stats here: https://stats.jabberfr.org/
nephelehas joined
Link Mauve
Check Client identities there.
TheCoffeMakerhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
rom1dep
Link Mauve: super interesting, thanks!
TheCoffeMakerhas joined
TheRealkaranohas left
TheRealkaranohas joined
Link Mauve
rom1dep, note also that it is a percentage of the total number of current sessions, some people use multiple clients so the total percentage should probably be higher than 100%.
Link Mauve
But currently it’s only counting sessions.
TheRealkaranohas left
TheRealkaranohas joined
Zash
So no clients like Siskin that only stays connected while it's in the foreground...
Link Mauve
Right.
nephelehas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Mx2has joined
TheRealkaranohas left
TheRealkaranohas joined
techmetx11has left
techmetx11has joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
norayrhas left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
inkyhas left
TheRealkaranohas left
TheRealkaranohas joined
e-snailhas left
TheRealkaranohas left
TheRealkaranohas joined
Mx2has left
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheCoffeMakerhas left
TheRealkaranohas joined
TheCoffeMakerhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
e-snailhas joined
TheRealkaranohas joined
spiralhas left
Mx2has joined
TheRealkaranohas left
TheRealkaranohas joined
spiralhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
norayrhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
Samhas left
Samhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
inkyhas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas joined
TheRealkaranohas left
TheRealkaranohas 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
marchas joined
marc0shas left
marc0shas joined
Schimonhas left
flow
Zash, not sure if I understand the question? strings that are longer that 1023 bytes/octets after normaliztion when encoded in UTF-8 will be rejected
PapaTutuWawahas left
Zash
flow, but before?
flow
Zash, yes, I can't rule out that the string before is longer than 1023 bytes
flow
but that is true in general with xmpp string validation: the input string may not be valid