Gajim - 2024-07-07


  1. *IM*

    Kris: >Not really. Element is using much weaker e2ee that cycles keys rarely. Do you have more information to this / source?

  2. bot

    lovetox pushed 1 commits to branch gajim/master fix: RosterItemExchange: Display optional message in the chat - https://dev.gajim.org/gajim/gajim/-/commit/a33786b54f7e3a10f3ac6d46e21b4aa6631a6405

  3. 坦克人

    γ€ˆ

  4. cal0pteryx

    fjklp: not sure what you mean, but either way, I'd have to go search at the gtk tracker myself

  5. sch

    I have added OMEMO support to Slixfeed, and it appears thta Gajim does not display images of encrypted URL messages that do not start with aesgcm://

  6. sch

    I have added OMEMO support to Slixfeed, and it appears that Gajim does not display OOB media of encrypted URL messages that do not start with aesgcm://

  7. sch

    Gajim does display OOB media as expected for unencrypted URLs from Slixfeed.

  8. sch

    Version 1.8.4

  9. cal0pteryx

    sch: gajim only displays a preview if body == oob url

  10. fjklp

    > fjklp: not sure what you mean, but either way, I'd have to go search at the gtk tracker myself I found our original exchange on this. You only said "might be a gtk bug", so nevermind.

  11. sch

    > sch: gajim only displays a preview if body == oob url It appears that it does not when the URL is encrypted and does not start with aesgcm. *I need to verify this with the XML Console.*

  12. fjklp

    I often experience where seemingly randomly the text that I am typing into the message input field will become shaded dark, the same as quoted text, often randomly switching back and forth between dark and normal. Does anyone else experience this?

  13. sch

    > sch: gajim only displays a preview if body == oob url cal0pteryx: It appears that it does not when the URL is encrypted and does not start with aesgcm. *I need to verify this with the XML Console.*

  14. cal0pteryx

    fjklp: I don't think we have code for that in gajim :D never experienced this

  15. fjklp

    interesting, do you think theme could affect it?

  16. cal0pteryx

    sch: https://xmpp.org/extensions/xep-0454.html

  17. cal0pteryx

    fjklp: no clue. We're developing against adwaita

  18. fjklp

    ok

  19. sch

    > sch: https://xmpp.org/extensions/xep-0454.html cal0pteryx: Thank you. It appears that there is no mention of non AESGCM URI scheme.

  20. bot

    lovetox pushed 2 commits to branch gajim/master cq: Preferences: Remove obsolete code - https://dev.gajim.org/gajim/gajim/-/commit/c861b4cfecf9f974735c1b29b66d6518bce6d49f imprv: Proxies: Add option to ignore system proxies - https://dev.gajim.org/gajim/gajim/-/commit/92ddcc8664d23fd81bc0e69bbf8d8c5f4d5868dd

  21. bot

    lovetox pushed 1 commits to branch python-nbxmpp/master cfix: Revert: Fallback to direct connection if system proxies are not suitable - https://dev.gajim.org/gajim/python-nbxmpp/-/commit/c4bb5dc60fe92630a117826001d1eff59a496326

  22. lovetox

    zak, next version will have a option "No-Proxy", you can tell your colleagues to set this, then it should work again

  23. lovetox

    i wonder though if in your company http connections work without proxy

  24. zak

    Hi lovetox, it works from within the company network without this setting. I will test the option then.

  25. zak

    Is it possible to activate this option even when creating a completely new account?

  26. lovetox

    yes

  27. lovetox

    account wizard, advanced checkbox, then you can set the proxy

  28. zak

    It is not perfect I guess though with this setting. Especially if a user does not know why a connection does not work.

  29. lovetox

    it is weird that it works without vpn

  30. lovetox

    vpn is basically a way to be "in" the company network from at home

  31. zak

    I need to tell everyone to pay attention when upgrading Gajim. Otherwise for sure nobody will notice to set this option. I wonder if other users who run into this will know.

  32. zak

    I will check the proxy settings again tomorrow, when I am at work. Maybe this is disabled there.

  33. amogus

    > lovetox pushed 1 commits to branch python-nbxmpp/master > > cfix: Revert: Fallback to direct connection if system proxies are not suitable - https://dev.gajim.org/gajim/python-nbxmpp/-/commit/c4bb5dc60fe92630a117826001d1eff59a496326 this is bad, what if tor users havent configured their daemon correctly? then their data gets leaked, instead of having no connection

  34. zak

    lovetox, there is no way to automatically catch this problem somehow and then use the no-proxy configuration automatically?

  35. lovetox

    amogus, you misunderstand the commit line

  36. zak

    I think an automatic fallback would be more user-friendly

  37. zak

    To be honest, I think the answer in the issue is weird. It's kind of like "To make it work, you have to enable the "make it work" switch.

  38. lovetox

    i have to dig a bit, on gnome indeed it behaves correctly

  39. lovetox

    But on Windows i dont think so

  40. debacle

    Funny: Three different date formats in one chat window πŸ˜€οΈ Above the day: "Sat 07/06/24" Message of yesterday: "Sat Jul 6 00:01:07 2024" Message of today: "2024-07-07 09:31:18" I wonder, if Gajim uses the locale settings? How can I force ISO style always and everywhere?

  41. fjklp

    debacle: afaik, it's all set in the ACE. date_format, date_time_format, time_format

  42. fjklp

    > ISO style excellent choice

  43. Kris

    this is not yet in 1.9.1 right? https://dev.gajim.org/gajim/python-nbxmpp/-/merge_requests/84

  44. Kris

    ah wait, I see: https://dev.gajim.org/gajim/gajim/-/merge_requests/1023

  45. Kris

    was confused with the two repos

  46. Codimp

    Kris, same just a few minutes ago ahah

  47. lovetox

    zak, i found the problem, if your company sets a proxy setting just to some ip or uri, then this means in windows, everything must go through that

  48. lovetox

    you can set it this way http=http://1.2.3.4;https=https://1.2.3.4

  49. lovetox

    if you set it like that, then libproxy will not return it for tcp connections

  50. lovetox

    its unfortunate that you company setup this setting that way, it will probably not break only Gajim, though of course there are not many applications that dont use http

  51. lovetox

    a workaround could be that you setup on your xmpp server, websockets, then of course this proxy setting would work, as its http

  52. lovetox

    or at least i think a websocket connection can go trough a http proxy

  53. lovetox

    otherwise you will have to live with setting "No Proxy"

  54. cal0pteryx

    debacle: using 1.9.1?

  55. lissine

    It's the same for me, and I'm using 1.9.1

  56. zak

    lovetox: I don't know where it is configured. I can download a wpad.dat file that contains many rules and conditions and in the end it just says `return "PROXY 2.3.4.5:3128; PROXY 2.3.4.6:3128; DIRECT"; `

  57. zak

    This is a PAC file.

  58. zak

    I don't know if http can be added there.

  59. zak

    ...and it says DIRECT there as well, so I wonder why this is not taken into account from libproxy.

  60. lovetox

    i meant manual proxy config

  61. lovetox

    if they do auto config i have no idea about it

  62. lovetox

    its javascript and it should return the right proxy

  63. lovetox

    you would need to get into the syntax and see for yourself is something is wrong there

  64. zak

    Setting to manual proxy is an action the user needs to take. We can as well then set the no-proxy configuration.

  65. zak

    So far the PAC file seems correct in my opinion.

  66. lovetox

    i meant i thought your company used the manual setting

  67. zak

    No

  68. lovetox

    > So far the PAC file seems correct in my opinion. how can you say its correct, did you read the documentation for PAC files :d

  69. zak

    Yes, I read what I could find.

  70. zak

    And I do not see http or something like that anywhere for a rule.

  71. zak

    And as I said, it gives two IP addresses for proxy and then DIRECT as third option. To my understanding, this should tell the application exactly this: Try these two IP's, then use DIRECT connection if it does not work.

  72. zak

    Only GLib only tries the IP addresses with http.

  73. lovetox

    thats idiotic

  74. zak

    What exactly is idiotic?

  75. lovetox

    it should ask if a protocol was given, then return the correct proxy, not give 3 proxies and say, try for yourself what works

  76. lovetox

    https://igorpuhalo.wordpress.com/2022/08/09/windows-proxy-settings-ultimate-guide-part-iii-wpad-pac-configuration-file/#pac-wpad-script

  77. lovetox

    here see at the bottom they return the correct proxy depending on protocol

  78. zak

    I see... well this is not included in our PAC. All the references I found however mentioned PAC files in conjunction with a web browser.

  79. lovetox

    GLib does not support multiple proxies per protocol, it can only hold one

  80. lovetox

    so it probably takes the first one

  81. zak

    In the debug output it gave both IP addresses, if you remember.

  82. lovetox

    hmm

  83. zak

    And it automatically(?) added the http before that. But http is not given in our proxy PAC

  84. zak

    before the IP addresses I mean.

  85. lovetox

    thats was not glib though

  86. lovetox

    that was libproxy

  87. zak

    ``` pxbackend-DEBUG: px_manager_get_proxies_sync: url=none://xmpp.company.de:5222 online=1 pxbackend-DEBUG: px_manager_get_proxies_sync: Config[0] = wpad:// pxbackend-DEBUG: px_manager_get_proxies_sync: Proxy[0] = http://ip.proxy1:3128 pxbackend-DEBUG: px_manager_get_proxies_sync: Proxy[1] = http://ip.proxy2:3128 ```

  88. lovetox

    yes thats lib proxy

  89. zak

    It seems GLib uses libproxy here?

  90. lovetox

    hm i was wrong, indeed it tries to connect to all proxies

  91. lovetox

    still lib proxy seems to return the 2 http proxies and not direct

  92. zak

    yes

  93. zak

    and it adds the http:// before the IP addresses

  94. lovetox

    this is normal i think, only ips could be considered http proxies

  95. 222m5

    > Yes, I read what I could find. zak: idk if this ref is relevant (or helpful) https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file

  96. zak

    This is one of the links I found.

  97. zak

    I did not find anything about the protocol specification there, but the doc specifically seems to be for browser requests only

  98. zak

    Ah, well maybe it should be return HTTP 2.3.4.5:3128 instead of return PROXY 2.3.4.5:3128

  99. lovetox

    i dont think this will change something, glib knows that its a http proxy

  100. lovetox

    and knows thats its not suiteable

  101. lovetox

    the question is why direct is not tried afterwards

  102. zak

    Well in any case, I think next to "System" and the two pre-defined Tor-Proxies it wouldn't hurt to add a no-proxy option. It would be interesting to find out what exactly is happening here, but you already invested much time in this.

  103. cal0pteryx

    debacle, check date_format, time_format, and date_time_format. Only the "date separator" between days deviates a bit from that format, since it adds %a (weekday) in front

    πŸ™ 1
  104. lovetox

    zak, its already added in master

  105. lovetox

    zak, one thing could also be that lib proxy does not even get the wpad file

  106. lovetox

    and finds the proxy at some other locations

  107. lovetox

    hm no

  108. lovetox

    i think the wpad code simply does not return the direct option

  109. zak

    I was thinking about that, too. But where? According to this... https://superuser.com/questions/346372/how-do-i-know-what-proxy-server-im-using ...there is the command `netsh winhttp show proxy`. But that gives: > Aktuelle WinHTTP-Proxyeinstellungen: > DirectAccess (kein Proxyserver)

  110. Takto

    hello

  111. Takto

    to whom I ought to talk about key recognition compatibility between Conversations and Gajim?

  112. zak

    With http://wpad/wpad.dat I get the PAC file with the code I mentioned.

  113. lovetox

    https://github.com/libproxy/libproxy/blob/main/src/backend/px-manager.c#L475

  114. lovetox

    this code take the response from the wpad file and converts it into proxies

  115. lovetox

    i dont see any special handling for the DIRECT keyworkd

  116. lovetox

    i dont see any special handling for the DIRECT keyword

  117. zak

    I see... Question is: Is this wrong, i.e. a bug? Or should DIRECT be ignored, because DIRECT is no proxy per se.

  118. lovetox

    no idea, what says the wpad doc :D

  119. lovetox

    the mozilla docs mention it

  120. lovetox

    maybe lets do a bug report at libproxy

  121. zak

    Yes, I think it may be a bug. Because in the px-manager.c code, it has code for direct connection: ``` /* In case no proxy could be found, assume direct connection */ if (((GPtrArray *)builder)->len == 0) px_strv_builder_add_proxy (builder, "direct://"); ```

  122. zak

    It should probably do this as well, when DIRECT is given.

  123. zak

    Do you open the issue? I can do that as well if you want?

  124. lovetox

    https://github.com/libproxy/libproxy/issues/304

  125. zak

    πŸ˜€οΈ You were faster

  126. zak

    I think the last sentence you write is not correct. It returns direct://, but only if the line does not return any proxies, i.e `return DIRECT`.

  127. zak

    But nevermind, I think they should unterstand

  128. 222m5

    > but the doc specifically seems to be for browser requests only zak: fwiw https://wikipedia.org/wiki/Proxy_auto-config > The Proxy auto-config file format was originally designed by Netscape in 1996

  129. zak

    Yes, that's what I thought.

  130. lovetox

    if it works it works :D

  131. epic

    is there already a MR/idea for the Correct button to be added next to the other hover-on-message buttons?

  132. epic

    would be great to actually correct a last message by clicking arrow_up

  133. lovetox

    you can with CTRL + arrow up

  134. lovetox

    contact info is right click on avatar

  135. epic

    sweet!

  136. rion

    how can I open settings in new/nightly gajim? does it need some dbus global menu?

  137. meson

    rion: try Ctrl+M

  138. rion

    thanks @meson. but it seems it's not my day anyway. Got a segfault somewhere in glib

  139. rion

    installing flatpak instead :)

  140. debacle

    > debacle, check date_format, time_format, and date_time_format. Only the "date separator" between days deviates a bit from that format, since it adds %a (weekday) in front Now it's perfect!