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

Do some validation in search to stop weird errors #585

Open
struan opened this issue Jul 17, 2024 · 0 comments
Open

Do some validation in search to stop weird errors #585

struan opened this issue Jul 17, 2024 · 0 comments

Comments

@struan
Copy link
Member

struan commented Jul 17, 2024

DataError at /search/
value too long for type character varying(1000)

Mostly due to penetration attempts but still.

Relevant bit of exception is:

File "/data/vhost/[cape.mysociety.org/caps/caps/views.py](http://cape.mysociety.org/caps/caps/views.py)", line 575, in form_valid
    return self.render_to_response(context)
  File "/data/vhost/[cape.mysociety.org/caps/caps/views.py](http://cape.mysociety.org/caps/caps/views.py)", line 578, in render_to_response
    self.save_search(context)
  File "/data/vhost/[cape.mysociety.org/caps/caps/views.py](http://cape.mysociety.org/caps/caps/views.py)", line 552, in save_search
    saved_search.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant