Feb 15 2022 05:12 AM - edited Feb 15 2022 06:40 AM
Hi,
I'm trying to package SAP and things have been going fairly well, but I've an issues that I'm working through and I think it might be relating to redirection. Any help to resolve the issue would be great. Basically, all writes by the app into c:\users\<username>\* are being redirected into the VFS.
My application performs as desired, but when a user tries, for example to save a file (eg PDF) or Print or Export (eg CSV or Excel file), things go wrong. It appears that the package virtualised the whole C drive.
For example, our expected behaviour is that when a user goes to save a file, they can save to their own documents folder, and it appears as if they do so, but it appears that the write is being virtualised. When I look in ProcMon, I can see lines showing documents has been virtualised.
I thought that might just be read operations, but saving a file to the documents folder got redirected. Basically, it looks like many accesses are. In this example, SAP thinks it saved the file to the local docs folder, then tries to open it and fails:
My json.config file fixups looks like this :
"processes": [
{
"executable": "^PsfLauncher.*"
},
{
"executable": ".*",
"fixups": [
{
"dll": "FileRedirectionFixup.dll",
"config": {
"redirectedPaths": {
"packageRelative": [
{
"base": "",
"patterns": [
".*\\.[eE][xX][eE]$",
".*\\.[dD][lL][lL]$",
".*\\.[tT][lL][bB]$",
".*\\.[oO][cC][xX]$",
".*\\.[cC][oO][mM]$",
".*\\.[fF][oO][nN]$",
".*\\.[tT][tT][cC]$",
".*\\.[tT][tT][fF]$",
".*\\.[zZ][iI][pP].*"
],
"isExclusion": true
},
{
"base": "",
"patterns": [
".*"
]
}
],
"packageDriveRelative": [],
"knownFolders": [
{
"id": "LocalAppData",
"relativePaths": [
{
"base": "",
"patterns": [
".*"
]
}
]
},
{
"id": "RoamingAppData",
"relativePaths": [
{
"base": "",
"patterns": [
".*"
]
}
]
},
{
"id": "ProgramFilesX86",
"relativePaths": [
{
"base": "",
"patterns": [
".*"
]
}
]
},
{
"id": "ProgramFilesCommonX86",
"relativePaths": [
{
"base": "",
"patterns": [
".*"
]
}
]
},
{
"id": "SystemX86",
"relativePaths": [
{
"base": "",
"patterns": [
".*"
]
}
]
},
{
"id": "Windows",
"relativePaths": [
{
"base": "",
"patterns": [
".*"
]
}
]
},
{
"id": "ProgramData",
"relativePaths": [
{
"base": "",
"patterns": [
".*"
]
}
]
},
{
"id": "{FD228CB7-AE11-4AE3-864C-16F3910AB8FE}",
"relativePaths": [
{
"base": "",
"patterns": [
".*"
]
}
]
}
]
}
}
},
My VFS tree does not include the users folder:
Would I need an exception for PDFs, CSVs, XLS? etc or have I done something wrong that all access seems to be redirected?
Thanks
David
Feb 15 2022 03:47 PM
Feb 15 2022 03:59 PM
Feb 15 2022 04:53 PM
Feb 15 2022 05:30 PM
Jan 04 2023 07:43 AM
@David Overton A late Follow-up on this thread: The new MfrFixup is designed as a replacement to the FileRedirectionFixup and would, by default, support redirection to the local documents folder, even when there are documents in the VFS.