Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ViewController): Properly handle non-existent fileIds (regression lead to 500 errors) #42427

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Dec 21, 2023

Summary

The handling added in #40515 broke the handling for fileIds that don't exist anywhere.

Notes

  • One difference in behavior remains (versus <NC28) and that is that when we redirect to the index, the URL in the browser used to drop the bogus fileId (but now it stays). I'd personally would prefer to drop it. I haven't deciphered all the changes to the newer files to know where that's coming from. I tried using the old RedirectResponse approach taken in NC27 (see here) and the bogus fileId still sticks around now. Open to suggestions and/or ignoring it since it may be outside the scope of this PR.

  • Backport only to v28

Fixes #42418 

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
@solracsf

This comment was marked as resolved.

@joshtrichards

This comment was marked as resolved.

@skjnldsv skjnldsv merged commit 86575c9 into master Dec 29, 2023
49 of 50 checks passed
@skjnldsv skjnldsv deleted the fix/issue-42418 branch December 29, 2023 13:40
@skjnldsv
Copy link
Member

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Internal server error when trying to access non-existent file
4 participants