PDA

View Full Version : PATCH: Trigger creation fails when there is a space in the server name


skeenan
22-05-2007, 21:22
When creating a new trigger in ZABBIX 1.3.8, it fails with "Expression [$expression] does not match to [server:key.func(param)]" when there is a space in the server name

root@ops01:/var/www/html/zabbix/include# diff triggers.inc.php*
173c173
< '^\{([0-9a-zA-Z\_\.[.-.]\$\ ]+)\:([]\[0-9a-zA-Z!\_\*\/\.\,\:\(\)\+ [.-.]\$]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$');
---
> '^\{([0-9a-zA-Z\_\.[.-.]\$]+)\:([]\[0-9a-zA-Z!\_\*\/\.\,\:\(\)\+ [.-.]\$]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$');

Alexei
22-05-2007, 21:50
Thanks for rerpoting this. It was already fixed in the latest SVN code today.