Ticket #275 (closed defect: fixed)
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
Change History
Changed 3 years ago by sdm
- Attachment org.kauriproject.rsrc.upload.FileUploadStoreTest.txt added
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."
FileUploadStoreTest? fails when building Kauri source on Windows