The default bug view has changed. See this FAQ.

Bug.attachment webservice calls should return the size of the attachment

RESOLVED FIXED

Status

()

bugzilla.mozilla.org
API
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: Erik Bryn, Assigned: glob)

Tracking

Production
x86
Mac OS X

Details

(Reporter)

Description

4 years ago
Here's an example response: https://bugzilla-dev.allizom.org/rest/ember/show/843868

As you can see, the file size is not returned inside the attachment data. The existing UI displays it, so it would be nice to also be able to display it in the Ember frontend.
(Assignee)

Comment 1

4 years ago
this is already in upstream, just needs a simple backport.
Assignee: nobody → glob
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Assignee)

Comment 2

4 years ago
Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bmo/4.2/
modified Bugzilla/WebService/Bug.pm
Committed revision 9008.

Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bmo/4.2-dev/
modified Bugzilla/WebService/Bug.pm
Committed revision 8552.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Summary: Ember.show API doesn't return file size of attachments → Bug.attachment webservice calls should return the size of the attachment
Version: Development/Staging → Production
(Reporter)

Comment 3

4 years ago
I'm seeing the `size` property being returned now, but it's value is 0. For example: https://bugzilla-dev.allizom.org/rest/ember/show/843868
(Assignee)

Comment 4

4 years ago
(In reply to Erik Bryn from comment #3)
> I'm seeing the `size` property being returned now, but it's value is 0. For
> example: https://bugzilla-dev.allizom.org/rest/ember/show/843868

the size of all the attachments on that bug _is_ 0 bytes.
You need to log in before you can comment on or make changes to this bug.