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