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

Submitted by:  Timi Tuohenmaa <timit>
Submitted on:  Thu 21 May 2015 10:56:23 AM UTC  
 
Category: CERTISeverity: 3 - Normal
Item Group: HLA compliance errorStatus: Fixed
Privacy: PublicAssigned to: Eric NOULARD <erk>
Open/Closed: ClosedRelease: 3.4.3
Reproducibility: Every TimeFixed Release: 3.5.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 09 Jun 2015 09:43:18 AM UTCbussenotOpen/ClosedOpen=>Closed
      Fixed ReleaseNextRelease=>3.5.0
    Tue 26 May 2015 11:30:11 AM UTCerkStatusNone=>Fixed
      Assigned toNone=>erk
      Fixed ReleaseUnknown=>NextRelease
    Thu 21 May 2015 10:56:23 AM UTCtimitAttached File-=>Added discovery_on_subscribe.patch, #34073

    Back to the top


    Powered by Savane 3.1-cleanup1