Closed Bug 714570 Opened 13 years ago Closed 13 years ago

Forward feed article not include the full text but the URL only

Categories

(MailNews Core :: Feed Reader, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 13.0

People

(Reporter: luweitest, Assigned: alta88)

References

Details

Attachments

(2 files, 4 obsolete files)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0 Build ID: 20111104165243 Steps to reproduce: Forward a feed article that has full text content Actual results: The forward message only contains the article's URL Expected results: The forward message should contains the full article
In TB support group, news: <iaudncM-Rb2gFnLTnZ2dnUVZ_sWdnZ2d@mozilla.org> "alta88[nntp]" pointed out: "you have discovered an interesting bug. if the messageId (View->Source or Show All Headers to see it) contains the url of the article (must be a valid url) then Forward includes it only. if the messageId is anything else (invalid url or a 'tag:' format value), the full Summary of the article will filled in upon Forward. the value used for messageId is based on what the publisher provides. but, for this purpose, Tb would need to do a workaround. you should file a bug."
Version: unspecified → 9
(In reply to LU Wei from comment #1) In my opinion, this should be an enhancement or an addon. It is not a bug.
(In reply to Hashem Masoud from comment #2) > (In reply to LU Wei from comment #1) > In my opinion, this should be an enhancement or an addon. It is not a bug. Whether you think the "enhancement" should make the forwards just forward a URL or full text, the present behavior (sometimes forward a URL, sometimes forward full text, according to "alta88[nntp]") is a bug.
this issue exists due to a Very Old bug 258278. the conditions of that bug no longer exist, ie a summary is now always stored with the message to allow a toggle between summary and web page, since bug 438429. the poor implementation in bug 258278 allowed forwarding summaries with tag: messageIds to work, but those feeds with http url messageIds got the link. a feed messageId can be any construct. if bug 258278 were reverted, then a forward would always include the summary (even if viewing a web page). i can look into this at some point; forwarding a summary should definitely be possible.
Status: UNCONFIRMED → NEW
Ever confirmed: true
IMO, the default forward behavior should be the same as view setting, i.e. when in summary view, "forward" will forward the summary; when in web page view, "forward" will forward the web page.
Component: General → Feed Reader
Product: Thunderbird → MailNews Core
QA Contact: general → feed.reader
Attached patch patch. (obsolete) — Splinter Review
this patch sorts out how feed messages are determined for further compose handling. it applies only to feed account messages (feeds moved/copied to other account types get normal handling, as inline messagepane web page viewing only happens in feed accounts). if a user is viewing a summary, single/multiselection compose will load summary(ies); if viewing a web page, load link(s). @comment 5: i too think there are nice aspects to loading the entire web page, but there are also issues, and don't think it would meet with approval by those who decide. a full web page would be better done in an extension. opening a link can be done in a content tab, which can allow javascript, and mitigates the usability problem somewhat.
Assignee: nobody → alta88
Attachment #588165 - Flags: review?(mbanner)
Put "web page view" situation aside (anyway, the feed message body contains only "summary"), I hope the patch will apply to all account folders. Feed message does not differ from mail message in storage format, in user experience (at simple HTML view and plain text view, which I prefer), and filters are normally used to re-organize messages to different folders, whatever the account they are under.
as mentioned, a feed article moved to a non feed account is treated normally, ie as any other message in that account. it is actually not strictly possible to identify a message as a 'feed' outside its account. content-base in the header, of course, is a good indicator, but that header can be sent along by anyone. see bug 522645.
Attachment #588165 - Attachment is obsolete: true
Attachment #588165 - Flags: review?(mbanner)
Attachment #588676 - Flags: review?(mbanner)
Attached patch better tweak. (obsolete) — Splinter Review
Attachment #588676 - Attachment is obsolete: true
Attachment #588676 - Flags: review?(mbanner)
Attachment #588760 - Flags: review?(mbanner)
(In reply to alta88 from comment #8) > as mentioned, a feed article moved to a non feed account is treated > normally, ie as any other message in that account. > Thanks, that's good. > it is actually not strictly possible to identify a message as a 'feed' > outside its account. content-base in the header, of course, is a good > indicator, but that header can be sent along by anyone. see bug 522645. The current situation is TB identifies this, because if a feed message is moved to a mail account, then forwarded, the summary body is also cut off and just URL will be forwarded.
(In reply to alta88 from comment #10) > Created attachment 588760 [details] [diff] [review] > better tweak. Alta88 could we get some unit tests too ?
if someone could point me to where compose window open type tests are, i could take a look to incorporating this.
Blocks: 721517
Attached patch updated patch (obsolete) — Splinter Review
updated patch to unbitrot and better handle empty content-base header.
Attachment #588760 - Attachment is obsolete: true
Attachment #588760 - Flags: review?(mbanner)
Attachment #601822 - Flags: review?(dbienvenu)
Comment on attachment 601822 [details] [diff] [review] updated patch r=me, but doesn't createInstance throws when it fails? That would make this check not useful: + if (!params || !composeFields) + return;
Attachment #601822 - Flags: review?(dbienvenu) → review+
it looks like it. those checks were there since the beginning. do you prefer them removed?
(In reply to alta88 from comment #19) > it looks like it. those checks were there since the beginning. do you > prefer them removed? yes, thx, I think it's better to remove them just so no one copies the bad pattern.
Attachment #601822 - Attachment is obsolete: true
Attachment #602960 - Flags: review+
Keywords: checkin-needed
OS: Windows XP → All
Hardware: x86 → All
http://hg.mozilla.org/comm-central/rev/b3925ea79358 For future patches, please use a checkin comment that summarizes the changes made rather than reiterating the bug title.
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 13.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: