This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-1daa8eb6-3882-472a-a682-880296d91bad XWIKI-22538 Open

AttachmentIT UI test cannot run on NTFS filesystems

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-268b62c5-3177-44e9-93ff-a1c0e2946933 Pierre Jeanjean created this issue on 01/Oct/24 16:06
 
Summary: AttachmentIT UI test cannot run on NTFS filesystems
Issue Type: cid:jira-generated-image-avatar-1daa8eb6-3882-472a-a682-880296d91bad Bug
Affects Versions: 16.8.0
Assignee: Unassigned
Components: Flamingo Skin
Created: 01/Oct/24 16:06
Environment: Windows
Priority: cid:jira-generated-image-static-critical-9897ac36-93cd-443c-a4a2-4553a295a1d1 Critical
Reporter: Pierre Jeanjean
Description:

One of the tests in AttachmentIT, `checkEscapingInAttachmentName`, checks that filenames are properly escaped and are not interpreted as HTML during the upload. The current implementation of this test creates a local file `<strong>EscapedAttachment.txt` and uploads it on the tested instance.

Such a filename is invalid on NTFS filesystems, which means that the test will surely failed when executed on Windows. We need a better way to send resources to the test container that do not rely on creating the file locally first.

See https://github.com/xwiki/xwiki-platform/pull/3524