XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

gajim activity

João Sacramento opened merge request !1362: fix: Images: Refuse to decode untrusted images above 4096x4096 pixels at gajim / gajim

Related to #12849 Problem Link preview thumbnails (og:image data URIs, up to 50 KB) are decoded on the GUI thread by get_texture_from_data() without a dimension limit. If GdkPixbuf fails on a truncated image, the Pillow fallback (with LOAD_TRUNCATED_IMAGES) still allocates the full declared size. A tiny PNG declaring 13000×13000 px raised Gajim's memory use from 195 MB to 2 GB, again each time the chat was shown. Fix Read the image dimensions before decoding and refuse images above 4096×4096…

João Sacramento opened merge request !1361: fix: HTTP: Refuse content-encoded responses so size limits apply at gajim / gajim

Related to #12849 Problem The download size limit compared num_bytes_downloaded, the compressed bytes received, with Content-Length. But iter_bytes() returns the decoded data, and that is what gets written to disk. A response with Content-Encoding: gzip could therefore produce a file far larger than the limit: a ~100 KB response was saved as a 100 MB file, with the 10 MB preview limit. Fix Send Accept-Encoding: identity. Refuse responses that still arrive with a Content-Encoding…

João Sacramento opened merge request !1360: fix: Preview: Don't download automatically from local addresses at gajim / gajim

Related to #12849 Problem Files shared via OOB are previewed automatically. The download followed redirects without restrictions and didn't check the target address, so a file share pointing at a loopback, private or link-local address, directly or via a redirect, made Gajim send a request there without any user interaction. Fix http_request follows redirects manually and validates every hop: only http/https, no downgrade from https to http, and no redirect from a public host to a non-public…

João Sacramento closed issue #12836: [macOS] UI intermittently freezes when opening an existing chat from another workspace at gajim / gajim

Versions OS: macOS 27.0.1 (MacBook Air M1, Apple Silicon) Gajim: 2.6.0 (macOS) GTK: 4.22.4 python-nbxmpp: 7.4.0 Additional environment information: Adw: 1.9.3 GLib: 2.88.3 Pango: 1.58.2 PyGObject: 3.56.3 cairo: 1.18.4 pycairo: 1.29.1 libsoup: 3.6.6 Steps to reproduce the problem Launch Gajim with at least two workspaces (Workspace 1 and Workspace 2). Make sure there is an existing chat with a contact in Workspace 1. Switch to Workspace 2. Click "Start Chat" and select the same contact whose…

lovetox closed issue #12842: [macOS] Clicking XMPP URIs in a browser are not forwarded to the app at gajim / gajim

We had reports from users, that clicking a xmpp uri in a browser for example will not open the chat in Gajim. We register the URI scheme in our bundle See gajim.spec "CFBundleURLTypes": [ {"CFBundleURLName": "XMPP URI", "CFBundleURLSchemes": ["xmpp"]} ], But this seems to not help. Either We register the uri wrong Gtk does not implement receiving such open requests from the system

lovetox closed issue #12842: [macOS] Clicking XMPP URIs in a browser are not forwarded to the app at gajim / gajim

We had reports from users, that clicking a xmpp uri in a browser for example will not open the chat in Gajim. We register the URI scheme in our bundle See gajim.spec "CFBundleURLTypes": [ {"CFBundleURLName": "XMPP URI", "CFBundleURLSchemes": ["xmpp"]} ], But this seems to not help. Either We register the uri wrong Gtk does not implement receiving such open requests from the system

lovetox accepted merge request !1353: fix: MacOS: Open xmpp URIs passed by the system at gajim / gajim

Fixes #12842 (closed) Problem Clicking an xmpp: link (e.g. in a browser) brings Gajim to the front, but no chat opens. macOS delivers URLs for registered schemes as a GetURL Apple Event (kInternetEventClass / kAEGetURL). GTK's NSApplication delegate only implements application:openFiles:, so the URL is dropped. The CFBundleURLTypes registration in gajim.spec is fine. Fix On macOS, register a handler for the GetURL Apple Event via PyObjC (NSAppleEventManager) at startup, and pass the URI to the…

João Sacramento opened merge request !1353: fix: MacOS: Open xmpp URIs passed by the system at gajim / gajim

Fixes #12842 (closed) Problem Clicking an xmpp: link (e.g. in a browser) brings Gajim to the front, but no chat opens. macOS delivers URLs for registered schemes as a GetURL Apple Event (kInternetEventClass / kAEGetURL). GTK's NSApplication delegate only implements application:openFiles:, so the URL is dropped. The CFBundleURLTypes registration in gajim.spec is fine. Fix On macOS, register a handler for the GetURL Apple Event via PyObjC (NSAppleEventManager) at startup, and pass the URI to the…