Clinical-Genomics / statina

2 stars 3 forks source link

Certain symbols not allowed in Comment-field? #215

Closed NIPT-LabTech closed 2 years ago

NIPT-LabTech commented 2 years ago

The plus sign was not accepted in the Comment-field. I am able to write it, but it isn't saved. Is there any particular reason for this? Otherwise, such limitations seem unnecessary.

/Camilla

(I don't seem to be able to change the labels, unfortunately.)

Mropat commented 2 years ago

Plus sign is not permitted to be sent via curl form data. See this post with explanation

To allow the plus sign,the data should be url encoded first. The FastAPI backend will automatically decode url encoded strings into ordinary strings. Currently it is possible to insert plus sign by writing %2B in the comment instead. Perhaps there is a flag that can be used to apply to url encodin to form data automatically.

Will leave to @elevu and @moedarrah to decide urgency

elevu commented 2 years ago

Hej Camilla, you should definitely be able to submit a + in the comment, looking into the issue, will get back to you once it is fixed.

elevu commented 2 years ago

@NIPT-LabTech now you can submit samples with + and other special characters. Refresh the Statina page to get the new website version.