Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query filter for /secrets should use single quotes #82

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

stuart-mclaren-hpe
Copy link
Contributor

Unlike other resources, when filtering secrets by
name, the name should be surrounded by single quotes.

If no quotes are present the following error is returned:

{"httpStatusCode":400,"errorCode":"HPE_GL_DATA_SERVICES_INVALID_PARAMETER","message":"unsupported OData filter \"name eq foo\" due to unsupported OData comparison value type (must be String)","debugId":"f461e8f8dc017a5fca7d6a6c404c0016"}

Unlike other resources, when filtering secrets by
name, the name should be surrounded by single quotes.

If no quotes are present the following error is returned:

```
{"httpStatusCode":400,"errorCode":"HPE_GL_DATA_SERVICES_INVALID_PARAMETER","message":"unsupported OData filter \"name eq foo\" due to unsupported OData comparison value type (must be String)","debugId":"f461e8f8dc017a5fca7d6a6c404c0016"}
```
@stuart-mclaren-hpe stuart-mclaren-hpe marked this pull request as ready for review December 17, 2024 15:28
@stuart-mclaren-hpe stuart-mclaren-hpe merged commit a74e118 into main Dec 18, 2024
5 checks passed
@stuart-mclaren-hpe stuart-mclaren-hpe deleted the filter-fix branch December 18, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants