-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: BSON
Use Case
As a... BSON user
I want... numeric constructors to throw on malformed input
So that... the value I input is the value that is stored
User Impact
- High
Acceptance Criteria
Implementation Requirements
- When a string is inputted into the Int32 constructor, return Int32.fromString(value)
- When a string is inputted into the Double constructor, return Double.fromString(value)
- Move Long.fromStringStrict functionality to Long.fromString
Testing Requirements
- Update constructor tests to reflect error cases
- Verify that perf remains within acceptable bounds
Documentation Requirements
- Update API for each constructor to reflect changes
- has to be done after
-
NODE-3660 Wrong input gets validated if converted with Int32, Long or Double
-
- Closed
-
-
NODE-5648 Add a Long.fromStringStrict method
-
- Closed
-
- is depended on by
-
NODE-5638 Bizarre behavior on invalid strings in Long.fromString
-
- Blocked
-
- related to
-
NODE-5638 Bizarre behavior on invalid strings in Long.fromString
-
- Blocked
-