Actions
Bug #5577
closedExpath file-to-file copy no longer creates a non-existent directory
Start date:
2022-06-22
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:
Description
When upgrading from Saxon-EE 10.8 to 11.3 we get an error message when using file:copy() to copy a source file to a target file in a non-existent directory:
Error at char 10 in expression in xsl:sequence/@select on line 22 column 62 of batch.xslt:
file:io-error java.nio.file.NoSuchFileException:
C:\Data\MyProjects\upmb\upm-batch\src\test\resources\saxon\file-copy\input\test.txt ->
C:\Data\MyProjects\upmb\upm-batch\src\test\resources\saxon\file-copy\output\new-test.txt.
Files
Updated by Michael Kay over 2 years ago
Problem confirmed.
The internal method copyFile(File, File)
was rewritten in 11.x to use Files.copy()
.
Updated by Michael Kay over 2 years ago
Fixed on the 11.x branch. Need to apply to 12.x and to add a test case.
Updated by Michael Kay over 2 years ago
- Category set to EXSLT extensions
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Priority changed from Low to Normal
- Applies to branch trunk added
- Fix Committed on Branch 11, trunk added
Fixed on the 11.x and 12.x branches.
New test case file-copy-006 committed to the Saxonica fork of the expath test repository.
Updated by Debbie Lockett over 2 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 11.4 added
Bug fix applied in the Saxon 11.4 maintenance release.
Please register to edit this issue
Actions