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 bu...@apache.org on 2002/04/18 15:47:36 UTC

DO NOT REPLY [Bug 8250] New: - Failed to write tmp file if the file path is very long

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8250

Failed to write tmp file if the file path is very long

           Summary: Failed to write tmp file if the file path is very long
           Product: Slide
           Version: Nightly
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WebDAV client
        AssignedTo: slide-dev@jakarta.apache.org
        ReportedBy: yzyu@yahoo.com


When a file path is very long, I got this:

     [java] Message:
temp/1019118623166-%2Fattic%2Fsts%2Fspider%2Fdoc%2Fsun02%2Fexport%2Fhome%2Fa
yu%2Ftmp_spider_test%2Fdoc%2Fatlas1%2Fgenericloader%2Fsample%2Ftemp%2Fexport
%2Fhome%2Fayu%2Ftmp_spider_test%2Fdoc%2Fatlas%2Folympus%2Fxdocs%2Fcomponents
%2Fworkpool%2Frmi_tutorial.xml.tmp (File name too long)
     [java] Class: java.io.FileNotFoundException
     [java] Stack trace:
     [java] java.io.FileNotFoundException:
temp/1019118623166-%2Fattic%2Fsts%2Fspider%2Fdoc%2Fsun02%2Fexport%2Fhome%2Fa
yu%2Ftmp_spider_test%2Fdoc%2Fatlas1%2Fgenericloader%2Fsample%2Ftemp%2Fexport
%2Fhome%2Fayu%2Ftmp_spider_test%2Fdoc%2Fatlas%2Folympus%2Fxdocs%2Fcomponents
%2Fworkpool%2Frmi_tutorial.xml.tmp (File name too long)
     [java]  at java.io.FileOutputStream.open(Native Method)
     [java]  at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
     [java]  at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
     [java]  at java.io.FileOutputStream.<init>(FileOutputStream.java:132)
     [java]  at
org.apache.commons.httpclient.methods.GetMethod.parseResponse(GetMethod.java
:393)
     [java]  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:669)
     [java]  at
org.apache.webdav.lib.WebdavResource.getMethodData(WebdavResource.java:2064)
     [java]  at
imtf.ch.atlas.spider.atticclient.FileManager.loadFile(FileManager.java:938)
     [java]  at
imtf.ch.atlas.spider.atticclient.FileManager.download(FileManager.java:271)


The webdavlib.jar API tries to write a tmp file on disk and finds the file
nams is too long.  I think to generate that kind of tmp file path could be
replaced by other ways to avoid this problem. Using MD5 to generate a string 
from the original file path could be a choice.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>