Closed
Bug 1227193
Opened 10 years ago
Closed 9 years ago
Attachment size displayed as {} bytes
Categories
(developer.mozilla.org Graveyard :: File attachments, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jwhitlock, Assigned: jezdez)
References
Details
(Keywords: in-triage, Whiteboard: [specification][type:bug])
Attachments
(1 file)
124.77 KB,
image/png
|
Details |
What did you do?
================
1. As logged-in user, go to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl$edit
2. Scroll to Attachment list at bottom
What happened?
==============
The size of attachments is listed as "{} bytes"
What should have happened?
==========================
The size of the attachments should be displayed
Is there anything else we should know?
======================================
It is difficult to reproduce this on a developer box, because a 500 error is raised when reading the size of attachments that are not in the local box.
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Recorded 500 error in development as bug 1227197
Comment 3•10 years ago
|
||
We have two localized strings:
* "%(bytes)s bytes" in kuma/attachments/templates/attachments/attachment_detail.html
* "%s bytes" in kuma/attachments/templates/attachments/includes/attachment_row.html
Whatever the fix is here we should also normalize on the former.
Updated•9 years ago
|
Component: General → File attachments
I uploaded https://github.com/mozilla/kuma/pull/3803
Assignee | ||
Comment 7•9 years ago
|
||
This will be fixed in https://github.com/mozilla/kuma/pull/3769
Assignee: krenair → jezdez
Comment 8•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/a24447c09d32380b08d0c19e2bd0d4dc617b93a8
Fix bug 1227193 - Render attachment size correctly.
Also normalized the translated string to one form.
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•