Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix importing a directory from user_library_import_dir
Fix the following traceback: ``` Traceback (most recent call last): File "/galaxy/lib/galaxy/web/framework/decorators.py", line 282, in decorator rval = func(self, trans, *args, **kwargs) File "/galaxy/lib/galaxy/webapps/galaxy/api/library_contents.py", line 250, in create status, output = self._upload_library_dataset(trans, library_id, real_folder_id, **payload) File "/galaxy/lib/galaxy/webapps/galaxy/api/library_contents.py", line 337, in _upload_library_dataset **kwd) File "/galaxy/lib/galaxy/actions/library.py", line 91, in _upload_dataset full_dir, import_dir_desc = validate_server_directory_upload(trans, server_dir) File "/galaxy/lib/galaxy/actions/library.py", line 48, in validate_server_directory_upload if import_dir_desc == 'user_library_import_dir' and safe_contains(import_dir, full_dir, whitelist=trans.app.config.user_library_import_symlink_whitelist, username=username): TypeError: safe_contains() got an unexpected keyword argument 'username' ``` Also add a test case to reproduce the fixed issue, which was introduced in commit f4442ff . Reported by @jhl667 .
- Loading branch information