Skip to content
Snippets Groups Projects

Fix 500 error when loading an invalid upload URL

Merged Sean McGivern requested to merge fix-500-for-invalid-upload-path into master
All threads resolved!

What does this MR do?

Fix a 500 error when accessing a legacy URL like https://gitlab.com/uploads/project/avatar/13083/gitlab-logo-square.png

The previous behaviour was confusing, but I've gone with the same thing: if you're logged in, you get a 404. If you're logged out, you are asked to sign in.

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/4998.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Do you want to implement the 301 for the the cases where only the -/system part is missing?

  • Sean McGivern added 1 commit

    added 1 commit

    • 028562a0 - Fix 500 error when loading an invalid upload URL

    Compare with previous version

  • Author Contributor

    Do you want to implement the 301 for the the cases where only the -/system part is missing?

    I don't think so, at least not in a patch to 10.5. We never supported these old URLs anyway, and to do this we'd have to look up the uploaders twice (or we'd potentially redirect you to another 404), so I'd like to treat that as a separate issue if we do want it.

  • Sean McGivern resolved all discussions

    resolved all discussions

  • Micaël Bergeron approved this merge request

    approved this merge request

  • Seems good :100:, merge when green.

  • Sean McGivern mentioned in commit 05f4788e

    mentioned in commit 05f4788e

  • merged

  • Maintainer

    Picked into https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17322, will merge into 10-5-stable ready for 10.5.2

  • Sean McGivern mentioned in commit fd6018b9

    mentioned in commit fd6018b9

  • Please register or sign in to reply
    Loading