Files
cacti/tests/fixtures/issue7135_data_query.xml
Thomas VincentandTheWitness fd111a1900 fix: reset loop-scoped $oid and $script_path when building the poller cache (#7135) (#7570)
* fix: reset loop-scoped $oid and $script_path when building the poller cache

Both output loops assigned inside a guard but read after it, so an output
with no mapping was cached against the previous output's OID or script.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: append the changelog entry at the end of the issue block

Matches .github/copilot-instructions.md, which appends rather than inserting
in numeric order.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test: use the full licence header on the new test files

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test: treat CACTI_PATH_LOG as a directory and pass ctor args to the statement class

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix: reset data-source output loop state

* test(poller): isolate SQL dialect in cache regression

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Co-authored-by: TheWitness <thewitness@cacti.net>
2026-08-06 17:33:22 -07:00

24 lines
759 B
XML

<query>
<name>Loop State Reset Fixture</name>
<description>Two output fields, only the first of which maps to an OID</description>
<oid_index>.1.3.6.1.4.1.9999.1.1.1</oid_index>
<index_order>withOid</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<withOid>
<name>Has An OID</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9999.1.1.10</oid>
</withOid>
<withoutOid>
<name>Has No OID</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
</withoutOid>
</fields>
</query>