HAL API returns empty documents with proper count results

Hi,

We are facing issues with content API and HAL API for documents type filter, after changing docbase field type as multiple/list both content-api and hal-api fails to list those documents.

After disable multiple checkbox for docbase field type, both API working as expected. After disable dynamic bean generation also issue reproduceable.

For reference attached sample logs and hal-api response.

Log:

INFO  http-nio-8080-exec-7 [DynamicBeanDefinitionService.generateBeanDefinition:180] Creating bean of document type xxxx:basedocument from parent bean HippoDocument.
[INFO] [talledLocalContainer] 23.01.2023 18:37:04 INFO  http-nio-8080-exec-7 [DynamicBeanDefinitionService.generateBeanDefinition:189] Bean HippoDocument is not enhanced because it doesn't have any missing methods.

call:

http://localhost:8080/site/halapi/xxx:POCDocType

Response:

{
  "_meta": {
    "offset": 0,
    "limit": 10,
    "size": 4,
    "totalSize": 4
  },
  "_embedded": {
    "documents": []
  }
}