NullReferenceException when bootstrapping against a non-existent bucket

Description

I noticed that if you attempt to bootstrap against a bucket that does not exist, then a NullReferenceException is thrown because parsing of the partial config returned fails.

{"rev":39,"nodesExt":[{"services":{"capi":8092,"capiSSL":18092,"indexAdmin":9100,"indexHttp":9102,"indexHttps":19102,"indexScan":9101,"indexStreamCatchup":9104,"indexStreamInit":9103,"indexStreamMaint":9105,"kv":11210,"kvSSL":11207,"mgmt":8091,"mgmtSSL":18091,"n1ql":8093,"n1qlSSL":18093,"projector":9999},"thisNode":true}],"clusterCapabilitiesVer":[1,0],"clusterCapabilities":{"n1ql":["enhancedPreparedStatements"]},"revEpoch":1}

The null reference exception happens when the BucketCapabilities is checked, but is null. This is confusing and a better exception should be thrown.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

Richard Ponton March 20, 2023 at 1:26 AM

Regression caused by

Jeffry Morris February 3, 2023 at 11:12 PM

EAccess server response is being ignored which needs to mapped to an auth or bucket not found error.

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

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created February 3, 2023 at 11:04 PM
Updated April 20, 2023 at 10:15 PM
Resolved April 20, 2023 at 10:15 PM
Instabug