mozilla / sumo

Project management board for SUMO and Community properties.
Mozilla Public License 2.0
14 stars 5 forks source link

500 error message if clicking the "Upload" button when changing a group avatar without having any image file selected for upload #2021

Open emilghittasv opened 3 weeks ago

emilghittasv commented 3 weeks ago

Preconditions Sign in with an admin account.

Steps to reproduce Steps to reproduce the behavior:

  1. Go to https://support.allizom.org/en-US/groups/
  2. Select a random group from the list.
  3. Click on the "Change" button under the default group avatar.
  4. Upload an image.
  5. Click on the "Change" option under the newly uploaded image.
  6. Click on the "Upload" button.

Expected behavior Nothing happens since no files were selected via the file picker (or the Upload button is disabled in this case).

Actual behavior 500 error with FileNotFoundError

Screencasts upload 500

Desktop:

Additional context Sentry fires https://mozilla.sentry.io/issues/6029282387/?project=4504326797197312&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&statsPeriod=1h&stream_index=0

emilghittasv commented 3 weeks ago

Bug fix candidate for current sprint.

smithellis commented 2 weeks ago

https://github.com/mozilla/kitsune/pull/6342

emilghittasv commented 1 week ago

@smithellis

This issue is still reproducible in stage.

Sentry fires the same error

I'm moving this ticket back inside the in progress field.

smithellis commented 1 week ago

https://github.com/mozilla/kitsune/pull/6355

emilghittasv commented 1 week ago

I can confirm that this issue is no longer reproducible in stage.

Clicking on the "Upload" button without having an image attached will display the "You have not selected an image to upload." error message.

Moving this ticket inside the release column.