pgcli couldn't parse password that contained character '#'
- Langage dominant
- Python
- Étoiles
- 13.4k
- Forks
- 612
- Merge moyen
- 6 j 14 h
- PR mergées (30 j)
- 10
Description
I have a section that contains character '#' in ~/.pg_service.conf, like
```
[staging_instance]
host=XXXX
port=5432
dbname=postgres
user=root
password=abc#123
```
using psql could login successfully
```
~# psql service=staging_instance
psql (13.20, server 15.12)
WARNING: psql major version 13, server major version 15.
Some psql features might not work.
Type "help" for help.
postgres=>
```
but using pgcli still prompt input password
```
~# pgcli service=staging_instance
Password for root:
```
How could solve this?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduce the issue with the shown ~/.pg_service.conf entry and the `pgcli service=staging_instance` command, then compare its password parsing with the successful `psql service=staging_instance` path. Done means a password containing `#` is read from the service file and pgcli connects without prompting.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- postgresql, python
- Domaine
- cli, databases
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100