Guys,

I think it the problem of Windows reaction on "/"(s) in directory path for
the temp file.

I temporary fixed it inside of StoreContent(...) as:

String tempFileName1 = revisionUri + "-" + revisionNumber;
String tempFileName = null;
tempFileName = tempFileName1.replace('/', '.');

Valeriy Podkolzin


-----Original Message-----
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: Re: JDBC issue?


> hi,
>   I am running the WebdavServlet in the catalina server and i am using the
> java client Slide to connect to the server and execute the webdav methods
> like proppatch,propget and put.
> When i give  a command like
>         [LOCALHOST] /slide/files/ $  put run.bat sample.txt
> I get an internal server error on the client side and the following stack
> trace on the server side.The object /files/sample.txt does not initially
> exist in the store.
>
> the temp file name is : /files/sample.txt-1.0
> java.io.IOException: The system cannot find the path specified
>         at java.io.Win32FileSystem.createFileExclusively(Native Method)
>         at java.io.File.checkAndCreate(File.java:1159)
>         at java.io.File.createTempFile(File.java:1244)
>         at java.io.File.createTempFile(File.java:1281)
>         at
> slidestore.reference.JDBCContentStore.storeContent(JDBCContentStore.
> ava:587)

> I see the node /files/sample.txt being created in the store even though i
> get the exception.
> Is there something wrong with what i am doing or is this bug?

That problem was reported before, but unfortunately I couldn't reproduce it.

Any help solving it, or any additional info on the problem would be much
appreciated.

Remy

Reply via email to