Icinga / icingaweb2-module-vspheredb

The easiest way to monitor a VMware vSphere environment.
https://icinga.com/docs/vsphere/latest
GNU General Public License v2.0
100 stars 34 forks source link

Creation of Invalid VSphereDB/ESX Login Entries possible #497

Open Wintermute2k6 opened 1 year ago

Wintermute2k6 commented 1 year ago

Expected Behavior

Creation of a VCenter or ESXi Host should have a form validation

Current Behavior

Current behaviour is that when you fill in the form fields that there is at least no syntactical validation if the URL includes a Space or Spaces .. This leads to non working login Credentials that could be easily avoided when the form fields or final string would be checked for those mistakes.

Possible Solution

At least an $new_str = str_replace(' ', '', $str); on the final saved string would improve this avoidable mistake.

Steps to Reproduce (for bugs)

  1. Create an invalid Vsphere Center entry. Screen1
  2. Look at the final invalid string that is used by the Module for the Login.

Screenshot 2023-01-19 at 12 38 25 Screenshot 2023-01-19 at 12 38 11

Your Environment

Non Specific on the Environment