Relax validation constraint on Observation value field #4539
Labels
Priority: High
Issue/PR significantly impacts users.
Type: Implementation
Issue proposes a non-feature change to implementation.
Expected Behavior
When Observations are sent to BreedBase via BrAPI, any string should be valid for the Observation
value
field.Details
In /lib/CXGN/Phenotypes/ParseUpload/Plugin/Observations.pm, on line 227, the following regular expression is used to check for invalid characters:
[^a-zA-Z0-9,.\-\/\_:;\s]
. As a result, POSTing Observations with characters such as "?" in thevalue
field produces an error.After discussing this with everyone at the lab meeting today, I believe this whole validation of the
value
field should be removed. The only remaining concern is whether there are other parts of the code that rely on this constraint.See the BrAPI spec for Observation.
For Bugs:
Environment
Steps to Reproduce
The text was updated successfully, but these errors were encountered: