Univention Bugzilla – Bug 32570
UCR script handler inconsistently called
Last modified: 2018-04-14 13:29:32 CEST
python/univention/config_registry/handler.py:140#run_script() if value and len(value) > 1 and value[0] and value[1]: The handler is only called, when the variable is currently set to a non-empty string and is again set to a non-empty string, but not on None → "value" None → "" "" → "value" "" → None "value" → None "value" → None This doesn't match with what is described in the DeveloperReference and what I would expect: developer-reference/ucr/ucr.xml:486#ucr:script > A script template allows an external program to be called when specific <acronym>UCR</acronym> variables are changed. ... > It receives the list of changed variables on standard input.
Created attachment 5426 [details] Change implementation to always call script handler 1. UNTESTED 2. This is an API change, as the script is now called in more cases. 3. STDIN is not terminated by a \n anymore (lazy me)
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
This issue has been filed against UCS 3.2. UCS 3.2 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.