Closed Bug 1964145 Opened 16 days ago Closed 7 days ago

TB cannot access (old) detached attachments on UNC drive

Categories

(Thunderbird :: General, defect)

Thunderbird 138
defect

Tracking

(thunderbird_esr128 affected, thunderbird138 wontfix, thunderbird139 fixed)

RESOLVED FIXED
140 Branch
Tracking Status
thunderbird_esr128 --- affected
thunderbird138 --- wontfix
thunderbird139 --- fixed

People

(Reporter: dominik.schultheiss, Assigned: mkmelin, NeedInfo)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Steps to reproduce:

I have been separating larger attachments to a network storage location (SMB share in Windows network without domain) for years.
This has worked for years across different Thunderbird versions without any problems. The attachments could be detached without any problems and were also found again.
I switched from the esr-channel (128. ...) to the release-channel (137. ... / 138. ...). Since then, detached attachments are no longer found.

Actual results:

Since switching from the esr-channel (128. ...) to the release-channel (137. ... / 138. ...) detached attachments are no longer found.
This applies both to attachments that were detached years ago with earlier versions and to attachments that have just been detached with the current TB version.
The path is of course available. The detachment is carried out without an error message. The detached attachments are then actually located there. It also works to right-click on the detached file and select “Copy link address”.
However, the detached attachments are crossed out and can no longer be opened from Thunderbird itself.

Expected results:

The detached attachments should be found by Thunderbird instead of being crossed out, as was the case up to and including version 128. ... (esr).

The problem is identical on every computer that has been updated from the 128. ... ESR to the current 137. ... / 138. ... release.
None of these 137. ... / 138. ... Thunderbird releases can find any detached attachment.

Looks like an UNC file:// path.

Due to security/privacy concerns there we had to apply some restrictions, so UNC paths are no longer directly allowed.
Use a mapped drive instead.

Summary: TB cannot find detached attachments → TB cannot find detached attachments on UNC drive

Yes, it is indeed a UNC path.
In the future, I can use a path on a mapped network drive for newly detached attachments.

However, how can I re-link the attachments that have already been detached and linked to the UNC path?
The fact that the attachments are now simply gone is not a solution.

Component: Untriaged → General
Keywords: regression
Summary: TB cannot find detached attachments on UNC drive → TB cannot access (old) detached attachments on UNC drive
Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Thanks, that looks good and gives me hope.
At the moment I'm using an add-on that replaces part of the UNC path with the drive letter of a mapped drive.
Once it is implemented, I will add the server name “NAS” as an exception in the mail.allowed_attachment_hostnames setting.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/1807d010353b
Allow access to attachments at specific UNC hosts. r=arschmitz

Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED

Looks like an unintended hunk got added: https://hg-edge.mozilla.org/comm-central/rev/1807d010353b#l2.12

Target Milestone: --- → 140 Branch

Magnus, do you want to uplift this to beta?

Comment on attachment 9485544 [details]
Bug 1964145 - Allow access to attachments at specific UNC hosts. r=#thunderbird-reviewers

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: Regression
  • User impact if declined: Users using UNC paths for atachments could not access detached attachments.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Daily?: Yes
  • Has the fix been verified in Beta?: No
  • Needs manual test from QA?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Contained fix
  • String changes made/needed: none
Attachment #9485544 - Flags: approval-comm-esr128?
Attachment #9485544 - Flags: approval-comm-beta?

Comment on attachment 9485544 [details]
Bug 1964145 - Allow access to attachments at specific UNC hosts. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9485544 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: