jdev - 2020-08-05

  1. Жокир has left
  2. sonny has left
  3. kikuchiyo has left
  4. sonny has joined
  5. Жокир has joined
  6. Wojtek has left
  7. Жокир has left
  8. Жокир has joined
  9. Жокир has left
  10. Жокир has joined
  11. Жокир has left
  12. Жокир has joined
  13. kikuchiyo has joined
  14. Beherit has left
  15. Beherit has joined
  16. adiaholic_ has left
  17. adiaholic_ has joined
  18. Wojtek has joined
  19. adiaholic_ has left
  20. sonny has left
  21. sonny has joined
  22. kikuchiyo has left
  23. sonny has left
  24. sonny has joined
  25. esil has joined
  26. Жокир has left
  27. Жокир has joined
  28. Жокир has left
  29. Жокир has joined
  30. sonny has left
  31. sonny has joined
  32. Wojtek has left
  33. Жокир has left
  34. Жокир has joined
  35. Жокир has left
  36. Жокир has joined
  37. test2 has joined
  38. Жокир has left
  39. Жокир has joined
  40. test2 has left
  41. test2 has joined
  42. kikuchiyo has joined
  43. sonny has left
  44. sonny has joined
  45. Жокир has left
  46. Жокир has joined
  47. kikuchiyo has left
  48. Жокир has left
  49. Жокир has joined
  50. Жокир has left
  51. Жокир has joined
  52. adiaholic_ has joined
  53. Жокир has left
  54. Жокир has joined
  55. adiaholic_ has left
  56. adiaholic_ has joined
  57. Yagizа has joined
  58. Жокир has left
  59. Жокир has joined
  60. Жокир has left
  61. Жокир has joined
  62. kikuchiyo has joined
  63. sonny has left
  64. sonny has joined
  65. Жокир has left
  66. Жокир has joined
  67. Жокир has left
  68. Жокир has joined
  69. Жокир has left
  70. Жокир has joined
  71. Vaulor has joined
  72. SouL has joined
  73. Жокир has left
  74. Жокир has joined
  75. sonny has left
  76. sonny has joined
  77. Жокир has left
  78. Жокир has joined
  79. adiaholic_ has left
  80. adiaholic_ has joined
  81. kikuchiyo has left
  82. sonny has left
  83. sonny has joined
  84. sonny has left
  85. sonny has joined
  86. Beherit has left
  87. Beherit has joined
  88. sonny has left
  89. sonny has joined
  90. Beherit has left
  91. paul has joined
  92. kikuchiyo has joined
  93. sonny has left
  94. Beherit has joined
  95. sonny has joined
  96. test2 has left
  97. kikuchiyo has left
  98. Beherit has left
  99. Жокир has left
  100. Жокир has joined
  101. adiaholic_ has left
  102. adiaholic_ has joined
  103. Beherit has joined
  104. sonny has left
  105. adiaholic_ has left
  106. sonny has joined
  107. lovetox has joined
  108. Beherit has left
  109. Beherit has joined
  110. sonny has left
  111. sonny has joined
  112. sonny has left
  113. sonny has joined
  114. waqas has left
  115. Жокир has left
  116. Жокир has joined
  117. Beherit has left
  118. adiaholic_ has joined
  119. goffi has joined
  120. sonny has left
  121. sonny has joined
  122. Жокир has left
  123. Жокир has joined
  124. Beherit has joined
  125. Жокир has left
  126. Жокир has joined
  127. kikuchiyo has joined
  128. kikuchiyo has left
  129. kikuchiyo has joined
  130. Zash has left
  131. jonnj has left
  132. Жокир has left
  133. Жокир has joined
  134. paul has left
  135. Жокир has left
  136. Жокир has joined
  137. paul has joined
  138. Zash has joined
  139. Жокир has left
  140. Жокир has joined
  141. Жокир has left
  142. Жокир has joined
  143. lovetox has left
  144. Жокир has left
  145. Жокир has joined
  146. adiaholic_ has left
  147. test2 has joined
  148. adiaholic_ has joined
  149. Жокир has left
  150. Жокир has joined
  151. adiaholic_ has left
  152. sonny has left
  153. adiaholic_ has joined
  154. sonny has joined
  155. adiaholic_ has left
  156. adiaholic_ has joined
  157. adiaholic_ has left
  158. lovetox has joined
  159. Жокир has left
  160. Жокир has joined
  161. Beherit has left
  162. Beherit has joined
  163. Жокир has left
  164. Жокир has joined
  165. Жокир has left
  166. Жокир has joined
  167. pulkomandy has left
  168. pulkomandy has joined
  169. adiaholic_ has joined
  170. debacle has joined
  171. Жокир has left
  172. Жокир has joined
  173. test2 has left
  174. Жокир has left
  175. Жокир has joined
  176. Жокир has left
  177. Жокир has joined
  178. lovetox has left
  179. pulkomandy has left
  180. pulkomandy has joined
  181. paul has left
  182. paul has joined
  183. test2 has joined
  184. adrien has left
  185. adrien has joined
  186. pulkomandy has left
  187. pulkomandy has joined
  188. test2 has left
  189. lovetox has joined
  190. FireFly has left
  191. debacle has left
  192. Жокир has left
  193. Жокир has joined
  194. FireFly has joined
  195. adrien has left
  196. adrien has joined
  197. Жокир has left
  198. Жокир has joined
  199. adrien has left
  200. sonny has left
  201. sonny has joined
  202. Жокир has left
  203. Жокир has joined
  204. Priya has joined
  205. paul has left
  206. adrien has joined
  207. paul has joined
  208. adiaholic_ has left
  209. adiaholic_ has joined
  210. Priya has left
  211. sonny has left
  212. sonny has joined
  213. adiaholic_ has left
  214. adiaholic_ has joined
  215. Holger has left
  216. lovetox hm after reading the rfc
  217. lovetox if i send an IQ to a server without a "to" attribute
  218. MattJ My favourite topic!
  219. lovetox server needs to treat like my bare jid?
  220. lovetox because the rfc text is a bit cryptic
  221. jonas’ lovetox, yes
  222. lovetox ok nice
  223. jonas’ but implementations vary :)
  224. jonas’ be aware that you might get your IQ back with a @to attribute
  225. jonas’ instead of without
  226. jonas’ so your reply matchers have to treat @to=localBareJID identical to absent @to
  227. jonas’ %s/to/from/g, sorry
  228. jonas’ %s/@to/@from/g, sorry
  229. lovetox yes, actually i do this very early after stanza parsing
  230. lovetox if there is to or from missing
  231. jonas’ :+1:
  232. jonas’ then you should be good
  233. lovetox i fill in te respective values the rfc says
  234. Ge0rG and then you have the missing @to in carbons
  235. MattJ My opinion: clients should never use the 'to' attribute of incoming stanzas
  236. lovetox because i simply dont want to deal with absent from / to later in my code
  237. MattJ But I can understand why the missing/different 'from' trips implementations up
  238. lovetox yeah incoming from is obviously important
  239. jonas’ MattJ, yes, it was a tpyo
  240. lovetox i asked about outgoing to
  241. jonas’ MattJ, yes, it was a typo
  242. lovetox because i spares me to always look up my bare jid
  243. lovetox on the various PEP operations
  244. Жокир has left
  245. Beherit has left
  246. Beherit has joined
  247. Beherit has left
  248. Beherit has joined
  249. Beherit has left
  250. Beherit has joined
  251. debacle has joined
  252. debacle has left
  253. lovetox has left
  254. lovetox has joined
  255. Beherit has left
  256. eta has left
  257. eta has joined
  258. lovetox has left
  259. Beherit has joined
  260. Beherit has left
  261. Beherit has joined
  262. adiaholic_ has left
  263. adiaholic_ has joined
  264. Beherit has left
  265. Beherit has joined
  266. sonny has left
  267. sonny has joined
  268. adiaholic_ has left
  269. lovetox has joined
  270. adiaholic_ has joined
  271. debacle has joined
  272. goffi has left
  273. Lance has joined
  274. dendang has joined
  275. dendang has left
  276. lovetox has left
  277. Wojtek has joined
  278. lovetox has joined
  279. sonny has left
  280. sonny has joined
  281. sonny has left
  282. sonny has joined
  283. Bartek has joined
  284. Bartek has left
  285. Lance has left
  286. Kev 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.
  287. Kev 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.
  288. Kev 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.
  289. flow Kev, which case is that?
  290. Kev I don't recall, sadly.
  291. Beherit has left
  292. flow 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,
  293. flow so I am not sure if I would call the behavior you described above a bug
  294. lovetox missing from attribute is allowed
  295. lovetox 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
  296. lovetox and i think thats the case MattJ was thinking about
  297. Kev flow: You might be right. It might be that type=result doesn't mandate that, only type=error.
  298. Kev lovetox: Yes, missing from is definitely allowed.
  299. Lance has joined
  300. sonny has left
  301. sonny has joined
  302. Beherit has joined
  303. sonny has left
  304. sonny has joined
  305. lovetox i wonder why this was made that way
  306. lovetox 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
  307. lovetox lets save 20 bytes on every 50th message
  308. lovetox but makes it very easy to be tripped up as a developer
  309. sonny has left
  310. sonny has joined
  311. sonny has left
  312. sonny has joined
  313. test2 has joined
  314. Beherit has left
  315. Beherit has joined
  316. sonny has left
  317. sonny has joined
  318. Guus has left
  319. Guus has joined
  320. Beherit has left
  321. lovetox jonas’, im looking again trhough aioxmpp
  322. Beherit has joined
  323. lovetox and i see you raise an exception when a IQ error is returned
  324. lovetox i guess i look into jabbercat how this looks in a client code
  325. lovetox i had the same thought, for my library, to raise exception
  326. lovetox but i wonder how nice this is for client developers
  327. lovetox especially for iq errors
  328. eta uses Promises for IQs and just fails the promise
  329. lovetox eta, whats the lib you are writing?
  330. eta lovetox: the component library used by whatsxmpp
  331. eta (which isn't really a fully separate thing yet)
  332. lovetox what language?
  333. eta lovetox: Common Lisp :)
  334. Beherit has left
  335. eta relevant code: https://git.theta.eu.org/eta/whatsxmpp/src/branch/master/component.lisp#L258
  336. lovetox yeah never got into Lisp so i probably need a week to even understand a bit of the code
  337. eta reasonable :p
  338. lovetox why i wonder in python about exceptions is
  339. lovetox not on all iq errors you want to simply abort and be finished
  340. Beherit has joined
  341. lovetox sometimes you expect this case and do other stuff because of the error
  342. lovetox and then you have to do all that in an exception block
  343. eta lovetox: wait is your IQ thing blocking
  344. lovetox which is weird, becuase if it raises again exceptions, then you get this super long traceback
  345. eta like is it synchronous or asynchronous
  346. lovetox while an exception was raised, another exception was raised, and another exception was raised..
  347. eta oh, I guess Python has async/await now, nvm
  348. eta well, this is what multiple return types / Rust's Result type is for
  349. eta like, returning (result, error)
  350. lovetox yeah i do this right now, there is one result, and user can check if it was an error or a normal result
  351. lovetox and can then do his stuff
  352. eta sounds good
  353. rion has left
  354. lovetox yeah maybe im overthinking this :)
  355. lovetox i guess there is not only one good way
  356. eta especially with exceptions there are two camps
  357. rion has joined
  358. Yagizа has left
  359. moparisthebest only 2? I'm counting checked exceptions, runtime exceptions, checked+runtime exceptions, and no exceptions :)
  360. eta heh :)
  361. Lance has left
  362. Lance has joined
  363. Beherit has left
  364. Beherit has joined
  365. test2 has left
  366. test2 has joined
  367. debacle has left
  368. test2 has left
  369. test2 has joined
  370. test2 has left
  371. test2 has joined
  372. test2 has left
  373. test2 has joined
  374. Beherit has left
  375. adrien has left
  376. adrien has joined
  377. jonas’ lovetox, exceptions are amazing for IQ errors
  378. jonas’ you can write a chain of IQ calls and wrap it in a single try/except aioxmpp.XMPPError block for example
  379. Beherit has joined
  380. test2 has left
  381. debacle has joined
  382. Lance has left
  383. Lance has joined
  384. test2 has joined
  385. Beherit has left
  386. Beherit has joined
  387. test2 has left
  388. test2 has joined
  389. Beherit has left
  390. Beherit has joined
  391. Beherit has left
  392. Lance has left
  393. Lance has joined
  394. Zash has left
  395. Zash has joined
  396. Beherit has joined
  397. pulkomandy has left
  398. pulkomandy has joined
  399. lovetox has left
  400. pulkomandy has left
  401. pulkomandy has joined
  402. Vaulor has left
  403. SouL has left
  404. Wojtek has left
  405. paul has left
  406. adiaholic_ has left
  407. adiaholic_ has joined