Ticket #275 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years 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 (5.0 KB) - added by sdm 3 years ago.
FileUploadStoreTest? fails when building Kauri source on Windows

Change History

Changed 3 years ago by sdm

FileUploadStoreTest? fails when building Kauri source on Windows

comment:1 follow-up: ↓ 3 Changed 3 years 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? ?

comment:2 in reply to: ↑ description Changed 3 years ago by sdm

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

comment:3 in reply to: ↑ 1 Changed 3 years 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."

comment:4 Changed 3 years ago by jgou

  • Status changed from new to closed
  • Resolution set to fixed

fixed by r1437 and the restlet upgrade #313

Note: See TracTickets for help on using tickets.