-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: Validate query timezone against IANA zones #11575
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
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4338e67
fix: Validate query timezone against IANA zones
ovr 47516ce
fix(api-gateway): normalize query timezone to canonical IANA name
ovr 6141a98
fix: apply timezone normalization across all API entry points
ovr 5f5d081
Update packages/cubejs-api-gateway/src/query.js
ovr 654610b
Update packages/cubejs-server-core/src/core/optionsValidate.ts
ovr ebec8d0
fix: fail fast on misconfigured timezone env vars
ovr eaf58eb
docs: drop timezone canonicalization notes from the env var reference
ovr 062b0e7
fix: tolerate empty entries in CUBEJS_SCHEDULED_REFRESH_TIMEZONES
ovr 12d107d
fix: use the sanitized options object returned by validateOptions
ovr 3a5784b
refactor: rename OptsHandler.assertOptions to validateOptions
ovr c82de0b
refactor: rename OptsHandler.validateOptions to sanitizeOptions
ovr bf6d42a
refactor(shared): make canonicalTimezone strict about argument types
ovr c08ded8
refactor(api-gateway): drop normalizeTimezone in favour of timezoneSc…
ovr 35f969f
feat(api-gateway): validate the whole /v1/cubesql body with a schema
ovr eef56da
refactor(shared): check for an empty timezone explicitly
ovr 3393f95
refactor(shared): reject an empty timezone instead of returning null
ovr 3b59610
docs: trim timezone comments that restate the code
ovr d60aa38
docs: document CUBEJS_SCHEDULED_REFRESH_TIMEZONES validation
ovr 7005ea1
docs: drop the empty-entries note from CUBEJS_SCHEDULED_REFRESH_TIMEZ…
ovr 79b1c43
fix(schema-compiler): canonicalize the query timezone in BaseQuery
ovr b4d5ef6
test(schema-compiler): drop the non-string timezone cases
ovr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.