Жокир
has left
00:04:32
sonny
has left
00:04:41
kikuchiyo
has left
00:04:44
sonny
has joined
00:04:51
Жокир
has joined
00:04:53
Wojtek
has left
00:08:19
Жокир
has left
00:10:09
Жокир
has joined
00:10:13
Жокир
has left
00:13:51
Жокир
has joined
00:13:53
Жокир
has left
00:15:41
Жокир
has joined
00:15:47
kikuchiyo
has joined
00:18:33
Beherit
has left
00:23:17
Beherit
has joined
00:23:24
adiaholic_
has left
00:27:55
adiaholic_
has joined
00:27:57
Wojtek
has joined
00:46:52
adiaholic_
has left
00:55:40
sonny
has left
01:03:09
sonny
has joined
01:03:17
kikuchiyo
has left
01:25:15
sonny
has left
01:26:05
sonny
has joined
01:26:12
esil
has joined
01:27:04
Жокир
has left
01:28:15
Жокир
has joined
01:28:26
Жокир
has left
01:30:52
Жокир
has joined
01:30:54
sonny
has left
01:36:28
sonny
has joined
01:36:40
Wojtek
has left
01:40:25
Жокир
has left
01:57:04
Жокир
has joined
01:57:06
Жокир
has left
02:07:12
Жокир
has joined
02:07:17
test2
has joined
02:17:17
Жокир
has left
02:17:55
Жокир
has joined
02:17:59
test2
has left
02:18:03
test2
has joined
02:18:22
kikuchiyo
has joined
02:20:59
sonny
has left
02:28:50
sonny
has joined
02:29:00
Жокир
has left
02:29:31
Жокир
has joined
02:29:33
kikuchiyo
has left
02:38:08
Жокир
has left
02:41:28
Жокир
has joined
02:41:32
Жокир
has left
02:47:08
Жокир
has joined
02:47:10
adiaholic_
has joined
02:50:07
Жокир
has left
02:51:50
Жокир
has joined
02:51:52
adiaholic_
has left
02:52:15
adiaholic_
has joined
02:52:17
Yagizа
has joined
02:55:23
Жокир
has left
03:06:09
Жокир
has joined
03:06:11
Жокир
has left
03:09:45
Жокир
has joined
03:10:47
kikuchiyo
has joined
03:18:16
sonny
has left
03:18:54
sonny
has joined
03:19:03
Жокир
has left
03:24:29
Жокир
has joined
03:24:40
Жокир
has left
03:31:57
Жокир
has joined
03:32:41
Жокир
has left
03:48:09
Жокир
has joined
03:49:23
Vaulor
has joined
03:50:32
SouL
has joined
03:51:39
Жокир
has left
03:55:25
Жокир
has joined
03:56:28
sonny
has left
04:02:07
sonny
has joined
04:02:16
Жокир
has left
04:07:40
Жокир
has joined
04:07:43
adiaholic_
has left
04:08:49
adiaholic_
has joined
04:09:11
kikuchiyo
has left
04:13:54
sonny
has left
04:47:09
sonny
has joined
04:47:16
sonny
has left
04:53:40
sonny
has joined
04:53:49
Beherit
has left
05:04:50
Beherit
has joined
05:10:35
sonny
has left
05:12:45
sonny
has joined
05:12:57
Beherit
has left
05:17:10
paul
has joined
05:18:10
kikuchiyo
has joined
05:19:10
sonny
has left
05:19:23
Beherit
has joined
05:19:30
sonny
has joined
05:19:30
test2
has left
05:23:10
kikuchiyo
has left
05:25:15
Beherit
has left
05:30:05
Жокир
has left
05:31:33
Жокир
has joined
05:32:21
adiaholic_
has left
05:37:53
adiaholic_
has joined
05:37:55
Beherit
has joined
05:44:08
sonny
has left
05:46:35
adiaholic_
has left
05:46:56
sonny
has joined
05:47:02
lovetox
has joined
05:47:08
Beherit
has left
05:50:18
Beherit
has joined
05:54:30
sonny
has left
05:56:25
sonny
has joined
05:56:52
sonny
has left
06:05:09
sonny
has joined
06:05:16
waqas
has left
06:08:53
Жокир
has left
06:09:25
Жокир
has joined
06:09:36
Beherit
has left
06:15:47
adiaholic_
has joined
06:19:03
goffi
has joined
06:20:22
sonny
has left
06:22:28
sonny
has joined
06:22:35
Жокир
has left
06:32:12
Жокир
has joined
06:32:14
Beherit
has joined
06:35:50
Жокир
has left
06:37:00
Жокир
has joined
06:37:02
kikuchiyo
has joined
06:39:08
kikuchiyo
has left
06:39:24
kikuchiyo
has joined
06:40:35
Zash
has left
06:57:13
jonnj
has left
06:59:04
Жокир
has left
07:00:59
Жокир
has joined
07:01:00
paul
has left
07:12:40
Жокир
has left
07:13:55
Жокир
has joined
07:14:01
paul
has joined
07:16:11
Zash
has joined
07:16:11
Жокир
has left
07:20:03
Жокир
has joined
07:20:11
Жокир
has left
07:26:45
Жокир
has joined
07:26:51
lovetox
has left
07:31:56
Жокир
has left
07:36:31
Жокир
has joined
07:36:35
adiaholic_
has left
07:39:10
test2
has joined
07:45:34
adiaholic_
has joined
07:50:14
Жокир
has left
07:50:14
Жокир
has joined
07:50:17
adiaholic_
has left
07:56:33
sonny
has left
07:59:35
adiaholic_
has joined
07:59:56
sonny
has joined
08:00:34
adiaholic_
has left
08:13:03
adiaholic_
has joined
08:13:05
adiaholic_
has left
08:22:39
lovetox
has joined
08:23:55
Жокир
has left
08:29:09
Жокир
has joined
08:29:10
Beherit
has left
08:30:51
Beherit
has joined
08:30:52
Жокир
has left
08:35:09
Жокир
has joined
08:35:11
Жокир
has left
08:35:49
Жокир
has joined
08:35:53
pulkomandy
has left
08:38:31
pulkomandy
has joined
08:38:35
adiaholic_
has joined
08:38:47
debacle
has joined
08:40:48
Жокир
has left
08:41:43
Жокир
has joined
08:41:45
test2
has left
08:48:51
Жокир
has left
09:01:52
Жокир
has joined
09:02:01
Жокир
has left
09:17:30
Жокир
has joined
09:17:32
lovetox
has left
09:19:06
pulkomandy
has left
09:23:35
pulkomandy
has joined
09:23:39
paul
has left
09:25:01
paul
has joined
09:30:54
test2
has joined
09:31:07
adrien
has left
09:47:49
adrien
has joined
09:48:18
pulkomandy
has left
09:54:37
pulkomandy
has joined
09:54:51
test2
has left
10:08:13
lovetox
has joined
10:09:17
FireFly
has left
10:11:31
debacle
has left
10:43:55
Жокир
has left
10:50:46
Жокир
has joined
10:50:48
FireFly
has joined
11:06:54
adrien
has left
11:08:22
adrien
has joined
11:08:25
Жокир
has left
11:16:56
Жокир
has joined
11:16:59
adrien
has left
11:28:15
sonny
has left
11:30:22
sonny
has joined
11:30:30
Жокир
has left
12:04:23
Жокир
has joined
12:04:24
Priya
has joined
12:15:05
paul
has left
12:45:18
adrien
has joined
12:45:51
paul
has joined
12:46:45
adiaholic_
has left
12:50:58
adiaholic_
has joined
12:51:00
Priya
has left
12:54:46
sonny
has left
13:00:10
sonny
has joined
13:00:16
adiaholic_
has left
13:08:38
adiaholic_
has joined
13:08:53
Holger
has left
13:15:47
lovetox
13:47:10
hm after reading the rfc
lovetox
13:47:24
if i send an IQ to a server without a "to" attribute
MattJ
13:47:36
My favourite topic!
lovetox
13:47:40
server needs to treat like my bare jid?
lovetox
13:47:54
because the rfc text is a bit cryptic
jonas’
13:48:16
lovetox, yes
lovetox
13:49:00
ok nice
jonas’
13:49:08
but implementations vary :)
jonas’
13:49:20
be aware that you might get your IQ back with a @to attribute
jonas’
13:49:22
instead of without
jonas’
13:49:33
so your reply matchers have to treat @to=localBareJID identical to absent @to
jonas’
13:49:41
%s/to/from/g, sorry ✎
jonas’
13:49:56
%s/@to/@from/g, sorry ✏
lovetox
13:49:58
yes, actually i do this very early after stanza parsing
lovetox
13:50:02
if there is to or from missing
jonas’
13:50:04
:+1:
jonas’
13:50:10
then you should be good
lovetox
13:50:12
i fill in te respective values the rfc says
Ge0rG
13:50:16
and then you have the missing @to in carbons
MattJ
13:50:22
My opinion: clients should never use the 'to' attribute of incoming stanzas
lovetox
13:50:28
because i simply dont want to deal with absent from / to later in my code
MattJ
13:50:47
But I can understand why the missing/different 'from' trips implementations up
lovetox
13:51:17
yeah incoming from is obviously important
jonas’
13:51:19
MattJ, yes, it was a tpyo ✎
lovetox
13:51:21
i asked about outgoing to
jonas’
13:51:22
MattJ, yes, it was a typo ✏
lovetox
13:51:31
because i spares me to always look up my bare jid
lovetox
13:51:41
on the various PEP operations
Жокир
has left
13:51:48
Beherit
has left
13:53:47
Beherit
has joined
14:03:31
Beherit
has left
14:10:42
Beherit
has joined
14:10:49
Beherit
has left
14:20:56
Beherit
has joined
14:24:56
debacle
has joined
14:27:44
debacle
has left
14:33:32
lovetox
has left
14:38:44
lovetox
has joined
14:41:20
Beherit
has left
14:53:26
eta
has left
14:56:58
eta
has joined
14:57:01
lovetox
has left
14:58:10
Beherit
has joined
14:59:44
Beherit
has left
15:06:06
Beherit
has joined
15:07:49
adiaholic_
has left
15:14:23
adiaholic_
has joined
15:14:26
Beherit
has left
15:16:40
Beherit
has joined
15:20:01
sonny
has left
15:38:53
sonny
has joined
15:39:03
adiaholic_
has left
15:48:58
lovetox
has joined
15:49:28
adiaholic_
has joined
15:49:37
debacle
has joined
15:51:56
goffi
has left
15:54:59
Lance
has joined
15:55:37
dendang
has joined
16:06:17
dendang
has left
16:07:49
lovetox
has left
16:12:01
Wojtek
has joined
16:13:00
lovetox
has joined
16:15:47
sonny
has left
16:40:14
sonny
has joined
16:40:21
sonny
has left
16:42:42
sonny
has joined
16:42:50
Bartek
has joined
16:46:48
Bartek
has left
16:48:38
Lance
has left
16:55:49
Kev
16:56:21
I don't have the RFC to hand, but last time I looked it up I decided that if a server stamps a bare JID as the 'from' of a reply to to a stanza that has no 'to', that is not allowed, and therefore a bug.
Kev
16:56:34
So
> But I can understand why the missing/different 'from' trips implementations up
Clients are allowed to be tripped up by this, because it's illegal.
Kev
16:57:16
Although ISTR there is at least one case where, although the server has to treat no to and bare JID as the same, one of the protocols requires that it be no to rather than bare JID for no good reason.
flow
17:03:16
Kev, which case is that?
Kev
17:03:34
I don't recall, sadly.
Beherit
has left
17:06:58
flow
17:07:19
re the first part: I only cound find the following stanza error rule:
2. The error stanza SHOULD simply swap the 'from' and 'to' addresses
from the generated stanza,
flow
17:07:58
so I am not sure if I would call the behavior you described above a bug
lovetox
17:11:12
missing from attribute is allowed
lovetox
17:11:15
When the server generates a stanza from the server for delivery
to the client on behalf of the account of the connected client
(e.g., in the context of data storage services provided by the
server on behalf of the client), the stanza MUST either (a) not
include a 'from' attribute or (b) include a 'from' attribute
whose value is the account's bare JID
lovetox
17:11:45
and i think thats the case MattJ was thinking about
Kev
17:12:22
flow: You might be right. It might be that type=result doesn't mandate that, only type=error.
Kev
17:12:42
lovetox: Yes, missing from is definitely allowed.
Lance
has joined
17:13:32
sonny
has left
17:28:05
sonny
has joined
17:28:20
Beherit
has joined
17:28:26
sonny
has left
17:28:53
sonny
has joined
17:29:07
lovetox
17:30:48
i wonder why this was made that way
lovetox
17:31:21
it seems really not worth it, its not expected that a big percentage of all traffic is from server to client in a account context
lovetox
17:31:55
lets save 20 bytes on every 50th message
lovetox
17:32:37
but makes it very easy to be tripped up as a developer
sonny
has left
17:35:14
sonny
has joined
17:35:25
sonny
has left
17:49:32
sonny
has joined
17:49:42
test2
has joined
18:09:51
Beherit
has left
18:11:17
Beherit
has joined
18:12:02
sonny
has left
18:14:12
sonny
has joined
18:14:25
Guus
has left
18:26:28
Guus
has joined
18:26:48
Beherit
has left
18:30:25
lovetox
18:32:37
jonas’, im looking again trhough aioxmpp
Beherit
has joined
18:34:29
lovetox
18:38:48
and i see you raise an exception when a IQ error is returned
lovetox
18:39:26
i guess i look into jabbercat how this looks in a client code
lovetox
18:41:21
i had the same thought, for my library, to raise exception
lovetox
18:42:25
but i wonder how nice this is for client developers
lovetox
18:42:36
especially for iq errors
eta
uses Promises for IQs and just fails the promise
18:42:57
lovetox
18:43:21
eta, whats the lib you are writing?
eta
18:43:44
lovetox: the component library used by whatsxmpp
eta
18:43:54
(which isn't really a fully separate thing yet)
lovetox
18:44:00
what language?
eta
18:44:55
lovetox: Common Lisp :)
Beherit
has left
18:44:56
eta
18:45:25
relevant code: https://git.theta.eu.org/eta/whatsxmpp/src/branch/master/component.lisp#L258
lovetox
18:45:51
yeah never got into Lisp so i probably need a week to even understand a bit of the code
eta
18:46:00
reasonable :p
lovetox
18:46:17
why i wonder in python about exceptions is
lovetox
18:46:29
not on all iq errors you want to simply abort and be finished
Beherit
has joined
18:46:33
lovetox
18:46:44
sometimes you expect this case and do other stuff because of the error
lovetox
18:46:53
and then you have to do all that in an exception block
eta
18:47:02
lovetox: wait is your IQ thing blocking
lovetox
18:47:09
which is weird, becuase if it raises again exceptions, then you get this super long traceback
eta
18:47:11
like is it synchronous or asynchronous
lovetox
18:47:26
while an exception was raised, another exception was raised, and another exception was raised..
eta
18:47:37
oh, I guess Python has async/await now, nvm
eta
18:48:07
well, this is what multiple return types / Rust's Result type is for
eta
18:48:17
like, returning (result, error)
lovetox
18:48:47
yeah i do this right now, there is one result, and user can check if it was an error or a normal result
lovetox
18:48:53
and can then do his stuff
eta
18:49:34
sounds good
rion
has left
18:50:01
lovetox
18:50:34
yeah maybe im overthinking this :)
lovetox
18:51:06
i guess there is not only one good way
eta
18:51:30
especially with exceptions there are two camps
rion
has joined
18:51:30
Yagizа
has left
18:52:21
moparisthebest
18:55:19
only 2? I'm counting checked exceptions, runtime exceptions, checked+runtime exceptions, and no exceptions :)
eta
18:55:45
heh :)
Lance
has left
19:04:02
Lance
has joined
19:06:34
Beherit
has left
19:10:12
Beherit
has joined
19:12:30
test2
has left
19:17:01
test2
has joined
19:17:13
debacle
has left
19:21:29
test2
has left
19:23:35
test2
has joined
19:23:49
test2
has left
19:25:56
test2
has joined
19:26:16
test2
has left
19:26:53
test2
has joined
19:27:07
Beherit
has left
19:29:29
adrien
has left
19:42:11
adrien
has joined
19:42:14
jonas’
19:45:14
lovetox, exceptions are amazing for IQ errors
jonas’
19:45:41
you can write a chain of IQ calls and wrap it in a single try/except aioxmpp.XMPPError block for example
Beherit
has joined
19:55:11
test2
has left
19:55:47
debacle
has joined
19:57:45
Lance
has left
20:01:22
Lance
has joined
20:02:10
test2
has joined
20:06:35
Beherit
has left
20:07:37
Beherit
has joined
20:09:40
test2
has left
20:11:15
test2
has joined
20:11:41
Beherit
has left
20:25:23
Beherit
has joined
20:29:49
Beherit
has left
20:34:51
Lance
has left
21:04:44
Lance
has joined
21:07:51
Zash
has left
21:08:01
Zash
has joined
21:08:04
Beherit
has joined
21:15:13
pulkomandy
has left
21:16:54
pulkomandy
has joined
21:16:58
lovetox
has left
21:17:43
pulkomandy
has left
21:20:34
pulkomandy
has joined
21:20:48
Vaulor
has left
21:32:45
SouL
has left
21:52:01
Wojtek
has left
22:45:51
paul
has left
23:31:08
adiaholic_
has left
23:47:40
adiaholic_
has joined
23:47:41