Link within email not actioned

Bug #1983202 reported by Tony Middleton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
thunderbird (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Accessing a http or https link in an email has no effect. This is true if I left click on the link or right click and select "Open link in browser". My default browser is Firefox.

Just to confuse things it does work occasionally, the first time I open a link after loading Thunderbird.

The problem still exists in safe mode. I think the problem started after the update to 22.04

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: thunderbird 1:91.11.0+build2-0ubuntu0.22.04.1
ProcVersionSignature: Ubuntu 5.15.0-41.44-generic 5.15.39
Uname: Linux 5.15.0-41-generic x86_64
AddonCompatCheckDisabled: False
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
BuildID: 20220628000715
CasperMD5CheckResult: unknown
Channel: Unavailable
CurrentDesktop: KDE
Date: Sun Jul 31 11:51:22 2022
Extensions: extensions.sqlite corrupt or missing
ForcedLayersAccel: False
IncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
InstallationDate: Installed on 2020-08-08 (721 days ago)
InstallationMedia: Kubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
IpRoute:
 default via 192.168.0.1 dev enp45s0 proto dhcp metric 100
 169.254.0.0/16 dev enp45s0 scope link metric 1000
 192.168.0.0/24 dev enp45s0 proto kernel scope link src 192.168.0.10 metric 100
 192.168.0.2 dev enp45s0 proto static scope link metric 100
 192.168.99.0/24 via 192.168.0.2 dev enp45s0 proto static metric 100
Locales: extensions.sqlite corrupt or missing
MostRecentCrashID: bp-95bfd992-10a3-4228-94df-b2a300210101
PrefErrors: Unexpected character ',' before close parenthesis @ /usr/lib/thunderbird/omni.ja:greprefs.js:359
PrefSources:
 prefs.js
 user.js
Profiles: Profile0 (Default) - LastVersion=91.11.0/20220628000715 (In use)
RunningIncompatibleAddons: False
SourcePackage: thunderbird
Themes: extensions.sqlite corrupt or missing
UpgradeStatus: Upgraded to jammy on 2022-05-16 (75 days ago)
dmi.bios.date: 07/01/2020
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: A.10
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: B550-A PRO (MS-7C56)
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: 1.0
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrA.10:bd07/01/2020:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C56:pvr1.0:rvnMicro-StarInternationalCo.,Ltd.:rnB550-APRO(MS-7C56):rvr1.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr1.0:skuTobefilledbyO.E.M.:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: MS-7C56
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: 1.0
dmi.sys.vendor: Micro-Star International Co., Ltd.

Revision history for this message
Tony Middleton (ximera) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

Can you run the following command in a terminal, and share the output here?

    find ~/.thunderbird -name handlers.json -print -exec cat '{}' \;

Changed in thunderbird (Ubuntu):
status: New → Incomplete
Revision history for this message
Tony Middleton (ximera) wrote :

find ~/.thunderbird -name handlers.json -print -exec cat '{}' \;
/home/tony/.thunderbird/mmhujxko.default/handlers.json
{"defaultHandlersVersion":{},"mimeTypes":{"application/pdf":{"action":3,"extensions":["pdf"]},"audio/x-wav":{"action":2,"handlers":[{"name":"kaffeine","path":"/usr/bin/kaffeine"}],"extensions":["wav"]},"image/jpeg":{"action":2,"handlers":[{"name":"gwenview","path":"/usr/bin/gwenview"}],"extensions":["jpeg","jpg","jpe"]},"application/zip":{"action":4,"extensions":["zip"]},"application/msword":{"action":4,"extensions":["doc","dot"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"action":4,"ask":true,"extensions":["docx"]},"application/vnd.ms-excel":{"action":4,"ask":true,"extensions":["xls","xlb","xlt"]},"audio/vnd.wave":{"action":4,"ask":true},"image/tiff":{"action":2,"ask":true,"handlers":[{"name":"GNU Image Manipulation Program","path":"/usr/bin/gimp-2.8"}],"extensions":["tif","tiff"]},"application/x-xpinstall":{"action":2,"ask":true,"handlers":[{"name":"Thunderbird Mail","path":"/usr/bin/thunderbird"}],"extensions":["xpi"]},"image/png":{"action":2,"ask":true,"handlers":[{"name":"Okular","path":"/usr/bin/okular"}],"extensions":["png"]},"application/rtf":{"action":4,"ask":true,"extensions":["rtf"]},"application/vnd.oasis.opendocument.text":{"action":4,"ask":true,"extensions":["odt"]},"text/plain":{"action":2,"ask":true,"extensions":["txt","asc","text","pot","brf","srt"],"handlers":[{"name":"Kate","path":"/usr/bin/kate"}]},"application/vnd.ms-word.document.macroenabled.12":{"action":4,"ask":true,"extensions":["docm"]},"application/vnd.oasis.opendocument.spreadsheet":{"action":4,"ask":true,"extensions":["ods"]},"image/*":{"action":0,"ask":true,"handlers":[{"name":"gwenview","path":"/usr/bin/gwenview"}],"extensions":["jpg","jpeg","jpe"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"action":4,"ask":true,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"action":4,"ask":true,"extensions":["pptx"]}},"schemes":{"http":{"action":2,"handlers":[{"name":"Firefox Web Browser","command":"env %u"},{"name":"thunderbird","path":"/usr/bin/thunderbird"}]},"https":{"action":2,"handlers":[{"name":"Firefox Web Browser","command":"env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox %u"}]}}}

Changed in thunderbird (Ubuntu):
status: Incomplete → New
Revision history for this message
Olivier Tilloy (osomon) wrote :

The value "2" for the "action" entry for both "http" and "https" indicates that thunderbird should use a custom application to handle the links, instead of the system default (that would be value "4"). Is there a good reason for this configuration, or would it be reasonable to delegate opening http and https links to your desktop environment's default browser?

Revision history for this message
Tony Middleton (ximera) wrote :

Thank you for responding. I wasn't aware that this was the setting. I would have assumed that it did use the desktop default.

I've been doing some searches to work out how to reset this setting without success and would welcome any pointers.

Revision history for this message
Olivier Tilloy (osomon) wrote :

If you open Thunderbird's preferences, in the General tab there is a "Files & Attachments" section where you should be able to reset these settings.

Revision history for this message
Tony Middleton (ximera) wrote :

Outcome slightly weird.

Under "Files & Attachments" there was an entry for content type http. The only options were "Always ask" or "Use Konqueror (default)". I chose Konqueror and now http links in emails open in Firefox!

There is no entry for https and https links do not open in anything.

Revision history for this message
Tony Middleton (ximera) wrote :

/home/tony/.thunderbird/mmhujxko.default/handlers.json
{"defaultHandlersVersion":{},"mimeTypes":{"application/pdf":{"action":3,"extensions":["pdf"]},"audio/x-wav":{"action":2,"handlers":[{"name":"kaffeine","path":"/usr/bin/kaffeine"}],"extensions":["wav"]},"image/jpeg":{"action":2,"handlers":[{"name":"gwenview","path":"/usr/bin/gwenview"}],"extensions":["jpeg","jpg","jpe"]},"application/zip":{"action":4,"extensions":["zip"]},"application/msword":{"action":4,"extensions":["doc","dot"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"action":4,"ask":true,"extensions":["docx"]},"application/vnd.ms-excel":{"action":4,"ask":true,"extensions":["xls","xlb","xlt"]},"audio/vnd.wave":{"action":4,"ask":true},"image/tiff":{"action":2,"ask":true,"handlers":[{"name":"GNU Image Manipulation Program","path":"/usr/bin/gimp-2.8"}],"extensions":["tif","tiff"]},"application/x-xpinstall":{"action":2,"ask":true,"handlers":[{"name":"Thunderbird Mail","path":"/usr/bin/thunderbird"}],"extensions":["xpi"]},"image/png":{"action":2,"ask":true,"handlers":[{"name":"Okular","path":"/usr/bin/okular"}],"extensions":["png"]},"application/rtf":{"action":4,"ask":true,"extensions":["rtf"]},"application/vnd.oasis.opendocument.text":{"action":4,"ask":true,"extensions":["odt"]},"text/plain":{"action":2,"ask":true,"extensions":["txt","asc","text","pot","brf","srt"],"handlers":[{"name":"Kate","path":"/usr/bin/kate"}]},"application/vnd.ms-word.document.macroenabled.12":{"action":4,"ask":true,"extensions":["docm"]},"application/vnd.oasis.opendocument.spreadsheet":{"action":4,"ask":true,"extensions":["ods"]},"image/*":{"action":0,"ask":true,"handlers":[{"name":"gwenview","path":"/usr/bin/gwenview"}],"extensions":["jpg","jpeg","jpe"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"action":4,"ask":true,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"action":4,"ask":true,"extensions":["pptx"]}},"schemes":{"http":{"action":4,"handlers":[{"name":"Firefox Web Browser","command":"env %u"},{"name":"thunderbird","path":"/usr/bin/thunderbird"}]},"https":{"action":2,"handlers":[{"name":"Firefox Web Browser","command":"env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox %u"}]}}}

Revision history for this message
Olivier Tilloy (osomon) wrote :

That's weird indeed. Can you try the following?

 1. Close thunderbird, ensure it's not running any longer
 2. Hand-edit that file (/home/tony/.thunderbird/mmhujxko.default/handlers.json) to change the value of the action for the https scheme from 2 to 4
 3. Launch thunderbird and verify whether https links now open as expected in your default browser

Revision history for this message
Tony Middleton (ximera) wrote :

Changed 2 to 4 and left everything else unchanged. http and https links now open Firefox.

Changed my system default to Chromium and that opened as expected. Now reverted to Firefox.

Thank you for your help. Happy to provide anything if you think worthwhile investigating further.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Well, it would be good to understand how you ended up with such a configuration in the first place, but I'm not sure how we could find out. In any case, I'm glad that the problem is resolved for you, I suggest closing the bug report for now.

Please do not hesitate to file new bug reports for other issues.

Changed in thunderbird (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.