Added a check to prevent an empty string root url from being accepted

This commit is contained in:
David Sulpy
2015-08-10 12:22:31 -05:00
parent dd69c7c28a
commit 04212d70dd

View File

@@ -215,7 +215,7 @@ def setAccessKey() {
def newAccessKey = request.JSON?.accessKey
def newGrokerRootUrl = request.JSON?.grokerRootUrl
if (newGrokerRootUrl && newGrokerRootUrl != state.grokerRootUrl) {
if (newGrokerRootUrl && newGrokerRootUrl != "" && newGrokerRootUrl != state.grokerRootUrl) {
state.grokerRootUrl = "$newGrokerRootUrl"
state.isBucketCreated = false
}