parsed.Index() might return wrong value

Description

parsed.Index() caches the wrong element.
Should the same element be requested twice, and caching be on, second time round it may return the wrong value.
Users accessing the same element of an an array twice might receive wrong results, which is unacceptable.

Components

Affects versions

Fix versions

Environment

None

Link to Log File, atop/blg, CBCollectInfo, Core dump

None

Release Notes Description

None

Activity

Show:

Ajay Pal Bhullar October 20, 2020 at 11:41 PM

closing as this issue was verified in 6.5.1,6.6.1, and 7.0.0 using the list of test cases here https://docs.google.com/spreadsheets/d/1e7H8T6VXAtIn9Ix_-DhdwDHqpB8wfxXks3Olv2VZBZA/edit#gid=0

Ajay Pal Bhullar October 20, 2020 at 10:37 PM

Ajay Pal Bhullar October 20, 2020 at 10:15 PM

Mihir Kamdar October 19, 2020 at 3:42 PM

Validated on 6.5.1-6311 using the tests listed in https://docs.google.com/spreadsheets/d/1e7H8T6VXAtIn9Ix_-DhdwDHqpB8wfxXks3Olv2VZBZA/edit#gid=0. Works fine.

CB robot October 15, 2020 at 10:25 PM

Build couchbase-server-6.5.1-6311 contains query commit ab512c2 with commit message:
https://couchbasecloud.atlassian.net/browse/MB-41308#icft=MB-41308 parsed.Index() caches wrong value

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Mihir Kamdar

Reporter

Is this a Regression?

Yes

Triage

Untriaged

Story Points

1

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created September 4, 2020 at 3:20 PM
Updated June 17, 2021 at 10:29 PM
Resolved October 15, 2020 at 10:35 PM
Instabug