Icinga / icingaweb2-module-cube

Drill-down view for Icinga web 2 based on custom variables
GNU General Public License v2.0
45 stars 12 forks source link

Error in SQL syntax if custom var names contain dots #45

Closed u10t010 closed 4 years ago

u10t010 commented 5 years ago

Describe the bug

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.version, rollup.hosts_cnt, rollup.hosts_nok, rollup.hosts_unhandled_nok' at line 1, query was: SELECT rollup.os.version AS os.version.........

To Reproduce

  1. select a dimension including a dot "." the error occurs
  2. select a dimension without a dot (e.g. "check_command") everything is fine

Expected behavior

A dimension including a dot "." should also be possible

Screenshots

If applicable, add screenshots to help explain your problem.

Your Environment

Additional context

Thank you in advance for your kind help

nilmerg commented 5 years ago

Hi, thanks for the report.

I thought this is fixed since #38, are you sure you've installed v1.1.0 of the cube module?

u10t010 commented 5 years ago

Hello Johannes,

thank you for your reply.

Yes, i'm sure we've installed v1.1.0 of the cube module

root@........# icingacli module list MODULE VERSION STATE DESCRIPTION cube 1.1.0 enabled Cube for Icinga Web 2

Maybe the problem is the dot "." in our dimension-list like "cluster.name" or "os.version" etc. ?

kind regards u10t010