The problem is described on the development forum . And here is a copy of the user's post:
I have been having some troubles with Privacy Lists : Tigase 5.0 is behaving like when a privacy list is set on a user only the first rule is processed and the following are ignored.
With this small change in tigase.xmpp.impl.JabberiqPrivacy, Tigase behaves much better for me :
In JabberIqPrivacy.java line 401, replace
if ( !type_matched) {
break;
} // end of if (!type_matched)
with
if ( !type_matched) {
continue;
} // end of if (!type_matched)
When the first rule not matching with the processed packet is met, the break is currently exiting the for loop on privacy-list rules.
However subsequent rules should also be tried and matched against the packet.
Replacing break with continue will simply jump to processing the next rule in the list.
The problem is described on the development forum . And here is a copy of the user's post:
I have been having some troubles with Privacy Lists : Tigase 5.0 is behaving like when a privacy list is set on a user only the first rule is processed and the following are ignored.
With this small change in tigase.xmpp.impl.JabberiqPrivacy, Tigase behaves much better for me :
In JabberIqPrivacy.java line 401, replace
if ( !type_matched) {
break;
} // end of if (!type_matched)
with
if ( !type_matched) {
continue;
} // end of if (!type_matched)
When the first rule not matching with the processed packet is met, the break is currently exiting the for loop on privacy-list rules.
However subsequent rules should also be tried and matched against the packet.
Replacing break with continue will simply jump to processing the next rule in the list.
Would you agree with that change ?