Project

Profile

Help

Bug #5577

closed

Expath file-to-file copy no longer creates a non-existent directory

Added by Johan Gheys over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
EXSLT extensions
Sprint/Milestone:
-
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

file-copy.zip (1.68 KB) file-copy.zip Johan Gheys, 2022-06-22 21:07
Actions #1

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().

Actions #2

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.

Actions #3

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.

Actions #4

Updated by Johan Gheys over 2 years ago

Thanks for the quick response

Actions #5

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

Also available in: Atom PDF