box / box/box-salesforce-sdk

Wrong Assertion in BoxFolder.getChildren(Integer offset, Integer limitCount)

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Apex
Stars
61
Forks
51
PR merge metrics
No merged PRs in 30d

Description

When we call getChildren with offset and limitCount, in condition when the offset is close to the total items in a folder, it throws an assertion at LOC 593.

I have figured out the issue in a code and want to fix it.

Contributor guide

Open the contributing guide

Research direction

Start at BoxFolder.getChildren(Integer offset, Integer limitCount), especially LOC 593, and reproduce the assertion with an offset near the folder's total item count. Confirm the intended boundary behavior and add coverage for that case; done means the call no longer asserts for offsets near the end of the folder.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.