You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ms...@apache.org on 2001/08/01 03:15:07 UTC

cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods PropFindMethod.java

msmith      01/07/31 18:15:07

  Modified:    src/webdav/client/src/org/apache/webdav/lib/methods
                        PropFindMethod.java
  Log:
  '-' is a valid part of an XML name, according to the spec. Apparently,
  Character.isUnicodeIdentifierPart() doesn't think it can be part of a
  unicode identifier. So explicitly allow it as well.
  I don't think this is the 'right' solution (is there a reference somewhere
  describing _in detail_ what isUnicodeIdentifierPart() actually does?
  
  This allows the client to do a propfind on something with a - in the
  property name (e.g. current-user-privelege-set).
  
  Revision  Changes    Path
  1.27      +4 -4      jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PropFindMethod.java
  
  Index: PropFindMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PropFindMethod.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- PropFindMethod.java	2001/07/22 04:41:55	1.26
  +++ PropFindMethod.java	2001/08/01 01:15:07	1.27
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PropFindMethod.java,v 1.26 2001/07/22 04:41:55 remm Exp $
  - * $Revision: 1.26 $
  - * $Date: 2001/07/22 04:41:55 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PropFindMethod.java,v 1.27 2001/08/01 01:15:07 msmith Exp $
  + * $Revision: 1.27 $
  + * $Date: 2001/08/01 01:15:07 $
    *
    * ====================================================================
    *
  @@ -376,7 +376,7 @@
                   int i = 1;
                   while (!found && (i <= length)) {
                       char chr = propertyName.charAt(length - i);
  -                    if (!Character.isUnicodeIdentifierPart(chr)) {
  +                    if (!Character.isUnicodeIdentifierPart(chr) && chr != '-') {
                           found = true;
                       } else {
                           i++;