Closed Bug 1645455 Opened 4 months ago Closed 4 months ago

Can't attach some text, 500 internal server error

Categories

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

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: Gijs, Assigned: dkl)

Details

(example: <!-- Request ID: s5Li6-3i -->)

STR:

  1. open https://bugzilla.mozilla.org/attachment.cgi?id=9156344
  2. select all the text, copy to clipboard
  3. open https://bugzilla.mozilla.org/attachment.cgi?bugid=1643789&action=enter (or, one assumes, any other attachment creation page)
  4. paste the text in the textbox at the top for file contents, give a description (doesn't appear to matter what, I used "about:support data from comment 0 (test)"
  5. click "create"

ER:
attachment created

AR:
500 server error

Seen on Firefox 78 beta on macOS, though it's unclear if that matters.

This is consistent - it happened a few days ago, when the bug was still marked sec-sensitive, and it still happens now, so I don't think this is a temporary outage or something. Given the use of non-ascii in the text, I assume there's some kind of encoding issue.

I was able to attach the content fine by copy-pasting to textedit.app, saving as a local .txt file, and then attaching that file (which is how the other attachments on that bug were created).

Results in a 500 on attachment.cgi in nginx; The following appears in the application log:

Jun 12 16:31:53 ip-172-31-44-226 docker-bugzilla[3708]: {"Severity":3,"Fields":{"msg":"HTTP::Message content must be bytes at Bugzilla/S3.pm line 131.\n"},"Timestamp":1591979513000000000,"Logger":"CEREAL","Hostname":"ip-172-31-44-226.us-west-2.compute.internal","Type":"Mojolicious.Plugin.DefaultHelpers","Pid":709,"EnvVersion":2.0}

Looking into this now.

Assignee: nobody → dkl
Status: NEW → ASSIGNED

Merged to master. Will be in the next deployment.

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.