github-advanced-security[bot] commented on code in PR #13380:
URL: https://github.com/apache/cloudstack/pull/13380#discussion_r3376133854


##########
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade42210to42220.java:
##########
@@ -0,0 +1,49 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package com.cloud.upgrade.dao;
+
+import com.cloud.utils.exception.CloudRuntimeException;
+
+import java.io.InputStream;
+import java.sql.Connection;
+
+public class Upgrade42210to42220 extends DbUpgradeAbstractImpl implements 
DbUpgrade {
+
+    @Override
+    public String[] getUpgradableVersionRange() {
+        return new String[] {"4.22.1.0", "4.22.2.0"};

Review Comment:
   ## SonarCloud / IP addresses should not be hardcoded
   
   <!--SONAR_ISSUE_KEY:AZ6o6h5YBCpoD8zHzUlF-->Make sure using this hardcoded IP 
address is safe here. <p>See more on <a 
href="https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ6o6h5YBCpoD8zHzUlF&open=AZ6o6h5YBCpoD8zHzUlF&pullRequest=13380";>SonarQube
 Cloud</a></p>
   
   [Show more 
details](https://github.com/apache/cloudstack/security/code-scanning/158)



##########
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade42210to42220.java:
##########
@@ -0,0 +1,49 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package com.cloud.upgrade.dao;
+
+import com.cloud.utils.exception.CloudRuntimeException;
+
+import java.io.InputStream;
+import java.sql.Connection;
+
+public class Upgrade42210to42220 extends DbUpgradeAbstractImpl implements 
DbUpgrade {
+
+    @Override
+    public String[] getUpgradableVersionRange() {
+        return new String[] {"4.22.1.0", "4.22.2.0"};

Review Comment:
   ## SonarCloud / IP addresses should not be hardcoded
   
   <!--SONAR_ISSUE_KEY:AZ6o6h5YBCpoD8zHzUlG-->Make sure using this hardcoded IP 
address is safe here. <p>See more on <a 
href="https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ6o6h5YBCpoD8zHzUlG&open=AZ6o6h5YBCpoD8zHzUlG&pullRequest=13380";>SonarQube
 Cloud</a></p>
   
   [Show more 
details](https://github.com/apache/cloudstack/security/code-scanning/159)



##########
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade42210to42220.java:
##########
@@ -0,0 +1,49 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package com.cloud.upgrade.dao;
+
+import com.cloud.utils.exception.CloudRuntimeException;
+
+import java.io.InputStream;
+import java.sql.Connection;
+
+public class Upgrade42210to42220 extends DbUpgradeAbstractImpl implements 
DbUpgrade {
+
+    @Override
+    public String[] getUpgradableVersionRange() {
+        return new String[] {"4.22.1.0", "4.22.2.0"};
+    }
+
+    @Override
+    public String getUpgradedVersion() {
+        return "4.22.2.0";

Review Comment:
   ## SonarCloud / IP addresses should not be hardcoded
   
   <!--SONAR_ISSUE_KEY:AZ6o6h5YBCpoD8zHzUlH-->Make sure using this hardcoded IP 
address is safe here. <p>See more on <a 
href="https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ6o6h5YBCpoD8zHzUlH&open=AZ6o6h5YBCpoD8zHzUlH&pullRequest=13380";>SonarQube
 Cloud</a></p>
   
   [Show more 
details](https://github.com/apache/cloudstack/security/code-scanning/160)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to