summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-web-common/src
diff options
context:
space:
mode:
authorskygo <skygo@unknown>2013-03-13 10:42:32 +0000
committerskygo <skygo@unknown>2013-03-13 10:42:32 +0000
commit1af394618d7f66c1e6333432541e60d07ca7e233 (patch)
tree25635227544c3973e812d3b44d02ea75d9906d45 /archiva-modules/archiva-web/archiva-web-common/src
parent6fd297ec418da430bc35126490a0a8138e02386a (diff)
downloadarchiva-1af394618d7f66c1e6333432541e60d07ca7e233.tar.gz
archiva-1af394618d7f66c1e6333432541e60d07ca7e233.zip
MRM-1748
-use is(":checked") because attr("checked") was always returning not set. -adapt defaultfileupload boolean conversion to handle "1" as true value. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1455874 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common/src')
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java
index 6e6da12b5..a30bc6d2f 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java
@@ -125,8 +125,8 @@ public class DefaultFileUploadService
{
String classifier = getStringValue( multipartBody, "classifier" );
- boolean pomFile = BooleanUtils.toBoolean( getStringValue( multipartBody, "pomFile" ) );
-
+ boolean pomFile = BooleanUtils.toBoolean( getStringValue( multipartBody, "pomFile" ), "1", "" );
+
Attachment file = multipartBody.getAttachment( "files[]" );
//Content-Disposition: form-data; name="files[]"; filename="org.apache.karaf.features.command-2.2.2.jar"