microsoft / microsoft/ObjectStoreProvider
getAll and getRange count needs to be smaller than 2^32 -1
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
if count is greater than 2^32, there will be error like this:
Failed to execute 'getAll' on 'IDBObjectStore': Value is outside the 'unsigned long' value range.
based on MDB doc, the supported count range is between 0 to 2^32 -1 (inclusive)
https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll#count
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the getAll and getRange entry points and compare their count handling with the supported 0 to 2^32 - 1 range described in the linked MDN documentation. Reproduce the reported error with an out-of-range count, then verify that the resulting behavior handles the documented limit without the unsigned-long range error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100