Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 203 forks source link

Import Source: choosing "HTTP proxy" in Source Type "REST API" causes deprecation notice #2889

Closed tectumopticum closed 1 month ago

tectumopticum commented 4 months ago

Expected Behavior

When setting the Proxy-Type in an import source of type "REST API" to "HTTP proxy" only the necessary fields "Proxy Address*", "Proxy Username" and "Proxy Password" should be visible.

Current Behavior

After choosing "HTTP proxy" the following message appears (in addition to the proxy-fields): Deprecated : strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/icingaweb2/modules/director/library/Director/Import/ImportSourceRestApi.php on line 276

Steps to Reproduce (for bugs)

Go to "Automation" -> Import source -> +Add -> Add a new source name, choose Source Type "REST API" -> choose "HTTP proxy"

Your Environment