Hi Thang,
https://sourceforge.net/p/opensaf/mailman/message/59267063/

I have updated to handle use case that you mentioned.

Best Regards,
Thien


---

**[tickets:#3392] imm: incorrect value when load empty value from xml file**

**Status:** review
**Milestone:** 5.25.09
**Created:** Wed Nov 26, 2025 07:07 AM UTC by Thien Minh Huynh
**Last Updated:** Mon Dec 01, 2025 05:19 AM UTC
**Owner:** Thien Minh Huynh


Expectation when create new object, default value assign if set NULL.
But immcfg -f <xml file\> does not work as expect if contain empty tag

Reproduce steps:
* Load xml file: immcfg -f <xml file below\>
* Expected value after loaded is default value (15)
    
~~~
<?xml version="1.0"?>
<imm:IMM-contents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="SAI-AIS-IMM-XSD-A.02.13.xsd" 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:imm="http://www.saforum.org/IMMSchema";>
  <class name="Test">
    <category>SA_CONFIG</category>
    <rdn>
      <name>test</name>
      <type>SA_STRING_T</type>
      <category>SA_CONFIG</category>
      <flag>SA_INITIALIZED</flag>
    </rdn>
    <attr>
      <name>limitTime</name>
      <type>SA_UINT32_T</type>
      <category>SA_CONFIG</category>
      <flag>SA_WRITABLE</flag>
      <default-value>15</default-value>
    </attr>
  </class>
  <object class="Test">
    <dn>test=1</dn>
    <attr>
      <name>limitTime</name>
      <value xsi:nil="true"/>
    </attr>
  </object>
</imm:IMM-contents>

~~~



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to