Question: The Uploaded File Contains Inappropriate Content
0
gravatar for Erick Antezana
8.7 years ago by
Erick Antezana570 wrote:
Hi, It seems there is a (serious) bug while "Adding datasets" via the "Upload directory of files" (with or without copying the data into Galaxy (3545:2590120aed68), i.e. (un)tick the 'No' box) if the files are in ZIP format. Actually the files get erased from the filesystem. In the "information" column, I get: Job error (click name for more info) Then, after clicking on the file name: Information about 2010.fastq.zip Message: Uploaded by: erick@mydomain.com Date uploaded: 2010-03-23 Build: ? Miscellaneous information: The uploaded file contains inappropriate content error We have no problems with adding unzipped files... thanks, Erick
galaxy • 1.2k views
ADD COMMENTlink modified 8.7 years ago by Nate Coraor3.2k • written 8.7 years ago by Erick Antezana570
0
gravatar for Nate Coraor
8.7 years ago by
Nate Coraor3.2k
United States
Nate Coraor3.2k wrote:
Hi Erick, Thanks for reporting this, the deletion bug has been fixed in changeset 3556:8f6fa47b21c4. --nate
ADD COMMENTlink written 8.7 years ago by Nate Coraor3.2k
Hi Nate, I am afraid there is still an issue while trying to upload a directory of files (containing ZIP files). My ZIP files are not erased anymore from my "user_library_import_dir". But I still get the message: "Job error (click name for more info)" and after clicking on any of those files, I get: Message: Uploaded by: erick@mydomain.com Date uploaded: 2010-03-31 Build: ? Miscellaneous information: The uploaded file contains inappropriate content error Any suggestions? thanks in advance, Erick p.s. my changeset: 3560:4c95f1a101f1
ADD REPLYlink written 8.7 years ago by Erick Antezana570
I was able to get around this error by compressing files using gzip (to make .gz files) rather than a compression tool that resulted in .zip files. That being said, I have not tried to upload a directory of files. Best, Dan -- Dan Webster Ph.D. Student - Cancer Biology Laboratory of Paul Khavari CCSR BLDG, Rm 2150 269 Campus Drive Stanford, CA 94305 DanWebster@stanford.edu
ADD REPLYlink written 8.7 years ago by Dan Webster30
Hi Erick, Do you have tools that work directly with unmodified ZIP files? We don't have support for unpacking ZIP files during upload yet (this is the cause of the "inappropriate content" message), although work on this is in progress. Thanks, --nate
ADD REPLYlink written 8.7 years ago by Nate Coraor3.2k
Hi Nate, actually, I wanted to develop a couple of tools (to be further used from within a workflow) that could take as input a ZIP-formatted file and then process it with other tools. The motivation was due to two data providers that sent out data in ZIP :-( and not GZ... So we couldn't ask our users to UNZIP them (lots of files) and afterwards to GZIP them... Anyway, I manage to get a *compromise* with our Galaxy users and we will use GZ-formatted files (thus the ZIP ones will become GZ...). thanks, Erick
ADD REPLYlink written 8.7 years ago by Erick Antezana570
Hmm, this is a tricky case. I can think of three possible solutions. A "don't unzip" checkbox on the upload form (but this may be confusing to people who aren't aware that only a few specialized tools would be able to deal with the zipped files). Let Galaxy auto-detect the file type based on extension, if it's actually a zip file. Like Python eggs and self-extracting exes, it could be a zip file which has been renamed to some new extension. Force users to select the correct file type from the drop-down, or else if it's detected as a zip it's always unpacked. This is the way we did it for a few older tools. --nate
ADD REPLYlink written 8.7 years ago by Nate Coraor3.2k
Nate, I personally like the second scenario and 3rd one you'd proposed. Erick
ADD REPLYlink written 8.6 years ago by Erick Antezana570
Hi Erick, I've added these suggestions to an existing ticket here: http://bitbucket.org/galaxy/galaxy-central/issue/280/allow-zip-file- uploads --nate
ADD REPLYlink written 8.6 years ago by Nate Coraor3.2k
Hi, In my univers_wsgi.ini I have: # Can an admin user delete user accounts? allow_user_deletion = True But when I go the the admin web interface -> security -> manage users, I cannot delete users. There is only a "Create New User" button at the top and a "for selected users: Reset Password" button at the bottom... Am I missing something? Cheers, Pi Biomolecular Mass Spectrometry & Proteomics group Utrecht University Visiting address: H.R. Kruyt building room O607 Padualaan 8 3584 CH Utrecht The Netherlands Mail address: P.O. box 80.082 3508 TB Utrecht The Netherlands phone: +31 6 143 66 783 email: pieter.neerincx@gmail.com skype: pieter.online
ADD REPLYlink written 8.5 years ago by Pieter Neerincx360
Hello Peter, You'll need to uncomment the following lines in the ~/lib/galaxy/admin.py controller (lines 92-94 in the latest rev): #operations.append( grids.GridOperation( "Delete", condition=( lambda item: not item.deleted ), allow_multiple=True ) ) #operations.append( grids.GridOperation( "Undelete", condition=( lambda item: item.deleted and not item.purged ), allow_multiple=True ) ) #operations.append( grids.GridOperation( "Purge", condition=( lambda item: item.deleted and not item.purged ), allow_multiple=True ) ) The buttons will then be displayed on the manage users page in the admin view. Be aware that "deleting a user" only marks the user as deleted ( the deleted column is True ) in the database, keeping the state of everything associated with the user, allowing for undeletion if desired. If you want to go further, you can "Purge the user" after you have deleted their account. Here is what happens when you purge the user's account: # This method should only be called for a User that has previously been deleted. # We keep the User in the database ( marked as purged ), and stuff associated # with the user's private role in case we want the ability to unpurge the user # some time in the future. # Purging a deleted User deletes all of the following: # - History where user_id = User.id # - HistoryDatasetAssociation where history_id = History.id # - Dataset where HistoryDatasetAssociation.dataset_id = Dataset.id # - UserGroupAssociation where user_id == User.id # - UserRoleAssociation where user_id == User.id EXCEPT FOR THE PRIVATE ROLE # Purging Histories and Datasets must be handled via the cleanup_datasets.py script Again, the user's record remains in the database, but you can manually remove it and the private role using sql if you wish ( we do not advise this, but it's not hard to do). The user's private role is in the role table where the type is private and the name is the user's account / email address. Greg Von Kuster Galaxy Development Team greg@bx.psu.edu
ADD REPLYlink written 8.5 years ago by Greg Von Kuster810
Dear Greg, Thanks for the info! Is there any particular reason why this is disabled by default? I know Galaxy's philosophy is to save everything you do to make sure research is reproducible, but sometimes it can be really handy to delete stuff. I was trying to debug an issue with user account registration forms and therefore created dozens of accounts to see if the issue was gone after fiddling with my Galaxy and Apache configs. And I really really want to delete those phony test accounts as they clutter up the lists for sharing histories and workflows with colleagues :). To reduce the amount of manual maintenance work on a Galaxy install it would be nice if functionality for purging users would eventually be added to the cleanup scripts just like for the datasets and histories... Thanks, Pi mobile: +31 6 143 66 783 e-mail: pieter.neerincx@gmail.com skype: pieter.online
ADD REPLYlink written 8.5 years ago by Pieter Neerincx360
Hi Peter, This is disabled by default because: - it is very rarely needed ( if ever ), and probably should never be used in production instances - We have a TODO item in the code to add an enhancement to be able to check the configuration setting before displaying the buttons, but it is low on the priority list for now ( again, because this feature is questionable in production instances ). If debugging, it may be better to use a Galaxy instance that is not your production instance where the database can easily be dropped and recreated as necessary. We'll consider this ( e.g., if a user has been deleted for X number of days, they can be purged ). However, this will probably be fairly low on the priority list as well. Greg Von Kuster Galaxy Development Team greg@bx.psu.edu
ADD REPLYlink written 8.5 years ago by Greg Von Kuster810
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 169 users visited in the last hour