]> source.dussan.org Git - archiva.git/commitdiff
header transmit again true and false so toBoolean can be use with default behaviour
authorskygo <skygo@unknown>
Thu, 4 Apr 2013 17:12:32 +0000 (17:12 +0000)
committerskygo <skygo@unknown>
Thu, 4 Apr 2013 17:12:32 +0000 (17:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1464644 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java

index a30bc6d2f477ed58e3b2f8a63c6444aaba57c348..90f114ecc5680964e62351364bdeb12bc77c0bb1 100644 (file)
@@ -125,7 +125,9 @@ public class DefaultFileUploadService
         {
 
             String classifier = getStringValue( multipartBody, "classifier" );
-            boolean pomFile = BooleanUtils.toBoolean( getStringValue( multipartBody, "pomFile" ), "1", "" );
+            // skygo: http header form pomFile was once sending 1 for true and void for false
+            // leading to permanent false value for pomFile if using toBoolean(); use , "1", ""
+            boolean pomFile = BooleanUtils.toBoolean( getStringValue( multipartBody, "pomFile" ) );
             
             Attachment file = multipartBody.getAttachment( "files[]" );