commit/galaxy-central: greg: Allow public usernames in the tool shed to be a minimum of 3 characters.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/a691d69caa99/ Changeset: a691d69caa99 User: greg Date: 2013-07-07 01:41:10 Summary: Allow public usernames in the tool shed to be a minimum of 3 characters. Affected #: 2 files diff -r a13a9bce1c09319b0c18f287d17cbc2a7cd544ed -r a691d69caa99ec771062d5dd5312a516af5ff6c1 lib/galaxy/security/validate_user_input.py --- a/lib/galaxy/security/validate_user_input.py +++ b/lib/galaxy/security/validate_user_input.py @@ -23,8 +23,12 @@ return '' if user and user.username == publicname: return '' - if len( publicname ) < 4: - return "Public name must be at least 4 characters in length" + if trans.webapp.name == 'tool_shed': + if len( publicname ) < 3: + return "Public name must be at least 3 characters in length" + else: + if len( publicname ) < 4: + return "Public name must be at least 4 characters in length" if len( publicname ) > 255: return "Public name cannot be more than 255 characters in length" if not( VALID_PUBLICNAME_RE.match( publicname ) ): diff -r a13a9bce1c09319b0c18f287d17cbc2a7cd544ed -r a691d69caa99ec771062d5dd5312a516af5ff6c1 tools/data_source/upload.xml --- a/tools/data_source/upload.xml +++ b/tools/data_source/upload.xml @@ -33,7 +33,7 @@ </param><param name="async_datasets" type="hidden" value="None"/><upload_dataset name="files" title="Specify Files for Dataset" file_type_name="file_type" metadata_ref="files_metadata"> - <param name="file_data" type="file" size="30" label="File" ajax-upload="true" help="TIP: Due to browser limitations, uploading files larger than 2GB is guaranteed to fail. To upload large files, use the URL method (below) or FTP (if enabled by the site administrator)."> + <param name="file_data" type="file" size="30" label="File" ajax-upload="false" help="TIP: Due to browser limitations, uploading files larger than 2GB is guaranteed to fail. To upload large files, use the URL method (below) or FTP (if enabled by the site administrator)."><validator type="expression" message="You will need to reselect the file you specified (%s)." substitute_value_in_message="True">not ( ( isinstance( value, unicode ) or isinstance( value, str ) ) and value != "" )</validator><!-- use validator to post message to user about needing to reselect the file, since most browsers won't accept the value attribute for file inputs --></param><param name="url_paste" type="text" area="true" size="5x35" label="URL/Text" help="Here you may specify a list of URLs (one per line) or paste the contents of a file."/> 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)
-
commits-noreply@bitbucket.org