Unable to upload gsp file to File Directory

AlOD
New Contributor II
New Contributor II

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

4 REPLIES 4

Darshanjain
Saviynt Employee
Saviynt Employee

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

AlOD
New Contributor II
New Contributor II

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

Manu269
All-Star
All-Star

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.

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

AlOD
New Contributor II
New Contributor II

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