10/06/2023 08:59 AM
Hi folks,
We are facing an issue while attempting to customize a gsp file and reupload the edited file to the file directory.
This occurs even if downloading the file, ensuring the name stays the same and reuploading to the application, Error Uploading File is received. I have attached the logs below, looks to me like it could be an app server permission issue.
Any help or direction on this would be appreciated.
Thanks,
Alan
---
Error logs;
2023-10-06 10:39:09,623 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - Enter uploadFileThroughActions
2023-10-06 10:39:09,623 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - params-uploadFileThroughActions: [fileName_Views:roles/azureADGroup/create.gsp, folderName:Views, uploadfile_Views:org.springframework.web.multipart.commons.CommonsMultipartFile@206bf088, controller:ecmConfig, action:uploadFileThroughActions]
2023-10-06 10:39:09,627 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - checking for filename
2023-10-06 10:39:09,627 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - filename valid = true
2023-10-06 10:39:09,627 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - origFileName = roles/azureADGroup/create.gsp
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - uploadedfileName = create.gsp
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - folderName = Views
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - checking uploadedfileName
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - checking for filename
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - filename valid = true
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - checking origFileName
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - checking gsp file..
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - Is SubDirectory : false
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - checking gsp file.. isValid = false
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - Enter checkFileDirectoryAccess
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - filepath = /opt/sharedappdrive/saviynt/Conf/syncversions/Views
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - checking for fullpath /opt/sharedappdrive/saviynt/Conf/syncversions/Views
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG sync.SyncFileVersionUtilityService - checking for fullpath /opt/sharedappdrive/saviynt/Conf/syncversions/Views isValid= true
2023-10-06 10:39:09,628 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - Adding /OPT/SHAREDAPPDRIVE/SAVIYNT/CONF/SYNCVERSIONS/ to sync versions
2023-10-06 10:39:09,629 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - allowedfolders = [/OPT/SHAREDAPPDRIVE/SAVIYNT/CONF/:, /OPT/SHAREDAPPDRIVE/SAVIYNT/IMPORT/EXTERNALJAR/:, /OPT/SHAREDAPPDRIVE/SAVIYNT/CONF/SYNCVERSIONS/:, /OPT/TOMCAT/APACHE-TOMCAT-8.5.29/WEBAPPS/ECM/WEB-INF/GRAILS-APP/VIEWS/:, /OPT/SHAREDAPPDRIVE/SAVIYNT/IMPORT/DATAFILES/:, /OPT/SHAREDAPPDRIVE/SAVIYNT/SECURITY/:, /OPT/SHAREDAPPDRIVE/SAVIYNT/IMPORT/SUCCESS/:, /OPT/SHAREDAPPDRIVE/SAVIYNT/IMPORT/FAIL/:, /OPT/SHAREDAPPDRIVE/SAVIYNT/IMPORT/SAV/:]
2023-10-06 10:39:09,630 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - fullPath = /opt/sharedappdrive/saviynt/Conf/syncversions/Views
2023-10-06 10:39:09,630 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - fullpath /opt/sharedappdrive/saviynt/Conf/syncversions/Views found in /OPT/SHAREDAPPDRIVE/SAVIYNT/CONF/
2023-10-06 10:39:09,630 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - fullpath /opt/sharedappdrive/saviynt/Conf/syncversions/Views found in /OPT/SHAREDAPPDRIVE/SAVIYNT/CONF/SYNCVERSIONS/
2023-10-06 10:39:09,630 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - Access allowed for /opt/sharedappdrive/saviynt/Conf/syncversions/Views = true
2023-10-06 10:39:09,630 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - Exit checkFileDirectoryAccess
2023-10-06 10:39:09,631 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - fileName = roles/azureADGroup/create.gsp , isrestrictedsystemFile = false
2023-10-06 10:39:09,631 [https-jsse-nio-443-exec-54] DEBUG domain.EcmConfigController - fileName = roles/azureADGroup/create.gsp , isrestrictedsystemFile = false
2023-10-06 10:39:13,496 [https-jsse-nio-443-exec-3] DEBUG auth.LoginController - Default Setup
Solved! Go to Solution.
10/09/2023 09:13 AM
Hi @AlOD
can you make sure while uploading the gsp page make sure the name matches exactly as it shown in the error.
Thanks
Darshan
10/09/2023 11:12 AM
Hi @Darshanjain,
I have double checked and the name matches the existing file, obviously I can't include the forward slash to give the absolute path.
Interestingly, I also see an error trying to download some of these views, though not all;
file.download.validation.access
I also see an "Upload Failed - Unauthorized Access when uploading the file" when uploading the unchanged file.
Thanks,
Alan
10/09/2023 09:03 PM
Hi @AlOD
We had a similar case and we ended up reaching out to Saviynt ops for resolution.
They have done the changes and restarted the server for changes to reflect.
10/10/2023 06:28 AM
Thanks @Manu269 ,
It had all the hallmarks of backend permission errors for me, but we can't open a ticket without first taking to the forums.
Appreciate your confirmation.
Thanks,
Alan