Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-504

TCK: DocumentViewImportTest does not call refresh after direct-to-workspace import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • test
    • None

    Description

      After performing a direct-to-workspace import, the test does not call refresh to ensure the transient layer doesn't contain stale data.

      Proposal: call refresh(false) after performing direct-to-workspace imports.

      — DocumentViewImportTest.java (revision 422074)
      +++ DocumentViewImportTest.java (working copy)
      @@ -106,6 +106,12 @@
      SAXException, NotExecutableException {

      importXML(target, createSimpleDocument(), uuidBehaviour, withWorkspace);
      +
      + if (withWorkspace)
      +

      { + session.refresh(false); + }
      +
      performTests();
      }

      @@ -127,6 +133,12 @@
      SAXException, IOException, NotExecutableException {

      importWithHandler(target, createSimpleDocument(), uuidBehaviour, withWorkspace);
      +
      + if (withWorkspace)
      + {+ session.refresh(false);+ }

      +
      performTests();
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            dpitfiel David Pitfield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: