Closed Bug 1920710 Opened 1 year ago Closed 1 year ago

ics calendar from webcal://www.webcal.guru can't be added - console says blocked by OpaqueResponseBlocking. Reason: “after sniff: nosniff is true”

Categories

(Calendar :: Provider: ICS/WebDAV, defect, P3)

Thunderbird 128
defect

Tracking

(thunderbird_esr128 wontfix, thunderbird136 affected, thunderbird137 affected)

RESOLVED FIXED
138 Branch
Tracking Status
thunderbird_esr128 --- wontfix
thunderbird136 --- affected
thunderbird137 --- affected

People

(Reporter: richard.leger, Assigned: mkmelin)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Follow up on Bug 1906077 Comment 14

"...
The patch does not seems to work in TB 131.0b5 with webcal://www.webcal.guru/fr-FR/t%C3%A9l%C3%A9charger_le_calendrier?calendar_instance_id=269 (Comment 5).

Still get Could not find calendar's at this location. Check your settings.

While I can subscribe to this calendar in TB 115.13.0 (32-bit) without issue.
..."

...and Bug 1906077 Comment 15

"...
In the console I get `The resource at “https://www.webcal.guru/fr-FR/t%C3%A9l%C3%A9charger_le_calendrier?calendar_instance_id=269” was blocked by OpaqueResponseBlocking. Reason: “after sniff: nosniff is true”.´ This request does work using fetch() though so I'm not sure what's wrong.
...

Summary: ics calendar can't be added when redirection is involved - blocked by OpaqueResponseBlocking. Reason: “after sniff: nosniff is true” → ics calendar from webcal://www.webcal.guru can't be added - console says blocked by OpaqueResponseBlocking. Reason: “after sniff: nosniff is true”

I think the intended version was 128 since this worked on 115.

Version: Thunderbird 115 → Thunderbird 128
Attached image unabletobisect.png

The regression windows seems to be between...

app_name: thunderbird
build_date: 2022-10-27
build_file: C:\Users\richard.mozilla\mozregression\persist\2022-10-27--comm-central--thunderbird-108.0a1.en-US.win64.zip
build_type: nightly
build_url: https://archive.mozilla.org/pub/thunderbird/nightly/2022/10/2022-10-27-10-24-48-comm-central/thunderbird-108.0a1.en-US.win64.zip
changeset: 8b330f7342ec20451342580900ba1dd79a59eb57
pushlog_url: https://hg.mozilla.org/comm-central/pushloghtml?fromchange=8b330f7342ec20451342580900ba1dd79a59eb57&tochange=5fa7c75aca7eec26d1e9e751ba913c2938fd91ce
repo_name: comm-central
repo_url: https://hg.mozilla.org/comm-central

...which works ok...

...and...

app_name: thunderbird
build_date: 2022-10-28
build_file: C:\Users\richard.mozilla\mozregression\persist\2022-10-28--comm-central--thunderbird-108.0a1.en-US.win64.zip
build_type: nightly
build_url: https://archive.mozilla.org/pub/thunderbird/nightly/2022/10/2022-10-28-10-26-33-comm-central/thunderbird-108.0a1.en-US.win64.zip
changeset: 5fa7c75aca7eec26d1e9e751ba913c2938fd91ce
pushlog_url: https://hg.mozilla.org/comm-central/pushloghtml?fromchange=5937332784b764bbaeeba3b067bc6bc453a5d06e&tochange=5fa7c75aca7eec26d1e9e751ba913c2938fd91ce
repo_name: comm-central
repo_url: https://hg.mozilla.org/comm-central

...where it does not work anymore...

When running the bisection attached I got "Unable to find enough data to bisect", so the above is all I can provide.

Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(mkmelin+mozilla)

Thanks Martin, that's definitely it! If I set browser.opaqueResponseBlocking false then it works.

I notice the issue has a twist though. It only happens for http

For the failing case, I see Sec-Fetch-Mode: no-cors in the request headers. (Which should probably not be sent, I'm not sure if it's the cause or not.)

Regressed by: 1785331

Can this be closed and https be used as the solution?

Flags: needinfo?(mkmelin+mozilla)
Severity: -- → S3
Priority: -- → P3

(In reply to Toby Pilling [:tobyp] from comment #6)

Can this be closed and https be used as the solution?

In this case yes, if you now about it. But not generally.

Flags: needinfo?(mkmelin+mozilla)

Found out the cause. ORB is in used because we're not using system principal due to bug 1468912.
I tested a patched version with Nextcloud and it seems fine.

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
See Also: → 1468912
Target Milestone: --- → 138 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ea4766fb5c04
Use system principal for calendar requests to prevent ORB blocking. r=tobyp

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Comment on attachment 9472717 [details]
Bug 1920710 - Use system principal for calendar requests to prevent ORB blocking. r=#thunderbird-reviewers

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: May not be able to add calendar
  • User impact if declined:
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Daily?: Yes
  • Has the fix been verified in Beta?: Yes
  • Needs manual test from QA?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Medium
  • Why is the change risky/not risky? (and alternatives if risky): Unknown unknowns. It's affecting caldav general code.
  • String changes made/needed: none
Attachment #9472717 - Flags: approval-comm-esr128?

Comment on attachment 9472717 [details]
Bug 1920710 - Use system principal for calendar requests to prevent ORB blocking. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr128

Attachment #9472717 - Flags: approval-comm-esr128? → approval-comm-esr128+
Regressions: 1962189

Let's not take this for 128. Due to bug 1962189

Attachment #9472717 - Flags: approval-comm-esr128+
Regressions: 1964295

I think we should back this out. The URL listed in the bug title and comment 0 is a bad URL and should not find any calendars, since the server only responds to secure requests (and serves Strict-Transport-Security headers to enforce this). The correct URL is https: or webcals:. Perhaps we can suggest upgrading the scheme or do it automatically, but I don't think this patch is the answer.

The patch makes all of the code above the changes meaningless, which has led to the regressions.

Flags: needinfo?(mkmelin+mozilla)

The calendar with the correct URL ends up being set, so I'm while the URL may be out of date in this case, I do think it should work.
But yes, I agree we'll have to back out (most of) this patch. Going to do that in bug 1964295.

Flags: needinfo?(mkmelin+mozilla)

Should this be re-opened?

See Also: → 1965151

Let's continue in bug 1965151. Would be too messy to re-open at this point.

See Also: → 1738510
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: