File > Offline > Download/Sync Now ... doesn't download messages before going offline in NNTP-JS
Categories
(MailNews Core :: Networking: NNTP, defect)
Tracking
(thunderbird_esr102 fixed, thunderbird107 fixed)
People
(Reporter: b4, Assigned: rnons)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(4 files, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
rjl
:
approval-comm-beta+
|
Details | Review |
28.71 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
6.95 KB,
patch
|
rjl
:
review+
wsmwk
:
approval-comm-esr102+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Steps to reproduce:
File > Offline > Download/Sync Now ... doesn't download messages before going offline in NNTP-JS
Have a newsgroup that is selected for offline use.
Go offline using "File > Offline > Download/Sync Now ..." and select newsgroup messages.
Actual results:
After going offline, not all newsgroups have been downloaded. In fact, when switching to the old C++ module, it's quite visible in the status bar that messages are downloaded, not so for the JS module.
Expected results:
Messages should have been downloaded for offline use.
Comment 1•2 years ago
•
|
||
(In reply to b4 from comment #0)
After going offline, not all newsgroups have been downloaded. In fact, when switching to the old C++ module, it's quite visible in the status bar that messages are downloaded, not so for the JS module.
Confirmed for Release and Daily.
Assignee | ||
Comment 2•2 years ago
|
||
OK, I forgot to implement nsINntpService.downloadNewsgroupsForOffline, will rewrite nsNewsDownloader.cpp in JS.
Assignee | ||
Comment 3•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/bf9dd95a17f3
Support downloading all news before going offline. r=mkmelin
Can you please look at this again, it's not quite working like in the C++ module.
- First and foremost, the "Work offline once download and/or sync is complete" option doesn't work.
- Secondly, at least from the status bar display it appears to be downloading newsgroups which weren't selected for offline use.
- It also appears to re-download certain messages, maybe those are expired articles, there are 4 on a.d.test. That also happens in the C++ module.
- Further to one, when going offline because automatically going offline doesn't work, there is a whole lot of activity in NGs not selected for offline use. According to the status bar display, all the headers appear to be downloaded again.
Another issue which is unrelated to this bug but related to offline use in general is that clicking a NG which wasn't selected for offline use while in offline use causes an hourglass to be displayed.
In the current state, offline news reading isn't really usable.
If you want to reproduce our testing, see the subscribed newsgroups in the attached screenshot.
Assignee | ||
Comment 7•2 years ago
|
||
Assignee | ||
Comment 8•2 years ago
|
||
"Work offline once download and/or sync is complete" seems to work for me, please try again.
2 and 4 seems to be the same, the new patch should fix them.
Another issue which is unrelated to this bug but related to offline use in general is that clicking a NG which wasn't selected for offline use while in offline use causes an hourglass to be displayed.
Let me fix this separately. Thanks.
(In reply to Ping Chen (:rnons) from comment #8)
"Work offline once download and/or sync is complete" seems to work for me, please try again.
Yes, this works on 102 with part 1 applied (attachment 9300953 [details] [diff] [review]) and Daily with a small setup, one small newsgroup. It likely didn't work on our test setup (comment #6) since downloading of the NGs which weren't meant to be downloaded never ended (issue 2 & 4). We'll test again with part 2 applied.
2 and 4 seems to be the same, the new patch should fix them.
Thank you.
Another issue which is unrelated to this bug but related to offline use in general is that clicking a NG which wasn't selected for offline use while in offline use causes an hourglass to be displayed.
Let me fix this separately. Thanks.
Will you file a bug?
Comment 10•2 years ago
|
||
(In reply to b5 from comment #9)
We'll test again with part 2 applied.
This appears to be working now with 1. also resolved. Merged ESR 102 version attached for your convenience.
Assignee | ||
Updated•2 years ago
|
Comment 11•2 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/4de95d512152
Download articles for newsgroup set for offline use only. r=mkmelin
Comment 12•2 years ago
|
||
Comment on attachment 9300904 [details]
Bug 1795547 - Support downloading all news before going offline. r=mkmelin
[Triage Comment]
Approved for beta in consideration for esr102. Note to uplifter: two changesets to uplift.
[Approval Request Comment]
Regression caused by (bug #): nntp-js
User impact if declined: NNTP messages are not synced prior to going offline
Testing completed (on c-c, etc.): By Betterbird devs
Risk to taking this patch (and alternatives if risky):
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Comment on attachment 9301291 [details] [diff] [review]
1795547-download-news-before-offline.patch (ESR 102 version, merge of both patches)
[Approval Request Comment]
Regression caused by (bug #): nntp-js
User impact if declined: NNTP messages are not synced prior to going offline
Testing completed (on c-c, etc.): By Betterbird devs
Risk to taking this patch (and alternatives if risky):
Ping - any objections? This patch is from an outside contributor and should be reviewed again.
Comment 14•2 years ago
|
||
bugherder uplift |
Thunderbird 107.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/7f62db5f63bd
Comment 15•2 years ago
|
||
bugherder uplift |
Thunderbird 107.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/67e71050806c
Comment 16•2 years ago
|
||
Comment on attachment 9301291 [details] [diff] [review]
1795547-download-news-before-offline.patch (ESR 102 version, merge of both patches)
[Triage Comment]
Approved for esr102
Updated•2 years ago
|
Comment 17•2 years ago
|
||
bugherder uplift |
Thunderbird 102.5.0:
https://hg.mozilla.org/releases/comm-esr102/rev/ec41e10e46fb
Description
•