Fix a crash when the search view is getting indexed.

Review Request #13642 — Created March 18, 2024 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

A bad spider is sending some requests to the search view that are
causing error tracebacks. The issue here is that the form isn't valid,
but we were still trying to access cleaned_data. This change fixes
that up and tweaks stuff to make linters/static analysis happy.

Ran unit tests.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3

Commits

First Last Summary ID Author
Fix a crash when the search view is getting indexed.
A bad spider is sending some requests to the search view that are causing error tracebacks. The issue here is that the form isn't valid, but we were still trying to access `cleaned_data`. This change fixes that up and tweaks stuff to make linters/static analysis happy. Testing Done: Ran unit tests.
7ace0642f1f99f65b333063d2f501eed406104f0 David Trowbridge
reviewboard/search/views.py
Loading...