This is an automated email from the ASF dual-hosted git repository.

shwstppr pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new 658daef7158 utils: fix check for mrtalink url (#7636)
658daef7158 is described below

commit 658daef7158f23f73fc446db6ddb4320eb6d3463
Author: Abhishek Kumar <[email protected]>
AuthorDate: Mon Jun 19 12:23:22 2023 +0530

    utils: fix check for mrtalink url (#7636)
    
    Fixes incorrect condition while checking metalink URLs for accesibility
---
 utils/src/main/java/com/cloud/utils/UriUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/src/main/java/com/cloud/utils/UriUtils.java 
b/utils/src/main/java/com/cloud/utils/UriUtils.java
index 4370ba28ec2..11e62255fae 100644
--- a/utils/src/main/java/com/cloud/utils/UriUtils.java
+++ b/utils/src/main/java/com/cloud/utils/UriUtils.java
@@ -416,7 +416,7 @@ public class UriUtils {
                     List<String> urls = metalinkUrls.get("url");
                     boolean validUrl = false;
                     for (String u : urls) {
-                        if (url.endsWith("torrent")) {
+                        if (u.endsWith("torrent")) {
                             continue;
                         }
                         try {

Reply via email to