jdev - 2022-10-11


  1. atomicwatch has left

  2. atomicwatch has joined

  3. techmetx11 has left

  4. techmetx11 has joined

  5. amee2k has joined

  6. antranigv has left

  7. hearty has left

  8. hearty has joined

  9. adx has left

  10. antranigv has joined

  11. EOF has left

  12. EOF has joined

  13. Schimon_ has left

  14. amee2k has left

  15. atomicwatch has left

  16. xnamed has left

  17. amee2k has joined

  18. kikuchiyo has left

  19. atomicwatch has joined

  20. xnamed has joined

  21. xnamed has left

  22. Kev has left

  23. Kev has joined

  24. xnamed has joined

  25. antranigv has left

  26. amee2k has left

  27. amee2k has joined

  28. raghavgururajan has joined

  29. Yagizа has joined

  30. pasdesushi has left

  31. rabbitseatcarrots has left

  32. antranigv has joined

  33. amee2k has left

  34. amee2k has joined

  35. marc0s has left

  36. marc0s has joined

  37. nik has joined

  38. thomaslewis has left

  39. EOF has left

  40. EOF has joined

  41. Beherit has joined

  42. pasdesushi has joined

  43. mirux has joined

  44. nik has left

  45. nik has joined

  46. atomicwatch has left

  47. nicoco has joined

  48. MSavoritias (fae,ve) has left

  49. MSavoritias (fae,ve) has joined

  50. raghavgururajan has left

  51. wurstsalat has joined

  52. debacle has joined

  53. antranigv has left

  54. MSavoritias (fae,ve) has left

  55. MSavoritias (fae,ve) has joined

  56. gregory has left

  57. Aram has left

  58. amee2k has left

  59. amee2k has joined

  60. nephele has joined

  61. zawarudo has joined

  62. antranigv has joined

  63. nephele has left

  64. nik has left

  65. nik has joined

  66. atomicwatch has joined

  67. nephele has joined

  68. kurtain has left

  69. pulkomandy has left

  70. pulkomandy has joined

  71. Mario Sabatino has joined

  72. nephele has left

  73. Mario Sabatino has left

  74. Mario Sabatino has joined

  75. kurtain has joined

  76. Schimon_ has joined

  77. antranigv has left

  78. antranigv has joined

  79. antranigv has left

  80. pulkomandy has left

  81. rubi has left

  82. atomicwatch has left

  83. rubi has joined

  84. atomicwatch has joined

  85. amee2k has left

  86. amee2k has joined

  87. antranigv has joined

  88. me9 has joined

  89. rubi has left

  90. rubi has joined

  91. nephele has joined

  92. nephele has left

  93. rubi has left

  94. rubi has joined

  95. amee2k has left

  96. amee2k has joined

  97. atomicwatch has left

  98. nephele has joined

  99. nephele has left

  100. hearty has left

  101. adx has joined

  102. amee2k has left

  103. amee2k has joined

  104. MSavoritias (fae,ve) has left

  105. hearty has joined

  106. MSavoritias (fae,ve) has joined

  107. atomicwatch has joined

  108. atomicwatch has left

  109. atomicwatch has joined

  110. me9 has left

  111. Kev has left

  112. Kev has joined

  113. Mx2 has left

  114. rubi has left

  115. rubi has joined

  116. amee2k has left

  117. kurtain has left

  118. nik has left

  119. nik has joined

  120. Kev has left

  121. Kev has joined

  122. amee2k has joined

  123. rubi has left

  124. rubi has joined

  125. pasdesushi has left

  126. goffi has left

  127. goffi has joined

  128. pasdesushi has joined

  129. EOF has left

  130. EOF has joined

  131. zawarudo has left

  132. gregory has joined

  133. rubi has left

  134. rubi has joined

  135. zawarudo has joined

  136. Kev has left

  137. amee2k has left

  138. amee2k has joined

  139. inky has left

  140. Kev has joined

  141. Kev has left

  142. Kev has joined

  143. kurtain has joined

  144. amee2k has left

  145. rubi has left

  146. rubi has joined

  147. Kev has left

  148. rubi has left

  149. rubi has joined

  150. kurtain has left

  151. Kev has joined

  152. debacle has left

  153. rubi has left

  154. rubi has joined

  155. stuart.j.mackintosh has left

  156. amee2k has joined

  157. inky has joined

  158. kurtain has joined

  159. amee2k has left

  160. amee2k has joined

  161. larma has joined

  162. rubi has left

  163. rubi has joined

  164. Sam has left

  165. debacle has joined

  166. nik has left

  167. nik has joined

  168. nicoco

    Hey all! I have been trying to implement XEP0292 (vcard4) for my bridge component. If I understood it right, clients should use `<iq get <vcard` to retrieve vcards and PEP is only used to broadcast the "vcard has been updated" event, but not the actual vcard content. Gajim, instead of using a `<iq get <vcard xmlns='urn:ietf:params:xml:ns:vcard-4.0'`, sends a `<iq get <pubsub <items max_items="1" node="urn:xmpp:vcard4"...`, and expects the vcard to be served as a response to this, wrapped in `<pubsub<items<item id="current"` (I tested, it's displayed as expected in the UI). The spec is not clear (to me at least) on what the answer to this `<iq get<pubsub<items` should be, but I *think* it should only be an empty item with `id=current` and then the client should use the non-PEP `<iq get<vcard` syntax. I also experimented with movim, and it seems to also only use PEP mechanism, no direct iq get>vcard. For some reason, even if movim's iq get>pubsub>items is replied with the same thing as gajim, I did not manage to display the vcard content in its UI. This raises several philosophical questions: - are clients not following the spec or am I not able to understand it right? - should my component strictly follow the spec or have workarounds for clients' behaviour? - why such a complex mechanism involving both "basic" iqs and "pubsub" iqs for something as basic as a "profile information" for a JID? - should I broadcast the full vcard or just an empty item id="current" when (a) my component gets online, (b) when XMPP clients get online? - what is the meaning of life? Thanks for following my ted talk.

  169. nicoco

    Hey all! I have been trying to implement XEP0292 (vcard4) for my bridge component. If I understood it right, clients should use `<iq get <vcard` to retrieve vcards and PEP is only used to broadcast the "vcard has been updated" event, but not the actual vcard content. Gajim, instead of using a `<iq get <vcard xmlns='urn:ietf:params:xml:ns:vcard-4.0'`, sends a `<iq get <pubsub <items max_items="1" node="urn:xmpp:vcard4"...`, and expects the vcard to be served as a response to this, wrapped in `<pubsub<items<item id="current"` (I tested, it's displayed as expected in the UI). The spec is not clear (to me at least) on what the answer to this `<iq get<pubsub<items` should be, but I *think* it should only be an empty item with `id=current` and then the client should use the non-PEP `<iq get<vcard` syntax. I also experimented with movim, and it seems to also only use PEP mechanism, no direct iq get>vcard. For some reason, even if movim's iq get>pubsub>items is replied with the same thing as gajim, I did not manage to display the vcard content in its UI. This raises several philosophical questions: - are clients not following the spec or am I not able to understand it right? - should my component strictly follow the spec or have workarounds for various clients' behaviours? - why such a complex mechanism involving both "basic" iqs and "pubsub" iqs for something as basic as a "profile information" for a JID? - should I broadcast the full vcard or just an empty item id="current" when (a) my component gets online, (b) when XMPP clients get online? - what is the meaning of life? Thanks for following my ted talk.

  170. stuart.j.mackintosh has joined

  171. amee2k has left

  172. amee2k has joined

  173. jubalh has left

  174. rubi has left

  175. rubi has joined

  176. Mx2 has joined

  177. Mx2 has left

  178. zawarudo has left

  179. nicoco

    edhelas: before flooding your issue tracker even more than I already did, could you have a look at this iq get/result pair and tell me if you spot something that would explain why I cannot see the given/surname/telephone fields in movim's UI? Maybe you just don't display these fields? https://paste.sr.ht/~nicoco/aa9a2b809038c846ad7d5a00bedc2eebce418e6e

  180. edhelas

    nicoco https://github.com/movim/movim/blob/master/app/Contact.php#L205

  181. edhelas

    I don't parse those fields

  182. edhelas

    But I can

  183. Matrix Traveler (bot) has left

  184. homebeach has left

  185. homebeach has joined

  186. Matrix Traveler (bot) has joined

  187. nicoco

    oh, but the FN field seems parsed

  188. nicoco

    so there is probably something wrong in iq result I pasted, because I don't see its content anywhere in movim's UI...

  189. edhelas

    It should

  190. edhelas

    https://github.com/movim/movim/blob/master/app/Contact.php#L274

  191. edhelas

    https://github.com/movim/movim/blob/master/app/widgets/Vcard4/_vcard4_form.tpl#L40

  192. rubi has left

  193. rubi has joined

  194. nicoco

    it looks like it fell back to userpart, so the vcard/fn was not parsed for some reason. (btw, shouldn't you fall back to the pep nickname instead? it's inconsistent with the chat list view where the pep nickname is used)

  195. zawarudo has joined

  196. nicoco

    FWIW, here's what the "contact profile" looks like in movim:

  197. nicoco

    https://upload.slidge.im:5281/file_share/FadP2ngn4fkYt9iEuIQouylx/6b3918a9-fecc-4a9c-9f6c-5623c659c3cb.png

  198. nicoco

    and in gajim:

  199. nicoco

    https://upload.slidge.im:5281/file_share/RDYKuXmbv7ORaFiGH0vuOqEV/e15cb197-ee26-42c4-9d79-4cabdc84343b.png

  200. jubalh has joined

  201. nicoco

    I guess wondering if you can't read a spec, if your implementation is buggy, if the server does something weird, if client X is not following the spec or if you uncovered a bug in client X is just the normal xmpp dev process ^^

  202. stuart.j.mackintosh has left

  203. stuart.j.mackintosh has joined

  204. nicoco

    une histoire de bare/full JID ptet?

  205. rubi has left

  206. rubi has joined

  207. nicoco

    .

  208. rubi has left

  209. rubi has joined

  210. amee2k has left

  211. inky has left

  212. zawarudo has left

  213. zawarudo has joined

  214. debacle has left

  215. debacle has joined

  216. amee2k has joined

  217. pulkomandy has joined

  218. zawarudo has left

  219. nicoco

    ok, gotcha movim, you expected the payload to be in the pubsub#event. all in all, as far as I understood, neither gajim nor movim really respect this then: > There is no payload, because this is a pure notification (the receiver needs to retrieve the vCard using an IQ-get as described earlier) * The fun part is that they don't respect it, but in different ways: movim wants the payload in the pubsub#event, and gajim wants to retrieve the payload via iq get/pubsub/item instead of iq get/vcard * https://xmpp.org/extensions/xep-0292.html#sect-idm45669698174224

  220. amee2k has left

  221. amee2k has joined

  222. mh has left

  223. mh has joined

  224. zawarudo has joined

  225. Lettuce has joined

  226. stuart.j.mackintosh has left

  227. edhelas

    When you're the first one to implement the standard, YOU ARE THE STANDARD

  228. edhelas

    :3

  229. nicoco

    hehe, well. the XEP is "Deferred", I wonder if it's worth bug reporting given that?

  230. stuart.j.mackintosh has joined

  231. nicoco

    edhelas: I'll definitely add a feature request to your tracker to parse the "telephone" field because I went through all this vcard bulls**t just so that my signal and telegram puppets have their phone number accessible somewhere…

  232. zawarudo has left

  233. edhelas

    sure 👌

  234. zawarudo has joined

  235. pep.

    nicoco, please do report. Deferred means nothing more than "it hasn't been updated in a year", which is actually very commun.

  236. pep.

    #RemoveDeferred

  237. amee2k has left

  238. pep.

    common*

  239. nicoco

    alright pep. will do, probably this evening

  240. zawarudo has left

  241. amee2k has joined

  242. kurtain has left

  243. zawarudo has joined

  244. Matrix Traveler (bot) has left

  245. homebeach has left

  246. homebeach has joined

  247. Matrix Traveler (bot) has joined

  248. kurtain has joined

  249. Lettuce has left

  250. adx has left

  251. adx has joined

  252. Kev has left

  253. Kev has joined

  254. kurtain has left

  255. Lettuce has joined

  256. kurtain has joined

  257. techmetx11 has left

  258. techmetx11 has joined

  259. Lettuce has left

  260. Sam has joined

  261. Sam has left

  262. Kev has left

  263. Kev has joined

  264. Sam has joined

  265. nik has left

  266. Sam has left

  267. stuart.j.mackintosh has left

  268. inky has joined

  269. norayr has left

  270. norayr has joined

  271. Sam has joined

  272. pulkomandy has left

  273. pulkomandy has joined

  274. PapaTutuWawa has joined

  275. PapaTutuWawa has left

  276. PapaTutuWawa has joined

  277. Kev has left

  278. Kev has joined

  279. amee2k has left

  280. amee2k has joined

  281. Alex has left

  282. Alex has joined

  283. inky has left

  284. hearty has left

  285. amee2k has left

  286. amee2k has joined

  287. hearty has joined

  288. zawarudo has left

  289. zawarudo has joined

  290. MSavoritias (fae,ve) has left

  291. MSavoritias (fae,ve) has joined

  292. amee2k has left

  293. amee2k has joined

  294. zawarudo has left

  295. MattJ

    nicoco: that vcard4 has a separate IQ flow is weird and it has been brought up before. It's not much extra work to support on the server side, but it's unnecessary

  296. jubalh has left

  297. mh has left

  298. mh has joined

  299. PapaTutuWawa has left

  300. amee2k has left

  301. amee2k has joined

  302. kurtain has left

  303. stuart.j.mackintosh has joined

  304. nicoco

    MattJ: the spec is explicit that pubsub#event should not contain the vcard content but just be used as an "update notification" and that the separate IQ flow is *the* way to retrieve the data. I am not even sure that pubsub#retrieve is supposed to return anything, but I may be mistaken.

  305. kurtain has joined

  306. nik has joined

  307. PapaTutuWawa has joined

  308. nicoco

    I agree that it's weird ^^

  309. edhelas

    I don't get this flow

  310. edhelas

    Movim is doing the basic Pep thing

  311. PapaTutuWawa has left

  312. PapaTutuWawa has joined

  313. amee2k has left

  314. nicoco

    it looks like another way of implementing what avatar:metadata and avatar:data do, but here: - there is no distinction between metadata and data, so servers emit an event that looks like data, but is actually empty, it's just a notification - to retrieve the actual data, clients should not use pep, but the separate IQ flow - vcard payloads should not be that huge, should they? oh right, they can include pictures, so they can be… but that's not the recommended way to set avatars in XMPP

  315. Alex has left

  316. Alex has joined

  317. amee2k has joined

  318. mh has left

  319. mh has joined

  320. Sam has left

  321. amee2k has left

  322. Sam has joined

  323. nik has left

  324. nik has joined

  325. zawarudo has joined

  326. atomicwatch has left

  327. zawarudo has left

  328. Mx2 has joined

  329. Mx2 has left

  330. Mx2 has joined

  331. nik has left

  332. MSavoritias (fae,ve) has left

  333. techmetx11 has left

  334. zawarudo has joined

  335. Mx2 has left

  336. stuart.j.mackintosh has left

  337. stuart.j.mackintosh has joined

  338. gregory has left

  339. gregory has joined

  340. nephele has joined

  341. nephele has left

  342. jubalh has joined

  343. pasdesushi has left

  344. Mx2 has joined

  345. pasdesushi has joined

  346. kurtain has left

  347. norayr has left

  348. atomicwatch has joined

  349. MSavoritias (fae,ve) has joined

  350. larma has left

  351. larma has joined

  352. atomicwatch has left

  353. amee2k has joined

  354. zawarudo has left

  355. larma has left

  356. zawarudo has joined

  357. larma has joined

  358. stpeter has joined

  359. Sam has left

  360. larma has left

  361. larma has joined

  362. Sam has joined

  363. norayr has joined

  364. larma has left

  365. larma has joined

  366. norayr has left

  367. inky has joined

  368. kikuchiyo has joined

  369. Sam has left

  370. PapaTutuWawa has left

  371. stpeter has left

  372. kurtain has joined

  373. stpeter has joined

  374. amee2k has left

  375. norayr has joined

  376. Sam has joined

  377. adx has left

  378. zawarudo has left

  379. Sam has left

  380. zawarudo has joined

  381. amee2k has joined

  382. larma has left

  383. larma has joined

  384. inky has left

  385. adx has joined

  386. Sam has joined

  387. hearty has left

  388. hearty has joined

  389. amee2k has left

  390. nicoco has left

  391. pasdesushi has left

  392. antranigv has left

  393. antranigv has joined

  394. antranigv has left

  395. larma has left

  396. larma has joined

  397. adx has left

  398. nik has joined

  399. adx has joined

  400. amee2k has joined

  401. kurtain has left

  402. larma has left

  403. larma has joined

  404. norayr has left

  405. norayr has joined

  406. amee2k has left

  407. amee2k has joined

  408. selurvedu has joined

  409. amee2k has left

  410. amee2k has joined

  411. me9 has joined

  412. xnamed has left

  413. larma has left

  414. debacle has left

  415. larma has joined

  416. larma has left

  417. larma has joined

  418. inky has joined

  419. al has joined

  420. xnamed has joined

  421. antranigv has joined

  422. PapaTutuWawa has joined

  423. amee2k has left

  424. amee2k has joined

  425. larma has left

  426. larma has joined

  427. xnamed has left

  428. xnamed has joined

  429. kurtain has joined

  430. techmetx11 has joined

  431. atomicwatch has joined

  432. amee2k has left

  433. amee2k has joined

  434. nicoco_ has joined

  435. atomicwatch has left

  436. zawarudo has left

  437. larma has left

  438. atomicwatch has joined

  439. amee2k has left

  440. amee2k has joined

  441. norayr has left

  442. norayr has joined

  443. nicoco_ has left

  444. nicoco_ has joined

  445. zawarudo has joined

  446. norayr has left

  447. norayr has joined

  448. norayr has left

  449. norayr has joined

  450. amee2k has left

  451. amee2k has joined

  452. debacle has joined

  453. kurtain has left

  454. nicoco_ has left

  455. nicoco_ has joined

  456. amee2k has left

  457. amee2k has joined

  458. lovetox

    nicoco, what for are you doing this? i know nobody who subscribes to vcard events

  459. zawarudo has left

  460. al has left

  461. rabbitseatcarrots has joined

  462. jubalh has left

  463. pasdesushi has joined

  464. lovetox2 has joined

  465. xecks has left

  466. antranigv has left

  467. lovetox2 has left

  468. larma has joined

  469. nicoco_

    lovetox: my goal is just to provide some sort of ‘user profile information’ for the bridged contacts, that’s all :)

  470. nicoco_

    It turned out to be more challenging than I expected, but it seems to work now (at least for gajim and movim). I attempted some sort of test-driven dev, but it turned out my tests did not cover what gajim and movim actually needed to retrieve/display the vcard, which was disappointing.

  471. nik has left

  472. nik has joined

  473. nicoco_

    lovetox: for instance, gajim uses iq get/pubsub/items but the spec explicitly describes a non pubsub, iq get/vcard that is meant to be *the way*. The pubsub part is supposed to be here *just* to notify vcard updates. I actually don’t really want that, but gajim forced me :P

  474. nicoco_ has left

  475. nicoco_ has joined

  476. xecks has joined

  477. lovetox

    hm yes, was probably not really reading the XEP

  478. lovetox

    you probably want pubsub handling stuff on your bridge anyway

  479. lovetox

    like vcard will not be the last thing

  480. lovetox

    so much is on pubsub

  481. xnamed has left

  482. antranigv has joined

  483. zawarudo has joined

  484. Kev has left

  485. Kev has joined

  486. amee2k has left

  487. amee2k has joined

  488. nicoco_

    Agreed, I want pubsub for other stuff anyway (but I’d have been happy leaving it out for vcards). Can’t wait to implement the gaming XEP with steam and discord bridges and then file feature requests because I don’t think any client implement that ^^

  489. rabbitseatcarrots has left

  490. lovetox2 has joined

  491. lovetox2 has left

  492. mirux has left

  493. mirux has joined

  494. xnamed has joined

  495. nik has left

  496. stpeter has left

  497. antranigv has left

  498. zawarudo has left

  499. nephele has joined

  500. mh has left

  501. zawarudo has joined

  502. mh has joined

  503. nephele has left

  504. nephele has joined

  505. zawarudo has left

  506. MSavoritias (fae,ve) has left

  507. MSavoritias (fae,ve) has joined

  508. antranigv has joined

  509. antranigv has left

  510. rubi has left

  511. rubi has joined

  512. antranigv has joined

  513. larma has left

  514. larma has joined

  515. nephele has left

  516. nephele has joined

  517. jubalh has joined

  518. stpeter has joined

  519. zawarudo has joined

  520. larma has left

  521. larma has joined

  522. larma has left

  523. larma has joined

  524. nephele has left

  525. antranigv has left

  526. stpeter has left

  527. larma has left

  528. larma has joined

  529. moparisthebest has left

  530. larma has left

  531. amee2k has left

  532. amee2k has joined

  533. mirux has left

  534. mirux has joined

  535. Yagizа has left

  536. moparisthebest has joined

  537. amee2k has left

  538. amee2k has joined

  539. zawarudo has left

  540. Sam has left

  541. Sam has joined

  542. nicoco_ has left

  543. Sam has left

  544. amee2k has left

  545. amee2k has joined

  546. pasdesushi has left

  547. pasdesushi has joined

  548. MSavoritias (fae,ve) has left

  549. Sam has joined

  550. marc0s has left

  551. mirux has left

  552. marc0s has joined

  553. mirux has joined

  554. zawarudo has joined

  555. Sam has left

  556. Sam has joined

  557. Mario Sabatino has left

  558. amee2k has left

  559. amee2k has joined

  560. Sam has left

  561. me9 has left

  562. amee2k has left

  563. amee2k has joined

  564. Sam has joined

  565. amee2k has left

  566. amee2k has joined

  567. rom1dep has left

  568. rom1dep has joined

  569. marc0s has left

  570. marc0s has joined

  571. amee2k has left

  572. amee2k has joined

  573. mirux has left

  574. kurtain has joined

  575. amee2k has left

  576. amee2k has joined

  577. thomaslewis has joined

  578. PapaTutuWawa has left

  579. amee2k has left

  580. amee2k has joined

  581. thomaslewis has left

  582. thomaslewis has joined

  583. Millesimus has left

  584. Alex has left

  585. wurstsalat has left

  586. kurtain has left

  587. Millesimus has joined

  588. sonny has left

  589. sonny has joined

  590. pasdesushi has left

  591. amee2k has left

  592. amee2k has joined

  593. mathieui has left

  594. mathieui has joined

  595. thomaslewis has left

  596. Beherit has left

  597. Beherit has joined

  598. kurtain has joined

  599. goffi has left

  600. xnamed has left

  601. xnamed has joined

  602. sonny has left

  603. sonny has joined

  604. sonny has left

  605. sonny has joined

  606. marc0s has left

  607. kurtain has left

  608. zawarudo has left

  609. marc0s has joined

  610. thomaslewis has joined

  611. thomaslewis has left

  612. Millesimus has left

  613. SouL has left

  614. adx has left

  615. amee2k has left

  616. Millesimus has joined