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

Workspace.copy logic incorrectly copies references

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.6.0.Final
    • Fix Version/s: 3.7.0.Final
    • Component/s: JCR
    • Labels:
      None

      Description

      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);
          }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                Veskop86 Veselin Perovic
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: