Skip to content

Fixed an issue where article list pages could throw an error for invalid filters#4517

Merged
StephDriver merged 3 commits intor-v1.7.xfrom
b-4497-bugfix
Nov 28, 2024
Merged

Fixed an issue where article list pages could throw an error for invalid filters#4517
StephDriver merged 3 commits intor-v1.7.xfrom
b-4497-bugfix

Conversation

@mauromsl
Copy link
Member

The new article list views (Relying on GenericFacetedListView) rely on GET method to apply filtering. They use a django form to render facets and filters, however the form was not being validated, leading to server errors and potential SQL injection when malformed data was sent via query parameters. We now validate all query parameters ahead of executing any queries.

closes #4497

@mauromsl mauromsl added this to the v1.7.x milestone Nov 28, 2024
Copy link
Member

@ajrbyers ajrbyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment.

Copy link
Member

@ajrbyers ajrbyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOOKS GOOD TO ME!

🎖️🎖️🎖️🎖️🎖️🎖️🎖️🎖️🎖️🎖️🎖️🎖️🎖️

Copy link
Member

@StephDriver StephDriver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manually tested, works.

@StephDriver StephDriver merged commit 24c5e6e into r-v1.7.x Nov 28, 2024
@StephDriver StephDriver deleted the b-4497-bugfix branch November 28, 2024 10:17
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

Successfully merging this pull request may close these issues.

3 participants