• Gugli's avatar
    OF-1206: PrivacyLists on first run (#656) · 0d3b3a38
    Gugli authored
    * PrivacyLists on first run
    There are 2 instances of PrivacyListProvider (one in PrivacyListManager and the other in IQPrivacyHandler)
    
    The issue was : both instances have separate privacyListCount variables, which are filled during PrivacyListProvider constructor (== server startup).
    Thus, if at server startup the privacyListCount is 0, and one of the instances adds a PrivacyList, the other will never be informed and discard all changes and reads.
    
    Fix : turn PrivacyListProvider into a singleton.
    
    * PrivacyLists on first run
    There are 2 instances of PrivacyListProvider (one in PrivacyListManager and the other in IQPrivacyHandler)
    
    The issue was : both instances have separate privacyListCount variables, which are filled during PrivacyListProvider constructor (== server startup).
    Thus, if at server startup the privacyListCount is 0, and one of the instances adds a PrivacyList, the other will never be informed and discard all changes and reads.
    
    Fix : turn PrivacyListProvider into a singleton.
    0d3b3a38
Name
Last commit
Last update
..
DirectedPresence.java Loading commit data...
IQBindHandler.java Loading commit data...
IQEntityTimeHandler.java Loading commit data...
IQHandler.java Loading commit data...
IQLastActivityHandler.java Loading commit data...
IQMessageCarbonsHandler.java Loading commit data...
IQOfflineMessagesHandler.java Loading commit data...
IQPingHandler.java Loading commit data...
IQPrivacyHandler.java Loading commit data...
IQPrivateHandler.java Loading commit data...
IQRegisterHandler.java Loading commit data...
IQRegisterInfo.java Loading commit data...
IQRosterHandler.java Loading commit data...
IQSessionEstablishmentHandler.java Loading commit data...
IQSharedGroupHandler.java Loading commit data...
IQVersionHandler.java Loading commit data...
IQvCardHandler.java Loading commit data...
PresenceSubscribeHandler.java Loading commit data...
PresenceUpdateHandler.java Loading commit data...
package-info.java Loading commit data...