Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2114

Workspace.copy logic incorrectly copies references

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.7.0.Final
    • 3.6.0.Final
    • JCR
    • None

      Same method is used to get strongReferences and weakReferences on org.modeshape.jcr.AbstractJcrNode.getAllReferences().
      Here is the code:

          protected PropertyIterator getAllReferences() throws RepositoryException {
              List<javax.jcr.Property> allReferences = new ArrayList<javax.jcr.Property>();
      
              for (PropertyIterator strongRefIterator = *getReferences()*; strongRefIterator.hasNext();) {
                  allReferences.add(strongRefIterator.nextProperty());
              }
      
              for (PropertyIterator weakRefIterator = *getReferences()*; weakRefIterator.hasNext();) {
                  allReferences.add(weakRefIterator.nextProperty());
              }
      
              return new JcrPropertyIterator(allReferences);
          }
      

              hchiorean Horia Chiorean (Inactive)
              Veskop86 Veselin Perovic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: