Hi,
Got a possible product defect here. works under version 12.1.4, doesn't work under version 23.0.4, have not tried older versions yet
I created 3 users (user1, user2, adminuser), 2 groups (group1, group2), gave them individual virtual folders and set permissions on the groups alone, added adminuser to the 'admins' group and user1/user2 to their respective groups.
Set up two folder structures, root being a virtual folder structure and the second folder being a windows folder.
/USER1/user1
/USER2/user2
Set up a JSS process trigger, execute on upload with folder filter of /USER1/*
The process trigger is:
System.Threading.Thread.Sleep(5000) // Put in place only to show the actual exception
var srcFile=new File(event.virtualFolder)
srcFile.copyTo("/USER2/user2")
I set the 'Grant permissions of' dropdown to the 'adminuser'
Expected Behaviour:
user1 logs in and uploads a file
the process trigger executes and copies the file to User 2's directory
Actual Behaviour:
If user1 remains connected during the processing of the event trigger than the process works as per the expected.
If user1 disconnects straight after the file upload however, the process trigger fails with the following errors:
No file-read permission for /USER/User1 (VirtualFilePermissionException)
edit:
Our workaround at the moment is to use .NET ("System.IO.File.Copy" and "System.IO.File.CreateText") commands instead.