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 lu...@apache.org on 2004/08/08 14:24:04 UTC

cvs commit: jakarta-slide/src/stores/org/apache/slide/store/txfile TxXMLFileDescriptorsStore.java

luetzkendorf    2004/08/08 05:24:04

  Modified:    src/stores/org/apache/slide/store/txfile
                        TxXMLFileDescriptorsStore.java
  Log:
  attempt to fix problems with files which differ only in case of letters
  
  Revision  Changes    Path
  1.18      +8 -3      jakarta-slide/src/stores/org/apache/slide/store/txfile/TxXMLFileDescriptorsStore.java
  
  Index: TxXMLFileDescriptorsStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/stores/org/apache/slide/store/txfile/TxXMLFileDescriptorsStore.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- TxXMLFileDescriptorsStore.java	28 Jul 2004 09:33:56 -0000	1.17
  +++ TxXMLFileDescriptorsStore.java	8 Aug 2004 12:24:03 -0000	1.18
  @@ -585,6 +585,11 @@
               xfd = new XMLResourceDescriptor(uri, this, rm, null, characterEncoding);
               xfd.load();
           }
  +        if (!xfd.getUri().equals(uri.toString())) {
  +           // this may happen with files systems that don't operate case sensitive
  +           // e.g. requested uri /files/test.doc but found /files/TEST.DOC
  +           throw new ObjectNotFoundException(uri);
  +        }
           return xfd;
       }
       
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org