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

fix: add limits to delete api start and stop times #21369

Merged
merged 4 commits into from
May 5, 2021

Conversation

williamhbaker
Copy link
Contributor

@williamhbaker williamhbaker commented May 4, 2021

Closes #20775

Adds limits for the start and stop times that the /api/v2/delete endpoint will accept.

Since the storage engine uses unix time, allowing times that were otherwise valid timestamps outside of the range between 1677-09-21T00:12:43.145224194Z and 2262-04-11T23:47:16.854775807Z would result in unexpected behavior due to integer overflow.

If a valid timestamp outside of the acceptable range is provided, the API will return an error message to the client describing why.

@williamhbaker williamhbaker marked this pull request as ready for review May 4, 2021 20:34
@williamhbaker williamhbaker marked this pull request as draft May 5, 2021 12:38
@williamhbaker williamhbaker marked this pull request as ready for review May 5, 2021 14:16
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.

Delete API method should work for all allowed start and stop values
2 participants