Open tarasvuyiv opened 4 years ago
That URL is not valid. Paging links are not intended to be modified, and will always include a _count. I guess we should probably return an HTTP 400 instead of a 500 but this should not work.
OK, I've updated the expected behavior.
Description The HAPI server throws a NullPointerException for the search requests containing more than one record when a
_getpagesoffset
parameter presented without the_count
parameter.How To Reproduce
POST
requests.GET
/Patient?_getpagesoffset=1
.OperationOutcome
with no details.Expected Behavior
An_getpagesoffset
should be ignored and the search bundle returned.OperationOtcome
with a 400 status code and an appropriate issue diagnostic message.Additional Details The exception is thrown at line
224
of theca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
class becausetheLimit
variable isnull
.Environment: