commit/galaxy-central: greg: Add fix from Bjorn Gruning for telling the user which file is the offender if an uploaded tarball gets rejected in the tool shed.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/5088185a5bca/ changeset: 5088185a5bca user: greg date: 2012-09-13 22:56:44 summary: Add fix from Bjorn Gruning for telling the user which file is the offender if an uploaded tarball gets rejected in the tool shed. affected #: 1 file diff -r 802413bc137b5701699b90ce97a2c4c8c6072679 -r 5088185a5bca723d5e58bb6672327e0310f86fbc lib/galaxy/webapps/community/controllers/upload.py --- a/lib/galaxy/webapps/community/controllers/upload.py +++ b/lib/galaxy/webapps/community/controllers/upload.py @@ -336,8 +336,8 @@ def __check_archive( self, archive ): for member in archive.getmembers(): # Allow regular files and directories only - if not ( member.isdir() or member.isfile() ): - message = "Uploaded archives can only include regular directories and files (no symbolic links, devices, etc)." + if not ( member.isdir() or member.isfile() or member.islnk() ): + message = "Uploaded archives can only include regular directories and files (no symbolic links, devices, etc). Offender: %s" % str( member ) return False, message for item in [ '.hg', '..', '/' ]: if member.name.startswith( item ): 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.
participants (1)
-
Bitbucket