Results 1 to 2 of 2

Thread: IceGrid app descriptor: reopen unnamed sets

  1. #1
    n2503v is offline Registered User
    Name: Alex Makarenko
    Organization: ACFR, University of Sydney
    Project: Orca
    Join Date
    Jun 2005
    Posts
    134

    IceGrid app descriptor: reopen unnamed sets

    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.

    Code:
    ...
    <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:

    Code:
        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
    Alex Makarenko
    Marathon Robotics
    project: multi-robot systems

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    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:

    Code:
        return new PropertySetDescriptorBuilder();
    This fix will be included in the next release!

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Properties.load clarification and saving property sets
    By Alexey Romanov in forum Help Center
    Replies: 2
    Last Post: 07-01-2010, 12:11 PM
  2. how get services descriptor?
    By Andrew in forum Help Center
    Replies: 1
    Last Post: 07-02-2008, 11:25 AM
  3. Replies: 6
    Last Post: 06-16-2007, 11:03 AM
  4. Icebox descriptor
    By xdm in forum Help Center
    Replies: 1
    Last Post: 01-24-2006, 11:21 AM
  5. IceStorm service descriptor
    By istvan in forum Help Center
    Replies: 4
    Last Post: 10-31-2003, 09:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •