remm 01/10/02 19:03:32
Modified: src/webdav/client/src/org/apache/webdav/lib/properties
AclProperty.java
Log:
- URLDecode the principal href.
Revision Changes Path
1.5 +9 -7
jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/properties/AclProperty.java
Index: AclProperty.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/properties/AclProperty.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AclProperty.java 2001/09/23 13:15:20 1.4
+++ AclProperty.java 2001/10/03 02:03:32 1.5
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/properties/AclProperty.java,v
1.4 2001/09/23 13:15:20 dirkv Exp $
- * $Revision: 1.4 $
- * $Date: 2001/09/23 13:15:20 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/properties/AclProperty.java,v
1.5 2001/10/03 02:03:32 remm Exp $
+ * $Revision: 1.5 $
+ * $Date: 2001/10/03 02:03:32 $
*
* ====================================================================
*
@@ -72,10 +72,12 @@
import org.apache.util.DOMUtils;
-import org.apache.webdav.lib.ResponseEntity;
+import org.apache.commons.httpclient.URLUtil;
+
+import org.apache.webdav.lib.Ace;
import org.apache.webdav.lib.BaseProperty;
import org.apache.webdav.lib.Privilege;
-import org.apache.webdav.lib.Ace;
+import org.apache.webdav.lib.ResponseEntity;
/**
* This interface models the <code><D:acl></code> property, which is
@@ -83,7 +85,7 @@
*
* @author Remy Maucherat
* @author Dirk Verbeeck
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class AclProperty extends BaseProperty {
@@ -157,7 +159,7 @@
Element href = DOMUtils.getFirstElement(child, "DAV:", "href");
if (href!=null)
{
- principal = DOMUtils.getTextValue(href);
+ principal = URLUtil.URLDecode(DOMUtils.getTextValue(href));
}
String[] types={"all","authenticated","unauthenticated","property","self"};