Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2927

Integration test fails on strange repository issue

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • None
    • 2.28.00
    • None
    • Sprint 77

    Description

      During remote changes and local loading of jcr nodes, the HST model loading suffers from the following:

      if (!session.nodeExists(getValueProvider().getPath())) {
      if (parent != null) {
      log.debug("Removing path '{}' from HstNode tree.", getValueProvider().getPath());
      parent.removeNode(getName());
      }
      return;
      }

      log.debug("Reload provider for : " + getValueProvider().getPath());
      Node jcrNode = session.getNode(getValueProvider().getPath());

      At the line here about, the HST sometimes get a PathNotFoundException : Very odd, of course, since if first passes if (!session.nodeExists(getValueProvider().getPath())) {

      To workaround this problem, use instead

      Node jcrNode = JcrUtils.getNodeIfExists(getValueProvider().getPath(), session);

      Attachments

        Activity

          People

            abanck Arent-Jan Banck (Inactive)
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: