[MDEV-2352] LP:907894 - PASSWORD_QUESTION doesn't hide passwords in Release builds Created: 2011-12-22  Updated: 2014-06-20  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug907894.xml    

 Description   

I build the 5.5 version as
cmake -DCMAKE_BUILD_TYPE=Release
(no additional parameters)

Then I install the plugin 'two_questions' and create a user identified via it.
When I attempt to connect as this user using MySQL client, I get the prompt 'Password, please'. When I type in the password, it's displayed as a usual entry string.

It doesn't happen if I build with CMAKE_BUILD_TYPE=Debug – the password gets hidden as usual.

It seems to be only the matter of the MySQL client binary – with the same server and plugins, I get the expected behavior if I use the client binary from the debug build, and erroneous with the client binary from the release build.

Same problem happens on buildbot builds, tried on two different machines, both openSUSE.

Previous releases, e.g. 5.3, seem to work all right (tried the official release build and a buildbot build).

bzr version-info
revision-id: <email address hidden>
date: 2011-12-21 23:40:26 +0100
build-date: 2011-12-22 21:44:25 +0400
revno: 3187
branch-nick: maria-5.5



 Comments   
Comment by Elena Stepanova [ 2011-12-23 ]

Re: PASSWORD_QUESTION doesn't hide passwords in Release builds
With default CMAKE_BUILD_TYPE (RelWithDebInfo) the behavior is the same as with Release.

Comment by Elena Stepanova [ 2012-03-18 ]

Re: PASSWORD_QUESTION doesn't hide passwords in Release builds
Fix released with 5.5.20.

Comment by Rasmus Johansson (Inactive) [ 2012-03-18 ]

Launchpad bug id: 907894

Comment by niek dekker [ 2012-12-06 ]

I'm not sure if this is the same issue but a similar issue occurs in Mariadb 5.3.11 on FreeBSD.
$ mysql -uusername -p
$ Enter password:
(the password is displayed while it is being entered)

Version: mysql Ver 15.1 Distrib 5.3.11-MariaDB, for portbld-freebsd7.4 (amd64) using EditLine wrapper

Comment by Sergei Golubchik [ 2012-12-06 ]

it cannot be the same, as far as I remember, the fixed one was only for 5.5, caused by the new cmake based build system.

Generated at Thu Feb 08 06:41:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.