Open Bug 1347822 Opened 7 years ago Updated 5 years ago

references in comments to attachments on other bugs shouldn't be augmented with actions

Categories

(bugzilla.mozilla.org :: Bug Creation/Editing, enhancement)

Production
enhancement
Not set
normal

Tracking

()

People

(Reporter: glob, Assigned: seban)

References

Details

Attachments

(1 file)

44 bytes, text/x-github-pull-request
dylan
: review-
Details | Review
if i reference an attachment by number, eg "a.ttachment1" (without the period), it currently is turned into a href along with the details/diff/review actions.

this can result in weird/confusing text in comments.
eg. from https://bugzilla.mozilla.org/show_bug.cgi?id=1346649#c0
1. Preview appears with very large text, way beyond 80%   [attachment1 [details] [diff] [review].pdf]

i propose always linking to attachments, however only augmenting with details/diff/review for attachments on the current bug.
Attached file github pull request
Assignee: nobody → sebastinssanty
Comment on attachment 8848995 [details] [review]
github pull request

Currently this fails (returns { html: null },
and the cause isn't obvious because we don't handle errors in the render_comment() method.

If errors *were* working, you'd see:
Can't call method "id" without a package or object reference at /opt/bugzilla/htdocs/1347822/Bugzilla/Template.pm line 295.

Sebastin: Could you file a bug about the lack of error checking here?
https://github.com/mozilla-bteam/bmo/blob/cc3141625e4c87387259c38e4ab5f56820621768/Bugzilla/WebService/Bug.pm#L366-L370

Thanks!
Flags: needinfo?(sebastinssanty)
Attachment #8848995 - Flags: review?(dylan) → review-
I think the error triggered here will be more obvious after bug 1361376. Still need to handle the error:

Can't call method "id" without a package or object reference at /opt/bugzilla/htdocs/1347822/Bugzilla/Template.pm line 295.
Depends on: 1361376
Flags: needinfo?(sebastinssanty)
Is this still being worked on?
Flags: needinfo?(sebastinssanty)
Yep. I'll look into this in some time.
Flags: needinfo?(sebastinssanty)
Priority: P1 → --
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: