Ticket #275 (closed defect: fixed)

Opened 7 months ago

Last modified 4 months ago

2 tests fail while building the Kauri source on Windows

Reported by: sdm Owned by: mpo
Priority: minor Milestone: 0.4
Component: < Upload Control Version: trunk
Keywords: Cc:

Description

When building the Kauri source with "mvn install" on Windows, 2 tests fail:

Failed tests:

testBasicUsage(org.kauriproject.rsrc.upload.FileUploadStoreTest?) testBasicUsageWithExpiry(org.kauriproject.rsrc.upload.FileUploadStoreTest?)

I assume this has something to do with the path where the uploads will be stored. See the attached stacktraces.

Attachments

org.kauriproject.rsrc.upload.FileUploadStoreTest.txt Download (5.0 KB) - added by sdm 7 months ago.
FileUploadStoreTest? fails when building Kauri source on Windows

Change History

Changed 7 months ago by sdm

FileUploadStoreTest? fails when building Kauri source on Windows

follow-up: ↓ 3   Changed 7 months ago by mpo

r1437 makes sure files are saved in the correct location now (before we were using  file://C:/** while file:/C:/** is what java's toURI is returning)

Apparently I'm still facing some weird error "WARNING: Unable to delete the existing file" on windows that doesn't occur on linux... requires more in depth debugging (maybe somebody with a full dev env on windows can give some info on what goes around in reslet's org.restlet.engine.local.FileClientHelper#handleFilePut? ?

in reply to: ↑ description   Changed 4 months ago by sdm

I've built Kauri r1528 successfully on Windows, all tests succeeded.

in reply to: ↑ 1   Changed 4 months ago by jgou

Replying to mpo:

Apparently I'm still facing some weird error "WARNING: Unable to delete the existing file" on windows that doesn't occur on linux... requires more in depth debugging (maybe somebody with a full dev env on windows can give some info on what goes around in reslet's !org.restlet.engine.local.FileClientHelper#handleFilePut? ?

It looks like this is fixed in restlet revision 6174 : "Added BioUtils.delete(...) methods to delete files and directories, recursively if needed, while working around Windows file locking issues."

  Changed 4 months ago by jgou

  • status changed from new to closed
  • resolution set to fixed

fixed by r1437 and the restlet upgrade #313

Add/Change #275 (2 tests fail while building the Kauri source on Windows)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.