jdev - 2020-04-09


  1. ali has left
  2. ali has joined
  3. serge90 has left
  4. serge90 has joined
  5. strar has joined
  6. serge90 has left
  7. serge90 has joined
  8. ali has left
  9. ali has joined
  10. ali has left
  11. ali has joined
  12. serge90 has left
  13. serge90 has joined
  14. serge90 has left
  15. serge90 has joined
  16. ali has left
  17. ali has joined
  18. paul has left
  19. ali has left
  20. ali has joined
  21. Wojtek has left
  22. ali has left
  23. ali has joined
  24. serge90 has left
  25. serge90 has joined
  26. ali has left
  27. serge90 has left
  28. serge90 has joined
  29. ali has joined
  30. aj has joined
  31. serge90 has left
  32. serge90 has joined
  33. ali has left
  34. ali has joined
  35. neustradamus has left
  36. aj has left
  37. ali has left
  38. serge90 has left
  39. serge90 has joined
  40. ali has joined
  41. serge90 has left
  42. serge90 has joined
  43. aj has joined
  44. ali has left
  45. ali has joined
  46. ali has left
  47. ali has joined
  48. ali has left
  49. serge90 has left
  50. serge90 has joined
  51. serge90 has left
  52. serge90 has joined
  53. serge90 has left
  54. serge90 has joined
  55. serge90 has left
  56. serge90 has joined
  57. serge90 has left
  58. serge90 has joined
  59. serge90 has left
  60. serge90 has joined
  61. ali has joined
  62. serge90 has left
  63. serge90 has joined
  64. serge90 has left
  65. ali has left
  66. serge90 has joined
  67. ali has joined
  68. serge90 has left
  69. serge90 has joined
  70. ali has left
  71. serge90 has left
  72. serge90 has joined
  73. ali has joined
  74. ali has left
  75. ali has joined
  76. ali has left
  77. ali has joined
  78. serge90 has left
  79. ali has left
  80. ali has joined
  81. serge90 has joined
  82. ali has left
  83. ali has joined
  84. ali has left
  85. serge90 has left
  86. serge90 has joined
  87. serge90 has left
  88. serge90 has joined
  89. Neustradamus has joined
  90. Neustradamus has left
  91. serge90 has left
  92. serge90 has joined
  93. neustradamus has joined
  94. serge90 has left
  95. DebXWoody has joined
  96. aj has left
  97. lovetox has left
  98. lovetox has joined
  99. tsk has left
  100. DebXWoody has left
  101. tsk has joined
  102. DebXWoody has joined
  103. wurstsalat has left
  104. adrien has left
  105. adrien has joined
  106. paul has joined
  107. strar has left
  108. strar has joined
  109. wurstsalat has joined
  110. adrien has left
  111. adrien has joined
  112. kikuchiyo has left
  113. asterix has joined
  114. kikuchiyo has joined
  115. goffi has joined
  116. pulkomandy has left
  117. pulkomandy has joined
  118. debacle has joined
  119. aj has joined
  120. asterix has left
  121. asterix has joined
  122. Marc has joined
  123. jae has joined
  124. asterix has left
  125. asterix has joined
  126. aj has left
  127. pulkomandy has left
  128. pulkomandy has joined
  129. Jae has joined
  130. pulkomandy has left
  131. kikuchiyo has left
  132. pulkomandy has joined
  133. kikuchiyo has joined
  134. kikuchiyo has left
  135. Jae has left
  136. ali has joined
  137. ali has left
  138. ali has joined
  139. neustradamus has left
  140. neustradamus has joined
  141. Neustradamus has joined
  142. Neustradamus has left
  143. kikuchiyo has joined
  144. kikuchiyo has left
  145. Neustradamus has joined
  146. Neustradamus has left
  147. ali has left
  148. ali has joined
  149. neustradamus has left
  150. neustradamus has joined
  151. ali has left
  152. kikuchiyo has joined
  153. ali has joined
  154. pulkomandy has left
  155. pulkomandy has joined
  156. Jae has joined
  157. asterix has left
  158. ali has left
  159. asterix has joined
  160. asterix has left
  161. asterix has joined
  162. pulkomandy has left
  163. asterix has left
  164. asterix has joined
  165. pulkomandy has joined
  166. Jae has left
  167. sonny has left
  168. pulkomandy has left
  169. pulkomandy has joined
  170. ali has joined
  171. asterix has left
  172. asterix has joined
  173. asterix has left
  174. asterix has joined
  175. ali has left
  176. ali has joined
  177. goffi has left
  178. goffi has joined
  179. goffi has left
  180. goffi has joined
  181. goffi has left
  182. goffi has joined
  183. goffi has left
  184. goffi has joined
  185. goffi has left
  186. goffi has joined
  187. goffi has left
  188. goffi has joined
  189. goffi has left
  190. goffi has joined
  191. goffi has left
  192. ali has left
  193. ali has joined
  194. asterix has left
  195. asterix has joined
  196. asterix has left
  197. asterix has joined
  198. pulkomandy has left
  199. pulkomandy has joined
  200. ali has left
  201. ali has joined
  202. asterix has left
  203. asterix has joined
  204. asterix has left
  205. asterix has joined
  206. Jae has joined
  207. ali has left
  208. ali has joined
  209. ali has left
  210. ali has joined
  211. ali has left
  212. ali has joined
  213. ali has left
  214. ali has joined
  215. pulkomandy has left
  216. asterix has left
  217. asterix has joined
  218. ali has left
  219. ali has joined
  220. ali has left
  221. Jae has left
  222. pulkomandy has joined
  223. adrien has left
  224. ali has joined
  225. asterix has left
  226. asterix has joined
  227. adrien has joined
  228. Jae has joined
  229. asterix has left
  230. asterix has joined
  231. Jae has left
  232. Guus I've reworked Openfire pubsub code. Can anyone suggest some ways to do some quick functional tests?
  233. Guus I've ran the Smack Integration Tests, which seem to be fine - but those don't go into much detail. I'd like to run some additional tests, preferably not ones created by me.
  234. ali has left
  235. ali has joined
  236. Neustradamus has joined
  237. Neustradamus has left
  238. ali has left
  239. jonas’ aioxmpp has some PEP related tests for sure, and very bare PubSub tests
  240. pulkomandy has left
  241. pulkomandy has joined
  242. Guus jonas’ cool - how do I run them?
  243. jonas’ Guus, git clone https://github.com/horazont/aioxmpp, you may be able to get some inspiration from https://github.com/horazont/aioxmpp/blob/devel/utils/travis-e2etest-ejabberd.py
  244. jonas’ if you adapt the scripts and configs in that repository to work with openfire, that’d be amazing
  245. Guus My understanding of the python language is that 'hssssssss' means that you should step away.
  246. jonas’ that py file I linked you is more of a glorified shell script really. I can’t guide you at this moment, I’m supposed to be in a meeting in four minutes
  247. Guus kk, tx
  248. Martin has left
  249. Martin has joined
  250. asterix has left
  251. asterix has joined
  252. Jae has joined
  253. Guus There must be a better way to figure out what modules are needed other than to try and run it, see an error, and install that?
  254. Guus ah: https://docs.zombofant.net/aioxmpp/devel/user-guide/installation.html
  255. Guus I was looking under 'developer guide' 🙂
  256. Guus hmm, still missing modules
  257. Guus ohh, pip3 install -e .
  258. Guus look ma, I can do python
  259. Zash Look ma, no jvm!
  260. sonny has joined
  261. asterix has left
  262. Guus heheeh
  263. asterix has joined
  264. Guus hmm, it doesn't like Openfire's self-signed certs, even when setting the no_verify option
  265. Zash openssl no_verify?
  266. Guus ah, it helps if you don't have a typo in "no_verify" (jonas: there's a typo in the documentation as well as in the ejabberd config file)
  267. Zash Guus, ever tried running scansion against Openfire?
  268. Guus no. I'd like to.
  269. Guus Ran 4503 tests in 76.160s FAILED (SKIP=4, errors=19, failures=5)
  270. Guus That's an impressive amount of tests.
  271. Jae has left
  272. Guus Loooots of output - might need some help interpreting
  273. pulkomandy has left
  274. jonas’ Guus, note that most of these are not end-to-end
  275. jonas’ before you go further, what’s the output of python3 --version?
  276. Guus Python 3.6.9
  277. pulkomandy has joined
  278. Guus We're disabling SASL anon by default. Can you share the configuration for a simple username/password auth?
  279. jonas’ Guus, unfortunately, not
  280. jonas’ it needs multiple connections usually
  281. jonas’ (with different accounts)
  282. Guus hmm, that makes it harder to put in our CI
  283. jonas’ I’m not sure if I ever developed the "pre-provisioned account" mode
  284. jonas’ I planned for it, but I think I simply never needed it
  285. Zash Implement (in OF) a mode that simply accepts any username+password?
  286. jonas’ then you still need (in aioxmpp) a mode which uses random username/password
  287. Guus It's all doable, but not today 🙂
  288. jonas’ same here :)
  289. Jae has joined
  290. jonas’ but I’d love to test against OF in the CI -- but I never got around to set it up
  291. Guus jonas’ : https://github.com/igniterealtime/Openfire/blob/master/runIntegrationTests
  292. ali has joined
  293. Guus that's what we use for Smack's integration tests
  294. Guus probably more elaborate than what it needs to be
  295. Guus but it launches an openfire instance, and runs the tests
  296. Guus (Smack's implementation require an account that's allowed to create other accounts)
  297. ali has left
  298. Guus apart from needing to enable SASL anonymous, it worked pretty much out of the box
  299. Guus [global] provisioner=aioxmpp.e2etest.provision.AnonymousProvisioner [aioxmpp.e2etest.provision.AnonymousProvisioner] domain=cluster.goodbytes.im host=cluster-a.goodbytes.im no_verify=true
  300. Guus (note that at some point, that domain goes away - I'm using it for testing only)
  301. Guus Zash, how do I run scansion?
  302. jae has left
  303. Guus heck, how do I _find_ it. Googling for prosody scansion gives me linguistic results. 🙂
  304. larma has left
  305. Zash https://matthewwild.co.uk/projects/scansion/
  306. Guus is there a repo of scripts?
  307. Zash There's a bunch in the Prosody repo: https://hg.prosody.im/trunk/file/tip/spec/scansion
  308. Jae has left
  309. Jae has joined
  310. ali has joined
  311. Zash Those are written expecting that arbitrary username/passwords are accepted
  312. pulkomandy has left
  313. Guus Doesn't seem to like my self-signed cert either
  314. ali has left
  315. Zash Pretty sure we run our CI with TLS disabled
  316. pulkomandy has joined
  317. Zash Prosody config is in the same directory
  318. Guus hmm... doesn't help
  319. Guus does it do DNS SRV lookups?
  320. Guus the domain in the JID does not resolve with an A record.
  321. Zash Probably
  322. Guus https://igniterealtime.org:443/httpfileupload/94c20187-8fa0-4f98-9d0f-0a1869538173/image.png
  323. Guus Unsure what to make of that
  324. Guus jonas’ I'd be greatful if you can help me interpret the gazillion lines of logs generated by your tests.
  325. Zash screenshot of text :|
  326. Zash Guus: I think you need to trick docker into letting it have access to where your xmpp server is running
  327. Guus screenshot of text to preserve format - didn't assume anyone wanted to copy stuff from this 🙂
  328. Guus ah, it does not have access by default?
  329. Zash "connection refused" is the relevant thing I assume
  330. Guus my docker is as good as my python
  331. Guus sure
  332. Guus but ... why 🙂
  333. Zash Try `--network host` maybe?
  334. Martin Wher is specified how a message should look like when sending the link to a http-uploaded file OOB? Or how is it done that clients show the file instead of the link?
  335. Martin Where is specified how a message should look like when sending the link to a http-uploaded file OOB? Or how is it done that clients show the file instead of the link?
  336. Zash Docker is so last years, now it's Kubernetes all the things!
  337. flow Martin, I think this is implementation dependend
  338. Zash Martin, source code of Conversations probably
  339. Martin Yeah, code == specification? ;-(
  340. Zash In theory you just follow XEP-0066
  341. Zash In practice I think you must have the URL both in that and in <body>, and nothing else
  342. pulkomandy has left
  343. pulkomandy has joined
  344. Martin Thanks, will figure out.
  345. Zash I'm kinda sad that you can't include a description, which is supported by OOB.
  346. Zash Did anyone get anywhere with XEP-0385 yet?
  347. asterix has left
  348. asterix has joined
  349. larma has joined
  350. kikuchiyo has left
  351. pulkomandy has left
  352. pulkomandy has joined
  353. rion Psi supports 385
  354. kikuchiyo has joined
  355. rion But currently implementation is incomplete. Works for images and audio messages only. And has some bugs.
  356. pulkomandy has left
  357. kikuchiyo has left
  358. pulkomandy has joined
  359. ali has joined
  360. kikuchiyo has joined
  361. ali has left
  362. lovetox has left
  363. asterix has left
  364. asterix has joined
  365. Martin > In practice I think you must have the URL both in that and in <body>, and nothing else Ok, that worked. Thanks. 😃
  366. Martin > I'm kinda sad that you can't include a description, which is supported by OOB. That would be really nice.
  367. pulkomandy has left
  368. pulkomandy has joined
  369. alexis has left
  370. alexis has joined
  371. jonas’ Guus, send them to me via email or something
  372. lovetox has joined
  373. Wojtek has joined
  374. Neustradamus has joined
  375. Neustradamus has left
  376. neustradamus has left
  377. neustradamus has joined
  378. Jae has left
  379. goffi has joined
  380. ali has joined
  381. Jae has joined
  382. pulkomandy has left
  383. asterix has left
  384. asterix has joined
  385. ali has left
  386. asterix has left
  387. asterix has joined
  388. ali has joined
  389. Jae has left
  390. Jae has joined
  391. ali has left
  392. pulkomandy has joined
  393. adrien has left
  394. Martin Is it safe to assume that the max file size is always in the value of the second field of the second x in the reply to disco#info?
  395. Martin For the http upload service
  396. flow Martin, that sounds wrong
  397. flow Martin, why not use the field's name?
  398. adrien has joined
  399. flow and why *second* <x/>?
  400. Zash wat
  401. Martin Worked here for dismail (ejabberd) and my own server (prosody). Dunno how to access by name without cycling through all.
  402. flow Martin, that is very fragile
  403. flow so it is *definetly* not safe and unsound
  404. pep. Zash, movim also has 385 support
  405. Martin Ok, then I'd better go through all and check the names.
  406. Zash Martin, what language and xml library are you using?
  407. flow and trick question by Zash ;)
  408. flow aah, trick question by Zash ;)
  409. Zash pep., /react nice
  410. Martin DISCLAIMER: I am no dev so probably I am holding it wrong anyway.
  411. Martin I am using go and github.com/mattn/go-xmpp
  412. asterix has left
  413. asterix has joined
  414. flow Martin, no worries. but you definetly should not settle for quick hacks, especially if they fragile
  415. Martin I did create a struct with the structure of the xml and then xml.Unmarshal the IQ reply into it.
  416. neustradamus has left
  417. flow that alone sounds worrysome. due to the extensible nature of XMPP the returned XML may not match your struct
  418. pep. Martin, you can easily become a developer if you go into your Android settings and tap on "Build number" multiple times. Then it will say "You are now a developer!"
  419. flow that alone sounds worrisome. due to the extensible nature of XMPP the returned XML may not match your struct
  420. pep. It's that easy
  421. Martin Looking at the output it seems the max-file-size is in the value of the second field on the first and second x. But if this is not standardized I will check for the "max-file-size" in var while cycling through all.
  422. flow Martin, it *is* standardized
  423. pep. You need to own a device with android, it's the only requirement for being a developer
  424. Martin pep.: Did that several times already on all of my phones. Thanks, no I can not hide behind "I'm no dev" anymore. :(
  425. flow Martin, it is the value of the max-size-field of the extended disco info form with the type urn:xmpp:http:upload:0
  426. paul has left
  427. alexis has left
  428. Martin Ok. So it is important to check the field name. That's what I wanted to know. Thanks. :)
  429. flow Martin, not only the field name, you also have to check that you are looking at the right form
  430. Martin About the issue that the struct might not matching if/when something there get's extended I don't know what to do, as somehow I must get the date of that byte array into something I can process.
  431. adrien has left
  432. adrien has joined
  433. Martin flow: Meh, why everything must be complicated…
  434. flow I don't think it is complicated, nor that there is a much simpler alternative
  435. neustradamus has joined
  436. flow you could extra the value with a pull parser
  437. flow or mayben even an xpath expression
  438. Martin Hmm, that would be two new things to read up. ^^
  439. flow always a good idea to learn new things :)
  440. pulkomandy has left
  441. Martin It's always exponential growth, I want to do one thing than I need look up three things for that. Number 1 requires me to look up 4 other things, number two requires me to look up 2 new things and numer 3 requires me to look up 3 new things. And every level 2 new thing requires me to look up n level 3 new things. It's never ending. I, as an engineer, don't understand how you devs ever finished your studies because everything is a hydra. ^^
  442. flow the secret is: we are always studying and shaving yaks
  443. pulkomandy has joined
  444. paul has joined
  445. Martin You never shave Ge0rg, his avatar is as hairy as always!
  446. ali has joined
  447. ali has left
  448. adrien has left
  449. adrien has joined
  450. adrien has left
  451. adrien has joined
  452. paul has left
  453. paul has joined
  454. Jae has left
  455. Jae has joined
  456. asterix has left
  457. asterix has joined
  458. Martin So, you think this is sufficient for determining the max-file-size or is it still fragile? https://salsa.debian.org/mdosch-guest/go-sendxmpp/-/commit/9702df6c84a189fbf881c29c9ba07d3e77ae84c8
  459. Jae has left
  460. flow Martin, it is far better, but AFAIKT you do not check if you look at the right form
  461. Jae has joined
  462. Martin What to check for? I don't see anything interesting for FORM:
  463. Martin <iq id='1eda7aa0-fd912ef9-30805dc5' type='result' to='go-sendxmpp@mdosch.de/go-sendxmpp' from='files.mdosch.de'> <query xmlns='http://jabber.org/protocol/disco#info'> <identity type='file' name='HTTP File Upload' category='store'/> <feature var='http://jabber.org/protocol/disco#info'/> <feature var='http://jabber.org/protocol/disco#items'/> <feature var='urn:xmpp:http:upload:0'/> <feature var='urn:xmpp:http:upload'/> <x type='result' xmlns='jabber:x:data'> <field type='hidden' var='FORM_TYPE'> <value>urn:xmpp:http:upload:0</value></field> <field type='text-single' var='max-file-size'> <value>104857600</value></field> </x> <x type='result' xmlns='jabber:x:data'> <field type='hidden' var='FORM_TYPE'> <value>urn:xmpp:http:upload</value></field> <field type='text-single' var='max-file-size'> <value>104857600</value></field> </x>
  464. Martin Or do you mean to check which is the http upload component? That's done there: https://salsa.debian.org/mdosch-guest/go-sendxmpp/-/blob/http_upload/httpupload.go#L141
  465. pep. Martin, I think he meant checking FORM_TYPE?
  466. Martin Ok, what is that good for? No need feed me with a golden spoon just direct me at the right xep. But all I see is `<field type='hidden' var='FORM_TYPE'>` which seems quite uninteresting for me.
  467. pep. Martin, the value of that field is what indicates what type of field it is
  468. pep. Which fields you may find in it
  469. Martin Ah, so I need to check for `urn:xmpp:http:upload:0`. Ok thx.
  470. pep. yeah
  471. pulkomandy has left
  472. pulkomandy has joined
  473. Martin Ok, am checking for this as well now.
  474. asterix has left
  475. Jae has left
  476. Martin Thanks all for the useful feedback. 😃 If you feel bored someday you can go through the rest, tell me what I'm doing wrong there. 😂
  477. pulkomandy has left
  478. pulkomandy has joined
  479. rion has left
  480. rion has joined
  481. Jae has joined
  482. DebXWoody has left
  483. Jae has left
  484. Jae has joined
  485. paul has left
  486. paul has joined
  487. lovetox_ has joined
  488. lovetox what priority do i have to set if i dont want to use priority
  489. ali has joined
  490. flow lovetox, define "do not want to use priority"
  491. lovetox i just read i can just leave it out of the presence
  492. lovetox then server assumes 0
  493. flow that's right
  494. lovetox does it do anything if i include priority in a presence to a MUC?
  495. ali has left
  496. flow that's a good question. I think the priority in directed presence stanzas it not used anywhere
  497. flow but I could be wrong. A server dev could may say more about this
  498. flow but then again, *why* do you want to include a priority value in a directed presence?
  499. lovetox_ has left
  500. Jae has left
  501. debacle has left
  502. lovetox i dont want to, and i dont do it
  503. lovetox but i have no rational for it
  504. lovetox_ has joined
  505. alexis has joined
  506. Martin has left
  507. Jae has joined
  508. lovetox_ has left
  509. Jae has left
  510. Jae has joined
  511. Martin has joined
  512. lovetox_ has joined
  513. lovetox_ has left
  514. alexis has left
  515. lovetox_ has joined
  516. lovetox_ has left
  517. lovetox_ has joined
  518. lovetox_ has left
  519. lovetox_ has joined
  520. lovetox_ has left
  521. lovetox_ has joined
  522. lovetox_ has left
  523. lovetox_ has joined
  524. lovetox_ has left
  525. alexis has joined
  526. lovetox has left
  527. lovetox has joined
  528. alexis has left
  529. lovetox has left
  530. ali has joined
  531. ali has left
  532. alexis has joined
  533. alexis has left
  534. goffi has left
  535. alexis has joined
  536. alexis has left
  537. Jae has left
  538. alexis has joined
  539. moparisthebest has left
  540. alexis has left
  541. alexis has joined
  542. paul has left
  543. wurstsalat has left
  544. ali has joined
  545. ali has left
  546. ali has joined