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

Fail the insert entity request with double property whose value is greater than MAX_VALUE (Issue #2387) #2388

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

blueww
Copy link
Member

@blueww blueww commented Apr 12, 2024

Fix : #2387

Thanks for contribution! Please go through following checklist before sending PR.

PR Branch Destination

  • For Azurite V3, please send PR to main branch.
  • For legacy Azurite V2, please send PR to legacy-dev branch.

Always Add Test Cases

Make sure test cases are added to cover the code change.

Add Change Log

Add change log for the code change in Upcoming Release section in ChangeLog.md.

Development Guideline

Please go to CONTRIBUTION.md for steps about setting up development environment and recommended Visual Studio Code extensions.

@@ -12,6 +12,10 @@ export class EdmDouble implements IEdmType {
// TODO: Support convert from string. parseFloat doesn't strictly checks non number chars
const val = Number.parseFloat(value);
if (!Number.isNaN(val)) {
if (val === Number.POSITIVE_INFINITY || val === Number.NEGATIVE_INFINITY)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment about the infinity you have tested as a history reference.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@blueww
Copy link
Member Author

blueww commented Apr 16, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@blueww blueww merged commit ad3114c into Azure:main Apr 16, 2024
35 checks passed
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.

Expect Azurite to fail when inserting doubles greater than MAX_VALUE but succeeds instead
2 participants