I commented out the lines below that looked inaccurate - basically it was trying to determine if path+filename was in allowed list but there isn’t logic in check availability to remove filename off of path if it was included - is this a design bug or a feature that I am not using correctly?
…
…
// *** Check if paths are on the allowed list ***
String strSourceFullPath = strSourceDirectory + System.getProperty(“file.separator”) + strFilename;
String strTargetFullPath = strTargetDirectory + System.getProperty(“file.separator”) + strFilename;
try
{
if (!checkPathValidity(strSourceDirectory, “read”))
// if (!checkPathValidity(strSourceFullPath, “read”))
{
throw new ServiceException(“Specified path is not on the read allowed list in the PSUtilities configuration file!”);
}
// if (!checkPathValidity(strTargetFullPath, “write”))
if (!checkPathValidity(strTargetDirectory, “write”))
…
…