Closed Bug 1846054 Opened 10 months ago Closed 5 months ago

Pdf Attachment Tabs not restored after restart "The address wasn’t understood ... One of the following (imap) is not a registered protocol"

Categories

(Thunderbird :: Toolbars and Tabs, defect)

Thunderbird 116
defect

Tracking

(thunderbird_esr115 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
thunderbird_esr115 --- fixed

People

(Reporter: km, Assigned: darktrojan)

References

()

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Steps to reproduce:

Open an email with a pdf attachment
Open the attachment in a tab
Quit Thunderbird
Restart Thunderbird

Actual results:

The pdf display properly in the tab prior to restart, but fails after restart with
"The address wasn’t understood
One of the following (imap) is not a registered protocol or is not allowed in this context.
You might need to install other software to open this address."

Expected results:

The tab should display the same way it did before the restart.

This is the behavior on Thunderbird 116.b7 on Ubuntu.

See Also: → 1844855

This is still present in 118.0b1. It's really quite a problem having the pdf tabs get corrupted on every restart, especially as a beta user which requires a restart on every update. I know there are some related restart issues some intermittent. This one is completely reproducible every time.

I could be wrong but this was fixed previously, in the last 8 months. Can you find the bug report?

Flags: needinfo?(km)

I think you might be thinking of the "27 byte" issue bug 1820351, where the downloaded file was always a corrupted 27 byte file. This is a different error with the message about some protocol error.

'"The address wasn’t understood
One of the following (imap) is not a registered protocol or is not allowed in this context.
You might need to install other software to open this address."

Flags: needinfo?(km)
Duplicate of this bug: 1849694
Component: Untriaged → Toolbars and Tabs
See Also: → 1841411
Summary: Pdf Attachment Tabs Break after Thunderbird Restart (116b7) → Pdf Attachment Tabs not restored after restart "The address wasn’t understood ... One of the following (imap) is not a registered protocol"
Duplicate of this bug: 1860295

When investigating Bug 1858157 I think I ran into this bug. On MacOS 14 and able to reproduce on both current Daily (121.0a1) and 115.4.1.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1858157
See Also: → 1847433

A friend brought her computer by this morning, exhibiting this issue. I checked, and in the Settings/Synchronization and Storage, she has "Keep messages in all folders for this account on this computer". I don't know if that is relevant to the symptom, but I checked it because since the message mentions IMAP, I wondered if keeping the message locally would cause different behavior. Since she already had it local, I didn't turn it off (to make her re-download lots of messages later, and I wasn't sure if turning it off would actually immediately discard the local copies for a test). She's running thunderbird 115.5.1 on Windows 10.

Are there also errors listed in error console (command+shift+J) immediately after startup?

Flags: needinfo?(km)

All I see in the error console are a lot of entries about caldav, whether or not I have a pdf tab.
This pdf error is very easy to reproduce, and a developer should have no trouble seeing it.

Flags: needinfo?(km)

I just did an update to 121.0b5 (from b4). I lose my pdf tabs on every restart with the imap errors reported here. So I took the opportunity to check the error console. This time I see

Security Error: Content at about:neterror?e=unknownProtocolFound&u=imap%3A//km%2540mathcs.emory.edu%40imap.gmail.com%3A993/fetch%253EUID%253E/INBOX%253E434448%3Fpart%3D1.3%26filename%3D4EG1123%2520Emory%2520Gardens.pdf%26type%3Dapplication/pdf&c=UTF-8&d=One%20of%20the%20following%20%28imap%29%20is%20not%20a%20registered%20protocol%20or%20is%20not%20allowed%20in%20this%20context. may not load or link to chrome://global/skin/icons/info.svg.

I didn't see that last restart. Its not the same pdf, or maybe its the new beta, or I just missed it last time with all the calendar stuff that dominates the error console.

Just updated to 121.0b6, which means a restart. On every restart I lose the tabs with pdfs in them. This is what the error console said this time

Security Error: Content at about:neterror?e=unknownProtocolFound&u=imap%3A//km%2540mathcs.emory.edu%40imap.gmail.com%3A993/fetch%253EUID%253E/INBOX%253E435076%3Fpart%3D1.2%26filename%3Dtest.pdf%26type%3Dapplication/pdf&c=UTF-8&d=One%20of%20the%20following%20%28imap%29%20is%20not%20a%20registered%20protocol%20or%20is%20not%20allowed%20in%20this%20context. may not load or link to chrome://global/skin/icons/info.svg.

What I really don't understand is why this is broken and nothing is done about this serious regression. Even more because it worked before Supernova.

I can't reproduce. There must be something missing from the steps to reproduce.
Is the account where the mail with the pdf is logged in to when thunderbird starts? Is the password saved?

My IMAP sever is gmail. When thunderbird starts up it immediately loads the INBOX without any interaction. The Security settings are ssl/tls and Oauth2.

Same issue with another IMAP server connected through SSL/TLS with normal password.

Assignee: nobody → geoff
Status: NEW → ASSIGNED

Weird. I can reproduce with every provider, so it's definitely not an issue in that regard.
Doesn't matter if it is Gmail, Web.de, whatever...

It's nothing to do with which provider you have. This is a timing issue. If your tab gets restored before the IMAP mechanism is ready, you will see this bug. That's why it happens for some people but not others. The fix is to ensure one happens before the other.

Duplicate of this bug: 1869226
Target Milestone: --- → 122 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4a6370af4d14
Make sure the IMAP protocol is ready before restoring PDF tabs. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
See Also: → 1870199

I noticed that the "imap not registered" is still occurring on PDF tabs on 115.6.0 on windows. This simple fix probably could have been uplifted to 115.6.0 to fix the bug in the release.

good for 115?

Flags: needinfo?(geoff)
Flags: needinfo?(geoff)
Attachment #9368335 - Flags: approval-comm-esr115?

Comment on attachment 9368335 [details]
Bug 1846054 - Make sure the IMAP protocol is ready before restoring PDF tabs. r=#thunderbird-reviewers

[Triage Comment]
approved for esr115

Attachment #9368335 - Flags: approval-comm-esr115? → approval-comm-esr115+
Duplicate of this bug: 1823538
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: