[SERVER-23703] NumberDecimal accepts any random string Created: 13/Apr/16 Updated: 06/Jun/16 Resolved: 27/May/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.3.4 |
| Fix Version/s: | 3.3.8 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Bernie Hackett | Assignee: | Vincent Do |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Integrate+Tuning 15 (06/03/16) |
| Participants: |
| Description |
|
It seems like you can pass any string random string that doesn't match an IEEE 754 decimal to NumberDecimal and the shell will happily encode it as "NaN". Should it error if the value makes no sense?
|
| Comments |
| Comment by Githook User [ 27/May/16 ] |
|
Author: {u'username': u'vincentdo', u'name': u'Vincent Do', u'email': u'do.vincent@live.com'}Message: |