centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
576 stars 240 forks source link

[API] Action GETPARAM does not handle all values listed in docs #6598

Closed C-Bam closed 4 years ago

C-Bam commented 5 years ago

BUG REPORT INFORMATION

Centreon version 2.8.25 Docs : https://documentation.centreon.com/docs/centreon-clapi/en/latest/objects/hosts.html#setparam

I assume GETPARAM can use the same parameters

Steps to reproduce the issue:

  1. centreon -u admin -p centreon -o HOST -a GETPARAM -v "test;vrml_image"
  2. centreon -u admin -p centreon -o HOST -a GETPARAM -v "test;normal_check_interval"
  3. centreon -u admin -p centreon -o HOST -a GETPARAM -v "test;checks_enabled"

Describe the results you received: Object not found:vrml_image Object not found:normal_check_interval Object not found:checks_enabled

Describe the results you expected:

  1. Whether some result
  2. or delete these object in the doc

Additional information you think important (e.g. issue happens only occasionally): These are the only three objects that returned an error. The other parameter, even though they might be null or empty, returns something.

C-Bam commented 5 years ago

BUG REPORT INFORMATION

Centreon version 2.8.25

Steps to reproduce the issue:

  1. centreon -u admin -p centreon -o HOST -a GETPARAM -v "test;name|name|alias"
  2. [...] values = "test;name|name|alias" 1 bis. centreon -u admin -p centreon -o HOST -a GETPARAM -v "test;name|alias" 2 bis [...] values = "test;name|alias"

Describe the results you received:

  1. Via centreon name : test name : test alias : Alias de test

  2. Via API name : test alias : Alias de test

  3. bis Via Centreon name : test alias : Alias de test

  4. bis Via API alias : Alias de test

Describe the results you expected:

  1. Via centreon name : test name : test alias : Alias de test

  2. Via API name : test name : test alias : Alias de test

  3. bis Via Centreon name : test alias : Alias de test

  4. bis Via API name : test alias : Alias de test

Additional information you think important (e.g. issue happens only occasionally): When using Web API, the first result is somehow escaped...