jdev - 2020-03-27

  1. Wojtek has left
  2. debacle has left
  3. larma has left
  4. larma has joined
  5. Neustradamus has joined
  6. Neustradamus has left
  7. allie has left
  8. DebXWoody has joined
  9. alexis has left
  10. alexis has joined
  11. lovetox has joined
  12. asterix has left
  13. asterix has joined
  14. asterix has left
  15. asterix has joined
  16. lovetox has left
  17. asterix has left
  18. asterix has joined
  19. asterix has left
  20. asterix has joined
  21. lovetox has joined
  22. paul has joined
  23. asterix has left
  24. asterix has joined
  25. Jeybe has joined
  26. Jeybe has left
  27. Jeybe has joined
  28. Jeybe has left
  29. Jeybe has joined
  30. Jeybe has left
  31. Jeybe has joined
  32. debacle has joined
  33. pulkomandy has left
  34. Jeybe has left
  35. Jeybe has joined
  36. goffi has joined
  37. Jeybe has left
  38. pulkomandy has joined
  39. Jeybe has joined
  40. Jeybe has left
  41. Jeybe has joined
  42. Jeybe has left
  43. Jeybe has joined
  44. kikuchiyo has left
  45. Jeybe has left
  46. Jeybe has joined
  47. Jeybe has left
  48. Jeybe has joined
  49. Jeybe has left
  50. Jeybe has joined
  51. Jeybe has left
  52. Jeybe has joined
  53. Jeybe has left
  54. Jeybe has joined
  55. Jeybe has left
  56. Jeybe has joined
  57. Marc has left
  58. Jeybe has left
  59. Jeybe has joined
  60. kikuchiyo has joined
  61. Marc has joined
  62. Jeybe has left
  63. Jeybe has joined
  64. kikuchiyo has left
  65. asterix has left
  66. asterix has joined
  67. Jeybe has left
  68. Jeybe has joined
  69. Jeybe has left
  70. Jeybe has joined
  71. Jeybe has left
  72. kikuchiyo has joined
  73. asterix has left
  74. asterix has joined
  75. pulkomandy has left
  76. asterix has left
  77. asterix has joined
  78. pulkomandy has joined
  79. lovetox has left
  80. lovetox has joined
  81. asterix has left
  82. asterix has joined
  83. pulkomandy has left
  84. Martin has left
  85. pulkomandy has joined
  86. Martin has joined
  87. Jeybe has joined
  88. Jeybe has left
  89. Jeybe has joined
  90. pulkomandy has left
  91. Jeybe has left
  92. Jeybe has joined
  93. asterix has left
  94. asterix has joined
  95. asterix has left
  96. asterix has joined
  97. Jeybe has left
  98. pulkomandy has joined
  99. asterix has left
  100. asterix has joined
  101. asterix has left
  102. asterix has joined
  103. lovetox has left
  104. asterix has left
  105. asterix has joined
  106. DebXWoody has left
  107. DebXWoody has joined
  108. asterix has left
  109. asterix has joined
  110. lovetox has joined
  111. Jeybe has joined
  112. asterix has left
  113. asterix has joined
  114. asterix has left
  115. asterix has joined
  116. lovetox has left
  117. Jeybe has left
  118. Jeybe has joined
  119. Jeybe has left
  120. Jeybe has joined
  121. Jeybe has left
  122. asterix has left
  123. asterix has joined
  124. Jeybe has joined
  125. asterix has left
  126. asterix has joined
  127. pulkomandy has left
  128. pulkomandy has joined
  129. Jeybe has left
  130. Jeybe has joined
  131. Jeybe has left
  132. Jeybe has joined
  133. asterix has left
  134. asterix has joined
  135. asterix has left
  136. asterix has joined
  137. Holger has left
  138. Holger has joined
  139. Jeybe has left
  140. Jeybe has joined
  141. pulkomandy has left
  142. lovetox has joined
  143. pulkomandy has joined
  144. lovetox has left
  145. lovetox has joined
  146. Jeybe has left
  147. Jeybe has joined
  148. asterix has left
  149. asterix has joined
  150. tsk has joined
  151. Jeybe has left
  152. Jeybe has joined
  153. Jeybe has left
  154. Jeybe has joined
  155. pulkomandy has left
  156. pulkomandy has joined
  157. pulkomandy has left
  158. pulkomandy has joined
  159. Jeybe has left
  160. Jeybe has joined
  161. rion has left
  162. pulkomandy has left
  163. pulkomandy has joined
  164. rion has joined
  165. pulkomandy has left
  166. pulkomandy has joined
  167. Jeybe To check supported xeps on a specific server one needs to be logged in, correct?
  168. Jeybe has left
  169. Jeybe has joined
  170. flow Jeybe, depends, simply querying the disco#info of the server's address may already reveal most XEPs
  171. flow but obviously not the ones that are only exposed to users of this service
  172. Jeybe To mention, I'm completely new to XMPP development (and so the conrecte XMPP and XEP specs) and mostly new to development in general. The XEPs I'd like to check are the ones from the Compliance Suite
  173. flow Jeybe, well you could simply get the source code of the compliance checker and look how the checker does it
  174. Ge0rG Jeybe: some relevant features like Push and MAM are probably only visible on your own account JID, not on the server JID
  175. Ge0rG so yes, you need to have an account
  176. Jeybe Ok thx
  177. Jeybe Makes sense, as for the tester on compliance.conversations.im also needs account credentials
  178. Ge0rG the code behind is https://github.com/iNPUTmice/caas
  179. flow thats why I am in favor of stuffing those features also in the disco#info response of the service's address: you don't need to have an account to check how widespread an xep/feature is implemented
  180. tsk has left
  181. allie has joined
  182. Wojtek has joined
  183. tsk has joined
  184. pulkomandy has left
  185. lovetox has left
  186. paul has left
  187. paul has joined
  188. pulkomandy has joined
  189. allie has left
  190. pulkomandy has left
  191. pulkomandy has joined
  192. asterix has left
  193. asterix has joined
  194. tsk has left
  195. lovetox has joined
  196. Wojtek has left
  197. serge90 has left
  198. serge90 has joined
  199. Martin has left
  200. asterix has left
  201. asterix has joined
  202. asterix has left
  203. Martin has joined
  204. asterix has joined
  205. sonny has left
  206. pulkomandy has left
  207. pulkomandy has joined
  208. asterix has left
  209. asterix has joined
  210. alexis has left
  211. asterix has left
  212. asterix has joined
  213. Jeybe has left
  214. Jeybe has joined
  215. Jeybe has left
  216. Jeybe has joined
  217. Jeybe has left
  218. Jeybe has joined
  219. pulkomandy has left
  220. Jeybe has left
  221. asterix has left
  222. asterix has joined
  223. asterix has left
  224. asterix has joined
  225. sonny has joined
  226. pulkomandy has joined
  227. rion has left
  228. rion has joined
  229. Jeybe has joined
  230. Jeybe has left
  231. asterix has left
  232. asterix has joined
  233. Jeybe has joined
  234. Jeybe has left
  235. DebXWoody has left
  236. asterix has left
  237. asterix has joined
  238. kikuchiyo has left
  239. kikuchiyo has joined
  240. kikuchiyo has left
  241. kikuchiyo has joined
  242. Marc has left
  243. Marc has joined
  244. asterix has left
  245. asterix has joined
  246. Wojtek has joined
  247. pep. left: `"<root xmlns=\"root_ns\" a=\"b\" xml:lang=\"en\">meow<child c=\"d\"/><child xmlns:ns0=\"child_ns\" d=\"e\" xml:lang=\"fr\"/>nya</root>"` right: `"<root xmlns=\"root_ns\" a=\"b\" xml:lang=\"en\">meow<child c=\"d\"/><child xmlns=\"child_ns\" d=\"e\" xml:lang=\"fr\"/>nya</root>"`'
  248. pep. People doing xml properly in their stack, what version would use the less bytes in the general case?
  249. kikuchiyo has left
  250. pep. Here for sure it's the right one, but in XMPP it's quite common to reuse jabber:client right
  251. pep. So I'd rather not shadow it
  252. flow to
  253. flow many
  254. flow quotes
  255. pep. yeah sorry, that's the output of my tests :)
  256. flow pep this is about XML serialization, right?
  257. pep. yes
  258. flow I think I would simply use the prefix if it already exists, otherwise not
  259. pep. left: `#"<root xmlns="root_ns" a="b" xml:lang="en">meow<child c="d"/><child xmlns:ns0="child_ns" d="e" xml:lang="fr"/>nya</root>"#` right: `#"<root xmlns="root_ns" a="b" xml:lang="en">meow<child c="d"/><child xmlns="child_ns" d="e" xml:lang="fr"/>nya</root>"#`'
  260. pep. here, without the escaping
  261. pep. flow, not what I'm asking
  262. pep. or maybe with this you mean I shouldn't shadow
  263. pep. and prefer the left version
  264. flow where is something shadowed in the left/right examples you showed?
  265. pep. In the right example the child xmlns shadows root's
  266. kikuchiyo has joined
  267. pep. the second child
  268. DebXWoody has joined
  269. pep. Which means if this child has descendants, I won't be able to reuse root's ns without redeclaring it
  270. flow right
  271. flow but in xmpp we tend to not re-use jabber:client once an extension element namespace has been declared
  272. flow <forwarded/> being one prominent exception
  273. Link Mauve An exception would be forwarded or MIX.
  274. flow ahh MIX, really?
  275. Link Mauve MIX-PRESENCE IIRC.
  276. flow cause its in pubsub potentially
  277. flow anyway, I am not sure what you are asking, or if there is a generic answer to your question
  278. Link Mauve Presence in PubSub! \o/ <items node='urn:xmpp:mix:nodes:presence'> <item id='123456#coven@mix.shakespeare.example/UUID-x4r/2491'> <presence xmlns='jabber:client'> <mix xmlns='urn:xmpp:presence:0'> <jid>hecate@shakespeare.example/UUID-x4r/2491</jid> <nick>thirdwitch</jid> </mix> <show>dnd</show> <status>Making a Brew</status> </presence> </item> </items>
  279. flow but if your codebase is so far feature complete that you think about saving bytes… ;)
  280. pep. flow, no I'm just curious, I have to make a choice :P
  281. Link Mauve pep., what I’d do would be to let the user declare the prefixes they want on the root <stream:stream>, if XEP-0044 negociated it’s allowed, and only use prefixed elements if their namespace has been defined there.
  282. pep. My implementation does left at the moment
  283. pep. But our tests do right
  284. flow pep: smack would (potentially) prefix presence in this case
  285. flow with the rule I mentioned before
  286. pep. let me test on real data
  287. pep. Link Mauve, minidom doesn't have the knowledge of "stream header" or not
  288. Link Mauve pep., yeah, so it should be handled at another layer, which is why I said “let the user”.
  289. pep. Sure, with the new API I let the user define custom prefixes
  290. asterix has left
  291. asterix has joined
  292. DebXWoody has left
  293. kikuchiyo has left
  294. DebXWoody has joined
  295. Zash has left
  296. pep. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"><message><body/><replace xmlns:ns0="urn:xmpp:message-correct:0"/></message></stream:stream>
  297. pep. hmm, ns0 is indeed useless here.
  298. pep. And message and body just reuse the default ns
  299. pulkomandy has left
  300. pulkomandy has joined
  301. asterix has left
  302. asterix has joined
  303. Zash has joined
  304. asterix has left
  305. asterix has joined
  306. kikuchiyo has joined
  307. pep. wait, this is not valid. it should be ns0:replace
  308. tsk has joined
  309. asterix has left
  310. Sam Whited has left
  311. asterix has joined
  312. Sam Whited has joined
  313. kikuchiyo has left
  314. tsk has left
  315. kikuchiyo has joined
  316. pulkomandy has left
  317. kikuchiyo has left
  318. asterix has left
  319. asterix has joined
  320. Jeybe has joined
  321. Jeybe has left
  322. pulkomandy has joined
  323. Jeybe has joined
  324. Jeybe has left
  325. jonas’ has left
  326. Jeybe has joined
  327. jonas’ has joined
  328. Jeybe has left
  329. Jeybe has joined
  330. Jeybe has left
  331. Jeybe has joined
  332. asterix has left
  333. asterix has joined
  334. Jeybe has left
  335. Jeybe has joined
  336. asterix has left
  337. asterix has joined
  338. Zash has left
  339. Zash has joined
  340. alexis has joined
  341. Jeybe has left
  342. Jeybe has joined
  343. kikuchiyo has joined
  344. Jeybe has left
  345. Jeybe has joined
  346. kikuchiyo has left
  347. Jeybe has left
  348. Jeybe has joined
  349. Jeybe has left
  350. Jeybe has joined
  351. kikuchiyo has joined
  352. Jeybe has left
  353. Jeybe has joined
  354. Jeybe has left
  355. Jeybe has joined
  356. Jeybe has left
  357. Jeybe has joined
  358. Jeybe has left
  359. Jeybe has joined
  360. strar has left
  361. asterix has left
  362. asterix has joined
  363. strar has joined
  364. Jeybe has left
  365. Jeybe has joined
  366. lovetox has left
  367. pulkomandy has left
  368. pulkomandy has joined
  369. Jeybe has left
  370. asterix has left
  371. asterix has joined
  372. Jeybe has joined
  373. asterix has left
  374. asterix has joined
  375. Jeybe has left
  376. Jeybe has joined
  377. DebXWoody has left
  378. Jeybe has left
  379. Jeybe has joined
  380. strar has left
  381. strar has joined
  382. Jeybe has left
  383. Jeybe has joined
  384. asterix has left
  385. asterix has joined
  386. asterix has left
  387. asterix has joined
  388. Jeybe has left
  389. pulkomandy has left
  390. pulkomandy has joined
  391. kikuchiyo has left
  392. asterix has left
  393. asterix has joined
  394. asterix has left
  395. asterix has joined
  396. asterix has left
  397. goffi has left
  398. larma has left
  399. wurstsalat has left
  400. allie has joined
  401. Wojtek has left
  402. Marc has left
  403. rion has left
  404. rion has joined
  405. allie has left