openlibhums / janeway

A web-based platform for publishing journals, preprints, conference proceedings, and books
https://janeway.systems/
GNU Affero General Public License v3.0
177 stars 65 forks source link

GenericFacetedListView not validating input (ValueError) #4497

Open mauromsl opened 2 days ago

mauromsl commented 2 days ago

Describe the bug A ValueError is being raised from ORM queries, rather than validating input on the /articles page

Janeway version v1.7.2

To Reproduce Alter an ID on a selection field to enter an invalid value (e.g. "368'123".)

Expected behavior Form should not validate and avoid sending invalid types via ORM

Screenshots If applicable, add screenshots to help explain your problem.

Front-end Issues

If the issue is front-end specific please add the following details:

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.