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

Added validation message when invalid url on dataset search query e.g with comma is given #6939

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hussnainwithss
Copy link
Contributor

@hussnainwithss hussnainwithss commented Jun 25, 2022

Fixes #6910

Proposed fixes:

  • Fixes 500 internal error when a comma is appended at end of dataset query e.g http://localhost:8080/dataset/?q=&sort=title_string+asc,
  • Now shows proper validation error with a invalid search query error.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

@smotornyuk
Copy link
Member

Can you report this problem to the user in a more gentle way? For example, if an invalid Solr query is used, the user still sees the search page with a message, that error happened. I think that the wrong sorting order should produce either the same or even more clear error message.

…. with comma is given

fixed linting & type issues

handles error in a more gentle way
@hussnainwithss hussnainwithss force-pushed the 6910-url-validation-dataset-sort branch from 6b26a0f to 48bbe0b Compare July 19, 2022 09:20
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.

Appending a comma to dataset sort parameter causes itnernal server error
2 participants