Home Bug Reports

IceGrid app descriptor: reopen unnamed sets

n2503vn2503v Member Alex MakarenkoOrganization: ACFR, University of SydneyProject: Orca ✭✭✭
not sure if it's a bug or a feature but I was surprised by it.

The IceGrid descriptor parser allows re-opening of unnamed property sets but this leads to duplication of all the properties which were already loaded. The documentation does not seem to address this.
...
<server ...>
    ...
    <properties>
        <property name="Prop1" value="1"/>
    </properties>
    <properties>
        <property name="Prop2" value="2"/>
    </properties>
</server>
...

then calling ">>> server describe xxx" from icegridadmin shows this:
properties
    {
        Prop1 = `1'
        Prop1 = `1'
        Prop2 = `2'
    }

The duplicates of course disappear by the time this gets into the communicator properties, but still, doesn't seem right. :)

cheers, alex

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Alex,

    Thanks for the bug report!

    You can fix this problem by just replacing line 642 and 807 in src/IceGrid/DescriptorBuilder.cpp with the following:
        return new PropertySetDescriptorBuilder();
    

    This fix will be included in the next release!

    Cheers,
    Benoit.
Sign In or Register to comment.