-
lovetox
jonas’, the http api uri in the examples of the api docs of muculumbus is wrong
-
lovetox
or not used anymore to be exact
-
jonas’
lovetox, which one?
-
lovetox
jabber.network
-
lovetox
is in the examples
-
jonas’
both work
-
jonas’
jabber.network will give you a redirect of course
-
lovetox
yeah, still i dont think any http lib just autofollows redirects
-
lovetox
im also not sure i even want to implement something like that
-
jonas’
yeah
-
jonas’
I’ll go and fix it soon
-
lovetox
yeah no hurry just wanted to mention it
-
Ge0rG
if only we had stable domains maintained by an organisation of sorts.
-
lovetox
jonas’, already 2200 mucs on muclumbus
-
lovetox
some weeks ago it was only 600
-
jonas’
unless there was a glitch, I doubt that’s treu
-
jonas’
there are 6.7k public MUCs in the db right now, where did you get the 2.2k from?
-
lovetox
thats all i get when i request all
-
jonas’
ah, it only returns MUCs with at least one occupant by default
-
lovetox
ah yeah :)
-
lovetox
but still weird that its always a round number
-
lovetox
its exactly 2200
-
lovetox
or i have a counting bug
-
jonas’
that sounds like a pagination bug
-
Zash
https://xmpp.org/extensions/xep-0060.html talks about a "cache-last-item" feature, but it seems to be undefined.
-
Zash
What's up with that?
-
lovetox
does anyone know a case where a error is returned with more than one error condition with namespace urn:ietf:params:xml:ns:xmpp-stanzas
-
lovetox
the rfc says an error must contain a condition, but does not say it must be only one
-
jonas’
the schema does not allow it at least
-
Zash
Multiple `<text>` is ok tho
-
jonas’
for i18n
-
Link Mauve
lovetox, I haven’t found any, when I ran xmpp-parsers on data extracted from the xeps repository.
-
lovetox
ok then i will support one error condition and one application error condition
-
lovetox
and multiple text elements
-
lovetox
parsing errors is a bit weird
-
lovetox
you have to iter the childs of error, and you dont really know what you are searching for, you only know what you dont search for
-
jonas’
for i18n✎ -
jonas’
wrong window ✏
-
Link Mauve
It’s one text element, but in multiple different locales.
-
Link Mauve
It’s invalid for instance to have the same locale twice.
-
jonas’
that’s still multiple elements on the XML layer
-
Link Mauve
Yes.
-
Link Mauve
But not conceptually.
-
lovetox
so i looked into the xml:lang thing
-
lovetox
i expected every server issue only one text with the lang i set on the stream
-
lovetox
but as someone mentioned, and i saw it myself some server add also the "en" translation
-
lovetox
Gajim just takes the first text element and expects it to be in stream lang, so as this is obviously not good i checked expat for xml:lang inheritence
-
lovetox
seems the xml standard actually says to inherit that
-
lovetox
but i could not find any hint that expat actually does this
-
lovetox
BUT its stll very easy on client side
-
lovetox
at least with my node objects that my parser creates every node has its parent assigned
-
lovetox
so you just traverse up the parents until you find one with an xml:lang attr
-
lovetox
so still not seeing the can of worms that i supposed to have opened
-
flow
I find it actually very beneficial that entities also include "en" besides the receivers xml:lang in error stanzas
-
flow
Makes it easier to read XMPP traces being posted in your forum etc
-
flow
I think it would be even nice if the standard recommends doing so
-
Ge0rG
lovetox: lucky you have access to the whole hierarchy of elements from where you need the language. The parser I'm working with doesn't give me the elements above.