cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl XMLDBSourceFactory.java
Date Sat, 25 Oct 2003 11:38:37 GMT
joerg       2003/10/25 04:38:37

  Modified:    src/blocks/xmldb/java/org/apache/cocoon/components/source/impl
                        XMLDBSourceFactory.java
  Log:
  fixed wrong XMLDB URL syntax check (fixes bug 24901, thanks to Martin Holz)
  
  Revision  Changes    Path
  1.3       +2 -2      cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSourceFactory.java
  
  Index: XMLDBSourceFactory.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSourceFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XMLDBSourceFactory.java	30 Apr 2003 01:50:02 -0000	1.2
  +++ XMLDBSourceFactory.java	25 Oct 2003 11:38:37 -0000	1.3
  @@ -147,7 +147,7 @@
           int start = location.indexOf(':') + 1;
           int end = location.indexOf(':', start);
   
  -        if (start == -1 || end == -1) {
  +        if (start == 0 || end == -1) {
               throw new MalformedURLException("Mispelled XML:DB URL. " +
                                               "The syntax is \"xmldb:databasetype://host/collection/resource\"");
           }
  
  
  

Mime
View raw message