Closed Bug 1841547 Opened 2 years ago Closed 2 years ago

Attempting to publish a calendar via FTP should show appropriate error message, also for other invalid protocols

Categories

(Calendar :: General, defect)

Thunderbird 116
defect

Tracking

(thunderbird_esr115 fixed, thunderbird120 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
thunderbird_esr115 --- fixed
thunderbird120 --- fixed

People

(Reporter: francesco, Assigned: mkmelin)

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1709448 +++

FTP support was removed in bug 1709448. When publishing a calendar to FTP using TB 102 the dialog simply does nothing, in the error console I see NS_ERROR_UNKNOWN_PROTOCOL.

In TB 115 there is nothing in the error console, or perhaps it fails earlier on

Uncaught TypeError: this._buttons is undefined
    getButton chrome://global/content/elements/dialog.js:190
    checkURLField chrome://calendar/content/publishDialog.js:48
    loadCalendarPublishDialog chrome://calendar/content/publishDialog.js:27
    publishEntireCalendar chrome://calendar/content/publish.js:89
    <anonymous> Choo
    _fireButtonEvent chrome://global/content/elements/dialog.js:515
    _doButtonCommand chrome://global/content/elements/dialog.js:494
    _handleButtonCommand chrome://global/content/elements/dialog.js:488
    publishEntireCalendar chrome://calendar/content/publish.js:65
    doCommand chrome://calendar/content/calendar-command-controller.js:370
    goDoCommand chrome://messenger/content/globalOverlay.js:99
    oncommand chrome://messenger/content/messenger.xhtml:1

Side issue: Does publishing work in 115 for a non-FTP calendar? Sorry, can't try.

Correction: NS_ERROR_UNKNOWN_PROTOCOL still shows in 115 after the panel is closed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Make the publish button disabled if it's not an http url.

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Attachment #9359754 - Attachment description: Bug 1841547 - Don't allow trying to publish calendar to incorrect URLs. r=#thunderbird-reviewers → Bug 1841547 - Don't allow trying to publish calendar to incorrect URLs. r=john.bieling
Target Milestone: --- → 121 Branch

Hey, just saw this. Can you allow webcal and webcals as well? These are basically http(s), but some people will assume it is necessary and we don't need to block it.

Flags: needinfo?(mkmelin+mozilla)

Good point, let's add that!

Flags: needinfo?(mkmelin+mozilla)

Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/bbcdfae7ff3a
Don't allow trying to publish calendar to incorrect URLs. r=john.bieling

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9359754 [details]
Bug 1841547 - Don't allow trying to publish calendar to incorrect URLs. r=john.bieling

[Approval Request Comment]
User impact if declined: non-informative UI
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): safe

Attachment #9359754 - Flags: approval-comm-esr115?
Attachment #9359754 - Flags: approval-comm-beta?

Comment on attachment 9359754 [details]
Bug 1841547 - Don't allow trying to publish calendar to incorrect URLs. r=john.bieling

[Triage Comment]
Approved for beta

Attachment #9359754 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9359754 [details]
Bug 1841547 - Don't allow trying to publish calendar to incorrect URLs. r=john.bieling

[Triage Comment]
Approved for esr115

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

Attachment

General

Created:
Updated:
Size: