jdev - 2019-11-10


  1. Daniel has left

  2. Daniel has joined

  3. Daniel has left

  4. Daniel has joined

  5. skyfar has left

  6. Daniel has left

  7. Daniel has joined

  8. Daniel has left

  9. Daniel has joined

  10. Daniel has left

  11. Daniel has joined

  12. debacle has left

  13. Daniel has left

  14. Daniel has joined

  15. Daniel has left

  16. Daniel has joined

  17. Daniel has left

  18. Daniel has joined

  19. wurstsalat has left

  20. Daniel has left

  21. Daniel has joined

  22. Daniel has left

  23. Daniel has joined

  24. Daniel has left

  25. Daniel has joined

  26. lovetox has joined

  27. rion has left

  28. rion has joined

  29. Daniel has left

  30. Daniel has joined

  31. goffi has joined

  32. lovetox

    hm i have a server that answers to my stream initiation with a whitespace

  33. lovetox

    do i have to ignore that, or can i expect a stream initiation in return

  34. asterix has joined

  35. asterix has left

  36. asterix has joined

  37. skyfar has joined

  38. sonny has left

  39. sonny has joined

  40. zinid

    lovetox, what do you mean? just a single whitespace without the stream header?

  41. asterix has left

  42. asterix has joined

  43. asterix has left

  44. asterix has joined

  45. lovetox

    yes

  46. lovetox

    actually its a ejabberd, but its configured so the connection is proxied over nginx

  47. lovetox

    the user said he already asked in ejabberd support

  48. wurstsalat has joined

  49. lovetox

    technically whitespaces between xml elements should not be a problem, its just weird that on calling recv() i get only a whitespace

  50. lovetox

    i dont know what happens then because at that point Gajim aborts, because in stream initiation it expects the streamheader on the first recv()

  51. lovetox

    looks like that

  52. lovetox

    https://paste.gajim.org/view/d68787ba

  53. flow

    lovetox, IIRC the RFC explicitly states that you need to expect whitespaces

  54. flow

    https://tools.ietf.org/html/rfc6120#section-11.7

  55. Daniel has left

  56. Daniel has joined

  57. lovetox

    hm that says "between" xml elements

  58. Daniel has left

  59. lovetox

    could be argued that this does not count for the initial stream opening

  60. flow

    isn't it between elements

  61. flow

    because there is no preceeding element?

  62. lovetox

    yeah, its the response to my stream opening

  63. flow

    and it's the very first stream opening?

  64. lovetox

    yes

  65. lovetox

    see my paste

  66. Kev

    "Gajim aborts, because in stream initiation it expects the streamheader on the first recv()" That's certainly not valid, there's no guarantee that you'll receive the whole header at once.

  67. Kev

    Even without whitespace oddities.

  68. flow

    but anyhow I wouldn't be so pedantic in this case and simply take care of the whitespace

  69. lovetox

    yeah of course, its just weird, there is really no need to send only a whitespace

  70. flow

    and, as Kev correctly points out, you have to be able to reassemble the XML open tag (or later elements) from multiple recv calls

  71. flow

    yep, I am curious to hear the backstory behind that whitespace

  72. lovetox

    yeah thats no problem, if there is actually an open tag

  73. lovetox

    probably misconfigured stuff somewhere, but anyway i have to deal with it :/

  74. Kev

    Without checking the specs, I remember something about whitespace not being valid at the top level, but I might misremember.

  75. lovetox

    Kev, no should be valid at top level

  76. lovetox

    just not in tls and sasl negotiation

  77. Kev

    I'm certainly not in a position to argue with that :)

  78. lovetox

    i just read the section flow posted ^^

  79. Kev

    I missed that. It's still early :)

  80. Daniel has joined

  81. Daniel has left

  82. Daniel has joined

  83. Alex

    in the very old days some clients sent a whitespace after upgrade to tls, because some SSL libs were not upgrading to tls without a flush

  84. lovetox

    ok the backstory is a nginx that runs on 5222 and only support directls and expects SNI hostname set

  85. lovetox

    and if you connect plain there, it just sends you endless whitespace because it cant route the traffic to the xmpp server

  86. lovetox

    how needs srv set so a server only support directtls?

  87. lovetox

    only setting xmpps-client?

  88. Zash

    and _xmpp-client in srv 0 0 0 .

  89. Zash

    probably

  90. asterix has left

  91. Alex

    the spec sais that xmpps is the preference

  92. asterix has joined

  93. Alex

    ``` STARTTLS MUST NOT be used over direct TLS connections. ```

  94. skyfar has left

  95. zinid

    lovetox, there is no way to support directtls only I guess, because a client will fallback to A address with starttls anyways

  96. lovetox

    hm just not answering on port 5222 is a start i guess

  97. lovetox

    only answer on 5223 which should be a direct tls port

  98. zinid

    yes, this will work as long as a client supports directtls and _xmpps-client records

  99. Alex

    yes, many clients still don't support them

  100. Alex

    let's force them to upgrade 😜

  101. lovetox

    obviously this is not a generic public open server

  102. Link Mauve

    zinid, you shouldn’t fallback if your SRV points to . like Zash said.

  103. zinid

    ah

  104. asterix has left

  105. asterix has joined

  106. lovetox

    yeah Gajim also doesnt do a fallback

  107. lovetox

    only fallback is xmpps to xmpp

  108. lovetox

    and if no srv entrys are available whatsoever

  109. lovetox

    5223 to 5222

  110. asterix has left

  111. asterix has joined

  112. larma has left

  113. larma has joined

  114. asterix has left

  115. asterix has joined

  116. asterix has left

  117. asterix has joined

  118. asterix has left

  119. asterix has joined

  120. asterix has left

  121. asterix has joined

  122. asterix has left

  123. asterix has joined

  124. Daniel has left

  125. Daniel has joined

  126. debacle has joined

  127. asterix has left

  128. asterix has joined

  129. asterix has left

  130. asterix has joined

  131. asterix has left

  132. asterix has joined

  133. asterix has left

  134. asterix has joined

  135. asterix has left

  136. asterix has joined

  137. Daniel has left

  138. Daniel has joined

  139. asterix has left

  140. asterix has joined

  141. lovetox has left

  142. lovetox has joined

  143. Daniel has left

  144. Daniel has joined

  145. asterix has left

  146. asterix has joined

  147. debacle has left

  148. asterix has left

  149. asterix has joined

  150. aj has joined

  151. aj has left

  152. Daniel has left

  153. Daniel has joined

  154. asterix has left

  155. asterix has joined

  156. wurstsalat has left

  157. wurstsalat has joined

  158. Daniel has left

  159. Daniel has joined

  160. sonny has left

  161. sonny has joined

  162. debacle has joined

  163. Syndace has left

  164. wurstsalat has left

  165. wurstsalat has joined

  166. larma has left

  167. larma has joined

  168. skyfar has joined

  169. asterix has left

  170. lovetox_ has joined

  171. lovetox_ has left

  172. lovetox has left

  173. wurstsalat has left

  174. Syndace has joined

  175. asterix has joined

  176. skyfar has left

  177. Daniel has left

  178. Daniel has joined

  179. asterix has left

  180. asterix has joined

  181. goffi has left

  182. asterix has left

  183. Daniel has left

  184. Daniel has joined

  185. Daniel has left

  186. Daniel has joined

  187. Daniel has left

  188. Daniel has joined