You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2005/06/10 11:24:29 UTC

DO NOT REPLY [Bug 35307] New: - StringIndexOutOfBoundsException on Windows for FileUtil.catPath()

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35307>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35307

           Summary: StringIndexOutOfBoundsException on Windows for
                    FileUtil.catPath()
           Product: Lenya
           Version: Trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Default Publication
        AssignedTo: dev@lenya.apache.org
        ReportedBy: michael@wohlfart.net


I get a StringIndexOutOfBoundsException on Windows if I don't use absolute paths
in crawler-live.xconf. 
The Problem seems to be the call to
org.apache.avalon.excalibur.io.FileUtil.catPath(...) in
CrawlerConfiguration.resolvePath(...)

Example:
  Parameters in crawler-live.xconf:
  <uri-list src="../../work/search/lucene/uris.txt"/>

  calling the crawler on windows with the paramter
-Dcrawler.xconf=/E:/lenya_workspace/[...]/default/config/search/crawler-live.xconf

leads to the following variable values in CrawlerConfiguration.resolvePath()
configurationFilePath: 
E:\lenya_workspace\[...]\default\config\search\crawler-live.xconf
path: 
../../work/search/lucene/uris.txt

the call to FileUtil.catPath(configurationFilePath, path) causes a
StringIndexOutOfBoundsException maybe FileUtil is confused about the different
slashes, or maybe it can't cope with unix-Style paths on a windows machine :-/

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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