Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Unable to bind e.g. A[0] if AA was also submitted #6469

Closed
dougbu opened this issue Jun 29, 2017 · 2 comments
Closed

Unable to bind e.g. A[0] if AA was also submitted #6469

dougbu opened this issue Jun 29, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@dougbu
Copy link
Member

dougbu commented Jun 29, 2017

Our value providers assume a candidate that's longer than a requested prefix is always greater than any potential match. This assumption is incorrect in some cases involving [ delimeters.

For example, with a <form></form> that submits data for A[0], AA[0], AA[1], and __RequestVerificationToken, A[0] will not be bound. This occurs because the submitted values are sorted AA[0], AA[1], A[0], then __RequestVerificationToken and AA[1] is the first candidate that's checked when looking for the A prefix.

The problem requires the binary search to land on just the right pivot e.g. A[0] is bound if a submission contains A[0], AA[0], and __RequestVerificationToken.

The problem should be specific to collections submitted with indexers.

@dougbu dougbu self-assigned this Jun 29, 2017
@dougbu dougbu added this to the 2.0.0 milestone Jun 29, 2017
@dougbu
Copy link
Member Author

dougbu commented Jun 29, 2017

Self-assigning and placing in current milestone based on discussion w/ @rynowak

@dougbu
Copy link
Member Author

dougbu commented Jun 30, 2017

f76a390

@dougbu dougbu closed this as completed Jun 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant