Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-1642

PrivateStorage can fail to persist items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.2.4, 4.3.0
    • Component/s: PubSub
    • Labels:
      None

      Description

      Steps to reproduce;

      1. Assuming two users, test1, test2, run the following code:
                final PrivateStorage privateStorage = XMPPServer.getInstance().getPrivateStorage();
        
                final Element data1 = new BaseElement("my-test-user-1");
                data1.addAttribute("my-value", UUID.randomUUID().toString());
        
                final Element data2 = new BaseElement("my-test-user-2");
                data2.addAttribute("my-value", UUID.randomUUID().toString());
        
                privateStorage.add("test1", data1);
                privateStorage.add("test2", data2);
        
      2. Examine the contents of ofPubSubItem;
        SELECT * FROM ofPubSubItem WHERE serviceID LIKE 'test%'
        

      Expected results

      • The database shows two rows of data, one for user test1 and one for test2.

      Actual results

      • The database shows one row of data, test2 only.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gdt Greg Thomas
              Reporter:
              gdt Greg Thomas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: