pbm status fails when pbm user's password uses special symbols

Description

As the title says, test with pbm user like secret#sauce.

 

 

 

Here's a test run where everything else works except for pbm status command.

 

 

 

Tested on PBM v1.6.0

 

Environment

None

AFFECTED CS IDs

CS0021362

Smart Checklist

Activity

Sergey Pronin December 17, 2021 at 9:57 AM

Fixed the docs instead.

andrew.pogrebnoi October 28, 2021 at 3:32 PM
Edited

Hi .

Try to escape special symbols in the PBM connection string. E.g. `PBM_MONGODB_URI=mongodb://pbmuser:secret%23sauce@ps-mongo01:27017` it should work. 

Since this is a URL special characters like `@`, `#`, `/`, `:` inside username or password should be URL Encoded before passing to PBM

 

The as for the mongo-cli connection string: https://docs.mongodb.com/v5.0/reference/connection-string/

Won't Do

Details

Assignee

Reporter

Needs Doc

Yes

Time tracking

30m logged

Affects versions

Priority

Smart Checklist

Created October 26, 2021 at 6:50 AM
Updated March 5, 2024 at 7:00 PM
Resolved December 17, 2021 at 9:57 AM