spring-attic / spring-cloud-gcp

Integration for Google Cloud Platform APIs with Spring
Apache License 2.0
705 stars 693 forks source link

Query by example API doesn't follow documentation #2470

Closed lbourret closed 4 years ago

lbourret commented 4 years ago

According to these documentations for the Query by Example API, parameters set to null are suppose to be excluded from query by default. However, one of the parameters (an entity's datastore id) was set to null and was still included in the query. The application threw an error because ids cannot be null.

Using version 2.3.1 https://cloud.spring.io/spring-cloud-gcp/multi/multi__spring_data_cloud_datastore.html#_query_by_example https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#query-by-example

Reproduce issue:

Error Message: image