Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
[MRM-1793] trailing spaces not trimmed in upload form
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1543704 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
olamy committed Nov 20, 2013
1 parent 0d911a2 commit ee3ee0a
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -210,10 +210,16 @@ public List<FileMetadata> getSessionFileMetadatas()
return fileMetadatas == null ? Collections.<FileMetadata>emptyList() : fileMetadatas;
}

public Boolean save( String repositoryId, final String groupId, final String artifactId, String version,
String packaging, final boolean generatePom )
public Boolean save( String repositoryId, String groupId, String artifactId, String version,
String packaging, boolean generatePom )
throws ArchivaRestServiceException
{
repositoryId = StringUtils.trim( repositoryId );
groupId = StringUtils.trim( groupId );
artifactId = StringUtils.trim( artifactId );
version = StringUtils.trim( version );
packaging = StringUtils.trim( packaging );

List<FileMetadata> fileMetadatas = getSessionFilesList();
if ( fileMetadatas == null || fileMetadatas.isEmpty() )
{
Expand Down

0 comments on commit ee3ee0a

Please sign in to comment.