You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.debug "${ValidJobDecider.class.canonicalName} Job determined to be valid for job path ${jobPath}"
60
+
returnJOB_VALID
75
61
}
76
-
catch(RepositoryException repoException) {
77
-
log.error "${RepositoryException.class.canonicalName} Something went wrong when accessing the repository at ${this.class.canonicalName} for job path ${jobPath}!"
78
-
log.error repoException.toString()
62
+
else {
63
+
log.warn "${jobPath} is not a valid job path. Make sure a parent is synched or created before this job is run"
79
64
returnJOB_INVALID
80
65
}
81
-
log.debug "${ValidJobDecider.class.canonicalName} Job determined to be valid for job path ${jobPath}"
//Get the parent's path (if applicable) and determine if it exists already
176
+
final parts = thePath.split('/')
177
+
//No parent, so nothing to worry about
178
+
if(parts.length <=2) returntrue
179
+
180
+
finalString parentPath = parts[0..-2].join('/')
181
+
try {
182
+
session.getNode(parentPath)
183
+
} catch(PathNotFoundException pathException) {
184
+
log.debug pathException.toString()
185
+
returnfalse
186
+
}
187
+
catch(RepositoryException repoException) {
188
+
log.error "${RepositoryException.class.canonicalName} Something went wrong when accessing the repository at ${this.class.canonicalName} for path ${pathBeingWritten}!"
0 commit comments