diff --git a/src/python/dm/common/utility/ldapLinuxPlatformUtility.py b/src/python/dm/common/utility/ldapLinuxPlatformUtility.py index ab16c71e8dc51f43640e9b8707fe8ebfb7ac4726..7e498d907de466571c1bd6c8a72a3e82334a2bce 100755 --- a/src/python/dm/common/utility/ldapLinuxPlatformUtility.py +++ b/src/python/dm/common/utility/ldapLinuxPlatformUtility.py @@ -223,5 +223,5 @@ class LdapLinuxPlatformUtility: if __name__ == '__main__': utility = LdapLinuxPlatformUtility('ldaps://dmid-vm.xray.aps.anl.gov:636', 'uid=dmadmin,ou=People,o=aps.anl.gov,dc=aps,dc=anl,dc=gov', '/tmp/ldapPassword', groupDnFormat='cn=%s,ou=DM,ou=Group,o=aps.anl.gov,dc=aps,dc=anl,dc=gov', minGidNumber=66000) - print utility.getGroupInfo(u'test24') + print utility.getGroupInfo(u'satija201510') diff --git a/src/python/dm/ds_web_service/service/impl/experimentManager.py b/src/python/dm/ds_web_service/service/impl/experimentManager.py index 3dbeda7efb0c8bc7c05c8512459bb6640cefac8d..2fc3d0af0f86ada1a44a0c3dccfc57e6d2b8f4bd 100755 --- a/src/python/dm/ds_web_service/service/impl/experimentManager.py +++ b/src/python/dm/ds_web_service/service/impl/experimentManager.py @@ -140,6 +140,11 @@ class ExperimentManager(Singleton): OsUtility.chmodPath(filePath, fileMode=self.FILE_PERMISSIONS_MODE) self.logger.debug('Changing group owner for %s to %s' % (filePath, experimentName)) self.platformUtility.changePathGroupOwner(filePath, experimentName) + dirPath = os.path.dirname(filePath) + if dirPath != storageDirectory: + self.logger.debug('Changing group owner for experiment subdirectory %s to %s' % (dirPath, experimentName)) + self.platformUtility.changePathGroupOwner(dirPath, experimentName) + self.logger.debug('Processing file %s' % filePath) self.fileProcessingManager.processFile(fileInfo) else: