bugCERTI - Bugs: bug #45160, Discovering already existing...

 
 

bug #45160: Discovering already existing objects on subscribe send actual class handle and not one that was subscribed

Submitter:  Timi Tuohenmaa <timit>
Submitted:  Thu 21 May 2015 10:56:23 AM UTC
   
 
Category:  CERTI Severity:  * 3 - Normal
Item Group:  HLA compliance error Status:  Fixed
Privacy:  Public Assigned to:  erk
Open/Closed:  Closed Release:  * 3.4.3
Reproducibility:  Every Time Fixed Release:  * 3.5.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 26 May 2015 11:30:11 AM UTC, comment #1: 

Hi Timi,

Thank you for the report and the fix.

I've just reviewed and pushed you fix to master:
To erk@git.sv.gnu.org:/srv/git/certi.git
   c54d525..3518e26  master -> master

Eric NOULARD <erk>
Group administrator
Thu 21 May 2015 10:56:23 AM UTC, original submission:  

Assume a situation where federation has objects of type ObjectRoot.Foo.Bar and a new federate joins and subscribes ObjectRoot.Foo . This federate then received discovery of objects of type ObjectRoot.Foo.Bar as it should, but ObjectClassHandle it receives is also ObjectRoot.Foo.Bar instead of ObjectRoot.Foo .

If this federate was already joined when ObjectRoot.Foo.Bar objects are created then ObjectClassHandle in discovery is correctly ObjectRoot.Foo .

So issue only occurs when objects already exist. I found that ObjectClass.cc has it's own logic for discovery messages when subscribed and it sets object class wrong. I attached a simple patch that works for me.

Timi Tuohenmaa <timit>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bussenot (Updated the item)
  • -email is unavailable- added by erk (Posted a comment)
  • -email is unavailable- added by timit (Submitted the item)
  •  

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-09 bussenot Open/ClosedOpen Closed
        Fixed ReleaseNextRelease 3.5.0
    2015-05-26 erk StatusNone Fixed
        Assigned toNone erk
        Fixed ReleaseUnknown NextRelease
    2015-05-21 timit Attached File- Added discovery_on_subscribe.patch, #34073

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code