From 0bfa14ac56a7fe9007a43e0f758df35a31743778 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 08 Oct 2006 23:16:38 +0000
Subject: [PATCH] Update the LDAPCompare tool to replace references to fileURL for the assertion value to filePath, since the expected value is a path and not a URL.

---
 opends/src/server/org/opends/server/tools/LDAPCompare.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/LDAPCompare.java b/opends/src/server/org/opends/server/tools/LDAPCompare.java
index b123757..709ac39 100644
--- a/opends/src/server/org/opends/server/tools/LDAPCompare.java
+++ b/opends/src/server/org/opends/server/tools/LDAPCompare.java
@@ -423,7 +423,7 @@
       argParser.setUsageArgument(showUsage, out);
       controlStr = new StringArgument("controls", 'J', "controls", false,
                 false, true,
-                "{controloid[:criticality[:value|::b64value|:<fileurl]]}",
+                "{controloid[:criticality[:value|::b64value|:<filePath]]}",
                 null, null, MSGID_DESCRIPTION_CONTROLS);
       argParser.addArgument(controlStr);
       verbose = new BooleanArgument("verbose", 'v', "verbose",
@@ -519,7 +519,7 @@
       err.println("Invalid attribute string:" + attributeString);
       err.println("Attribute string must be in one of the " +
       "following forms: attribute:value, attribute::base64value, " +
-      "attribute:<fileURL" );
+      "attribute:<filePath" );
       return 1;
     }
     attributeType = attributeString.substring(0, idx);
@@ -545,8 +545,8 @@
         }
       } else if(nextChar == '<')
       {
-        String fileURL = remainder.substring(1, remainder.length());
-        attributeVal = LDAPToolUtils.readBytesFromFile(fileURL);
+        String filePath = remainder.substring(1, remainder.length());
+        attributeVal = LDAPToolUtils.readBytesFromFile(filePath);
       } else
       {
         attributeVal = remainder.getBytes();

--
Gitblit v1.10.0