[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1120048: marked as done (trixie-pu: package wike/3.1.1)



Your message dated Sat, 15 Nov 2025 11:21:45 +0000
with message-id <736c7150dc08501cc89945035c406eaf9688e144.camel@adam-barratt.org.uk>
and subject line Closing requests for updates included in 13.2
has caused the Debian Bug report #1120048,
regarding trixie-pu: package wike/3.1.1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1120048: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1120048
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: wike@packages.debian.org, debian-gtk-gnome@lists.debian.org, werdahias@debian.org
Control: affects -1 + src:wike
User: release.debian.org@packages.debian.org
Usertags: pu

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I would like to cherry-pick a patch fixing the displaying of articles in 
wike to stable. It's already been fixed in a newer upstream release 
present in forky.
[ Reason ]
Wikipedia changed their API for mobile, thus breaking the CSS in wike. 
This leads to the program still displaying articles, though they are 
unreadable (black text on black background). For the initial report see 
#1119977.

[ Impact ]
While the app remains usable per se the usability is greatly reduced.

[ Tests ]
I manually tested that a cherry-picked upstream commit fixes the issue.
Furthermore, a contributor tested the upstream commit in #1119977 and 
verified it works.

[ Risks ]
The risk is fairly low IMO, as the code change just adds the correct 
useragent as one  line change (see 
https://github.com/hugolabe/Wike/commit/8078bbb38385c9e7bb206ac7101e9c7dd6d31707)

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]
Add cherry-picked upstream patch setting the correct useragent for 
mobile wikipedia, thus fixing the UX issue (#1119977)

best,

werdahias

-----BEGIN PGP SIGNATURE-----

iIsEARYKADMWIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCaQn/mxUcd2VyZGFoaWFz
QGRlYmlhbi5vcmcACgkQ7L7btge5sr5/QwD+NGonlrTHn4idjxavLx9JC1r+w2Nh
yk9VwjonRgzNv6cA/jdms6pofqJ/TIzEct3C9UfDjyFQEnpyfbXSy/9lnoMI
=rv0Z
-----END PGP SIGNATURE-----
diff -Nru wike-3.1.1/debian/changelog wike-3.1.1/debian/changelog
--- wike-3.1.1/debian/changelog	2025-02-09 17:22:33.000000000 +0100
+++ wike-3.1.1/debian/changelog	2025-11-04 14:22:22.000000000 +0100
@@ -1,3 +1,9 @@
+wike (3.1.1-1+deb13u2) stable; urgency=medium
+
+  * Add cherry-picked upstream patch setting correct useragent (Closes: #1119977)
+
+ -- Matthias Geiger <werdahias@debian.org>  Tue, 04 Nov 2025 14:22:22 +0100
+
 wike (3.1.1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru wike-3.1.1/debian/patches/add-mobile-useragent.diff wike-3.1.1/debian/patches/add-mobile-useragent.diff
--- wike-3.1.1/debian/patches/add-mobile-useragent.diff	1970-01-01 01:00:00.000000000 +0100
+++ wike-3.1.1/debian/patches/add-mobile-useragent.diff	2025-11-04 14:20:29.000000000 +0100
@@ -0,0 +1,22 @@
+From 8078bbb38385c9e7bb206ac7101e9c7dd6d31707 Mon Sep 17 00:00:00 2001
+From: Hugo Olabera <hugolabe@gmail.com>
+Date: Fri, 24 Oct 2025 09:57:47 +0200
+Subject: [PATCH] Fix new redirection of mobile URLs implemented by Wikipedia
+
+Wikipedia has implemented a change to the way it serves the mobile version of its content, which now no longer uses the ".m." subdomain. This causes Wike to display the desktop version and the custom css is not applied correctly.
+---
+ src/view.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/view.py b/src/view.py
+index b73e051..f54860a 100644
+--- a/src/view.py
++++ b/src/view.py
+@@ -31,6 +31,7 @@ class ViewSettings:
+   # Load custom css and connect view settings signals
+ 
+   def __init__(self):
++    self.web_settings.set_user_agent('Mozilla/5.0 (Linux; Android; Mobile) AppleWebKit/537.36 (KHTML, like Gecko)')
+     self.web_settings.set_default_font_size(settings.get_int('font-size'))
+     self.web_settings.set_enable_back_forward_navigation_gestures(True)
+ 
diff -Nru wike-3.1.1/debian/patches/series wike-3.1.1/debian/patches/series
--- wike-3.1.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ wike-3.1.1/debian/patches/series	2025-11-04 14:20:55.000000000 +0100
@@ -0,0 +1 @@
+add-mobile-useragent.diff

--- End Message ---
--- Begin Message ---
Package: release.debian.org
Version: 13.2

Hi,

The updates referenced in each of these bugs were included in today's
13.2 trixie point release.

Regards,

Adam

--- End Message ---

Reply to: