Hi,

Regarding the broken download of a composite datatype, as i have commented
in https://trello.com/c/25OfmDa1, is due to the temporary folder
permissions, where the archived composite datatype is store for download,
are set to 0700 and is should be at least 0664, so that the web server can
read its contents.

The change I've made on our local instance of Galaxy is the following:
(We are using galaxy-dist release_2013.02.08)

lib/galaxy/datatypes/data.py

@@ -215,19 +215,21 @@
                 if (params.do_action == 'zip'):
                     # Can't use mkstemp - the file must not exist first
                     tmpd = tempfile.mkdtemp()
-                    tmpf = os.path.join( tmpd, 'library_download.' +
params.do_action )
+                    # Change permissions of temp folder
+                    os.chmod(tmpd, 0775)
+                    tmpf = os.path.join(tmpd, 'library_download.' +
params.do_action)

Kind regards,
Christos

-- 

Christos Kannas
Researcher
Ph.D Student

e-Health Laboratory <http://www.medinfo.cs.ucy.ac.cy/>
kannas.chris...@ucy.ac.cy
kannas.chris...@cs.ucy.ac.cy
chriskan...@gmail.com

Mob: (+357) 99530608
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to