Closed Bug 916889 Opened 6 years ago Closed 6 years ago

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

Categories

(bugzilla.mozilla.org :: API, defect)

Production
x86
macOS
defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: erik.bryn, Assigned: glob)

Details

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.
this is already in upstream, just needs a simple backport.
Assignee: nobody → glob
Status: UNCONFIRMED → NEW
Ever confirmed: true
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
Closed: 6 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
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
(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.