Closed Bug 1227193 Opened 10 years ago Closed 9 years ago

Attachment size displayed as {} bytes

Categories

(developer.mozilla.org Graveyard :: File attachments, defect)

All
Other
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwhitlock, Assigned: jezdez)

References

Details

(Keywords: in-triage, Whiteboard: [specification][type:bug])

Attachments

(1 file)

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.
Recorded 500 error in development as bug 1227197
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.
Severity: normal → minor
Keywords: in-triage
Component: General → File attachments
(no editbugs so I can't claim the bug)
Assignee: nobody → krenair
Status: NEW → ASSIGNED
Assignee: krenair → jezdez
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.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: