2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/6e72b04fcb58/ Changeset: 6e72b04fcb58 User: abretaud Date: 2013-06-27 11:45:46 Summary: When creating the temp directory for dataset zip downloads, use the Galaxy user's umask and group on the directory. (same idea as 068a043) Affected #: 1 file diff -r 3fa9df444b4b81f94b1c42a033c685a6e23827be -r 6e72b04fcb582208a9a2bb57a942d8f2a582e94c lib/galaxy/datatypes/data.py --- a/lib/galaxy/datatypes/data.py +++ b/lib/galaxy/datatypes/data.py @@ -230,6 +230,7 @@ if (params.do_action == 'zip'): # Can't use mkstemp - the file must not exist first tmpd = tempfile.mkdtemp() + util.umask_fix_perms( tmpd, trans.app.config.umask, 0777, trans.app.config.gid ) tmpf = os.path.join( tmpd, 'library_download.' + params.do_action ) if ziptype == '64': archive = zipfile.ZipFile( tmpf, 'w', zipfile.ZIP_DEFLATED, True ) https://bitbucket.org/galaxy/galaxy-central/commits/446e2fee6b8f/ Changeset: 446e2fee6b8f User: dannon Date: 2013-08-07 20:38:31 Summary: Merged in abretaud/galaxy-central (pull request #191) When creating the temp directory for dataset zip downloads, use the Galaxy user's umask and group on the directory. Affected #: 1 file diff -r b8cf5887ad464707887aaf8381df19dbc67ac697 -r 446e2fee6b8f978472e67031f429aeda6cdfffdd lib/galaxy/datatypes/data.py --- a/lib/galaxy/datatypes/data.py +++ b/lib/galaxy/datatypes/data.py @@ -230,6 +230,7 @@ if (params.do_action == 'zip'): # Can't use mkstemp - the file must not exist first tmpd = tempfile.mkdtemp() + util.umask_fix_perms( tmpd, trans.app.config.umask, 0777, trans.app.config.gid ) tmpf = os.path.join( tmpd, 'library_download.' + params.do_action ) if ziptype == '64': archive = zipfile.ZipFile( tmpf, 'w', zipfile.ZIP_DEFLATED, True ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.