Please report new issues athttps://github.com/DOCGroup
The implementation of CosNotifyFilter::Filter::add_constraints() fails to set the value constraint_id in the return structure ConstraintInfoSeq. Therefore it is not possible to use get_constraints() and modify_constraints() on a filter, which both need valid constraint_ids. This is in TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp, function TAO_Notify_ETCL_Filter::add_constraints(). All tests in orbsvcs/tests/Notify never evaluate the return value of add_constraints() nor do they call get_constraints() or modify_constraints() on a filter, therefore the bug might have passed undetected by now.
A possible fix would be changing the argument of TAO_Notify_ETCL_Filter::add_constraints_i(const CosNotifyFilter::ConstraintInfoSeq&) to non-const and insert the constraint_id there, but I am not sure about the side-effects on modify_constraints().
please add a proposed patch as unified diff (diff -u)
reassing to reporter, please provide a patch and an automated regression test