fr:section component started to spam the logs with an XPath error when upgraded Orbeon from 2022.1.4-pe to 2023.1.2-pe:
INFO XFormsServer - XPath error None.get while evaluating expression xxf:readonly(xxf:component-context()) or fr:is-readonly-mode() (evaluating variable view-mode)
INFO XFormsServer - XPath error None.get while evaluating expression fr:is-readonly-mode() or not(fr:component-param-value('open') = 'false') (evaluating variable initially-open)
When we extracted the function fr:is-readonly-mode() out and tested separately:
<xforms:output value="if(fr:is-readonly-mode()) then 'true' else 'false'">
<xforms:label>fr:is-readonly-mode() value: </xforms:label>
</xforms:output>
the results were:
2022.1.4-pe
no error, function crashes or at least does not work as no true/false value printed out
2023.1.2-pe
error:
INFO XFormsServer - XPath error None.get while evaluating expression if(fr:is-readonly-mode()) then 'true' else 'false' (computing value)
and no true/false value printed out
We are using plain XForms, not the Form Runner
We have set the property:
<property as="xs:string" name="oxf.xforms.function-library" value="org.orbeon.oxf.fr.library.FormRunnerFunctionLibrary"/>
Option 2?
Maybe is it possible to disable such info level error logs?