pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: face151@windowslive.com
Subject: BUG #16857: Postgres Installer fails when user inserts slash / in password field
Date: Sun, 07 Feb 2021 20:25:09 +0000
Message-ID: <16857-9db27442522df8c4@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16857
Logged by:          Johnny Doughy
Email address:      face151@windowslive.com
PostgreSQL version: 13.1
Operating system:   Win 10 - 64bit
Description:        

When the installer "postgresql-13.1-1-windows-x64.exe" prompted me to enter
a password I entered ////

The installer then shows an error message at the end: "Problem running
post-install step. Installation may not complete correctly
The database cluster initialisation failed."

After checking the installer log file "install-postgresql.log" I found
this:

Script output:
 Input Error: Unknown option "////" specified.

On a new installation attempt, I then chose to enter a different password
with no slashes and the installer succeeded without any errors.

Also, the log file shows "initcluster.vbs ran to completion" which suggests
that "initcluster.vbs" failed the first time because of the given password
////.

My assumption is that the forwards slashes were seen as a path by windows
when the installer executes "initcluster.vbs" "username" "////"

Proposed solution:
Do not allow the user to enter a forward slash in the password field in the
installer.



Message-ID: <16857-9db27442522df8c4@postgresql.org>
Permalink:  ../16857-9db27442522df8c4@postgresql.org/
Also on:    postgresql.org/message-id/16857-9db27442522df8c4@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, face151@windowslive.com
  Subject: Re: BUG #16857: Postgres Installer fails when user inserts slash / in password field
  In-Reply-To: <16857-9db27442522df8c4@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox