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

[BUG] Validating on unsupported ChronoUnit #1357

Open
jackiehanyang opened this issue Oct 31, 2024 · 1 comment
Open

[BUG] Validating on unsupported ChronoUnit #1357

jackiehanyang opened this issue Oct 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jackiehanyang
Copy link
Collaborator

What is the bug?

As there is no named value Decade defined in the enum (ChronoUnit). This discloses the underlying framework as Java and the response is 200.

osd-name: aosa
....
{"ok":false,"error":"No enum constant java.time.temporal.ChronoUnit.DECADE"

This occurs in the period key within detectionInterval, shown below:

POST /api/anomaly_detectors/detectors/9aef2360-90f7-11ef-954e-4313bff52b5f HTTP/1.1
Host: application-neo-signoff-01-c6k859wedzy26d2l24z9.us-east-1.opensearch-gamma.amazonaws.com
...
User-Agent: insomnia/9.3.3
Osd-Xsrf: nothing-to-see-here
Osd-Version: 2.17.0
Content-Length: 594
Connection: keep-alive

{"name":"testDetector04","description":"","indices":["opensearch_dashboards_sample_data_flights"],"filterQuery":{"match_all":{}},"uiMetadata":{"features":{"test":{"featureType":"simple_aggs","aggregationBy":"sum","aggregationOf":"FlightDelayMin"}},"filters":[]},"featureAttributes":[{"featureName":"test","featureEnabled":true,"importance":1,"aggregationQuery":{"test":{"sum":{"field":"FlightDelayMin",
"field":"FlightDelayMax"}}}}],"timeField":"timestamp","detectionInterval":{"period":{"interval":10,"unit":"Decade"}},

ChronoUnit: https://docs.oracle.com/javase/8/docs/api/index.html?java/time/temporal/ChronoUnit.html

Also tried Forever to see what would happen but that's not supported.

@jackiehanyang jackiehanyang added bug Something isn't working untriaged labels Oct 31, 2024
@jackiehanyang jackiehanyang changed the title [BUG] [BUG] Validating on unsupported ChronoUnit Oct 31, 2024
@krisfreedain
Copy link
Member

[Catch All Triage - 1, 2, 3, 4, 5]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants