From b32bd4caaf6d61380e4800434563efb92672ada8 Mon Sep 17 00:00:00 2001 From: lujie Date: Sun, 13 Dec 2020 11:43:03 +0800 Subject: [PATCH 1/2] fixing CLOUDSTACK-10423 --- .../datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java b/plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java index 7675e946d52e..0cbf2c30191b 100644 --- a/plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java +++ b/plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java @@ -114,7 +114,7 @@ public DataStore initialize(Map dsInfos) { } } } catch (URISyntaxException e) { - throw new InvalidParameterValueException(url + " is not a valid uri"); + throw new InvalidParameterValueException(logString + " is not a valid uri. Note that the URL has been sanitized"); } if (dcId == null) { From bee96c1f43269b990518bc3b9577d44e6d8a3408 Mon Sep 17 00:00:00 2001 From: lujie Date: Sun, 13 Dec 2020 11:52:55 +0800 Subject: [PATCH 2/2] make the message clear --- .../datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java b/plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java index 0cbf2c30191b..d40ca2364d59 100644 --- a/plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java +++ b/plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackImageStoreLifeCycleImpl.java @@ -114,7 +114,7 @@ public DataStore initialize(Map dsInfos) { } } } catch (URISyntaxException e) { - throw new InvalidParameterValueException(logString + " is not a valid uri. Note that the URL has been sanitized"); + throw new InvalidParameterValueException(logString + " is not a valid uri. Note that the URL in this message has been sanitized"); } if (dcId == null) {