owncloud / owncloud/ocis

metadata search gives 500

Open
#12,230 1 comment 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug
when searching an image by its taken date i get 500

## Steps to reproduce
```shell
curl --location --request REPORT 'https://host.docker.internal:9200/remote.php/dav/spaces' \
--header 'Content-Type: application/xml' \
--header 'Authorization: Basic bWFyaWU6cmFkaW9hY3Rpdml0eQ==' \
--data '


photo.exposureDenominator=178

"'
```

## Expected behavior
if query is incorrect it should give `400` bad request

## Actual behavior
A clear and concise description of what happened.
```xml


{"id":"com.owncloud.api.search","code":500,"detail":"can not compile the query","status":"Internal Server Error"}

```

## Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.

```console
OCIS_XXX=somevalue
OCIS_YYY=somevalue
PROXY_XXX=somevalue
```

## Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.