Bug #70496 please trim leading/trailing spaces when collecting input in the agent installer

Submitted: 3 Oct 2013 6:07 Modified: 4 Oct 2013 9:20
Reporter: Simon Mudd Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S4 (Feature request)
Version:3.0.1.2893 OS:Any
Assigned to: CPU Architecture:Any
Tags: windmill

[3 Oct 2013 6:07] Simon Mudd
Description:
During a new install I did:
...
Monitored Database Information

IMPORTANT: The Admin user account specified below requires special MySQL 
privileges.

Visit the following URL for more information:
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-agent-rights.html

MySQL Socket []:  /path/to/mysql.sock     # notice the leading space, added inadvertently

Admin User []: admin_user

Admin Password :
Re-enter Password :
Monitor Group []: monitor_group

Warning: The specified path  /path/to/mysql.sock is not a socket.

How to repeat:
See above.
It's easy to add a leading or trailing space and not notice and IMO it would be clearer if these are removed.
Even under windows it's confusing have a filename starting or ending with a space and this is usually a matter of miscopying the information from another source.

As the Warning message is not quoted the extra space is not very obvious. (it was a typo)
So please remove this and this issue will be cleared up.

It also seems useful to give feedback directly and not wait for all 5 entries (in this case) to be entered, and give the message earlier. I noticed this previously when making a mistake with the input.

Suggested fix:
So please remove leading and trailing white space characters from input.
[4 Oct 2013 9:20] MySQL Verification Team
Hello Simon,

Thank you for the feature request!

Thanks,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.062 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.