joerghoh / cq5-healthcheck

CQ5 Healthcheck code
Apache License 2.0
28 stars 15 forks source link

MBeanStatusProvider: long does not support != operator #27

Closed joerghoh closed 11 years ago

joerghoh commented 11 years ago

For long the != (not equal) operator is not suported.

This yields in messages like this:

18.12.2012 05:58:07.052 WARN [0:0:0:0:0:0:0:1%0 [1355839086978] GET /content/statuspage.html HTTP/1.1] de.joerghoh.cq5.healthcheck.impl.providers.MBeanStatusProvider Ignoring property (invalid level): InstalledBundles.WARN.!=.0

We really should provide code to make this possible. Also wenn an operator cannot be applied, the test should not be flagged as "OK".

mhaack commented 11 years ago

For the very long ;) I think we should be more flexible anyway. I suggest to go for parsing the boolean expressions using an appropriate library or regular expressions or the scripting support.

joerghoh commented 11 years ago

fixed the original issue.

@mhaack please create an appropriate isuse for it.