Icinga / icingaweb2-module-vspheredb

The easiest way to monitor a VMware vSphere environment.

Home Page:https://icinga.com/docs/vsphere/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creation of Invalid VSphereDB/ESX Login Entries possible

Wintermute2k6 opened this issue · comments

commented

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