-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into list-inputs
* master: Recover from failed run creation more gracefully. Use flash[:alert] not flash[:error]. Add an alert flash to the test layout. [TAV-512] Fix overzealous file extension restrictions for inputs. Add tests for taverna credentials in env variable. Rework the testing of an empty log file for better testing.
- Loading branch information
Showing
9 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#------------------------------------------------------------------------------ | ||
# Copyright (c) 2014 The University of Manchester, UK. | ||
# | ||
# BSD Licenced. See LICENCE.rdoc for details. | ||
# | ||
# Taverna Player was developed in the BioVeL project, funded by the European | ||
# Commission 7th Framework Programme (FP7), through grant agreement | ||
# number 283359. | ||
# | ||
# Author: Robert Haines | ||
#------------------------------------------------------------------------------ | ||
|
||
# We need to override the default Paperclip spoofing detector because it does | ||
# not allow us to have arbitrary file extensions on files. | ||
# | ||
# See https://github.com/thoughtbot/paperclip/issues/1470 and many others. | ||
module Paperclip | ||
class MediaTypeSpoofDetector | ||
alias :original_spoofed? :spoofed? | ||
|
||
def spoofed? | ||
original_spoofed? ? !(calculated_content_type == "text/plain") : false | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a plain text file with a non-standard extension! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters