Skip to content

Search Service API sending out 500 error code for IllegalArgumentException type for master

Kamalika Saha requested to merge kamalika/core_master into master

Earlier the distance variable had an annotation of "Min(value = 0)" with a message saying "'distance' must be greater than 0". So a scenario of distance=0 was considered as a positive use case(which was contradicting to the error messsage). However Elastic search was erroring out the same scenario : image

Code Fix: Changing back the annotation to positive in order to align with the error message. Have added test cases for the same as well.

Edited by Kamalika Saha

Merge request reports