Author: tyrell Date: Thu Jun 19 09:29:50 2008 New Revision: 18487 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18487
Log: Fixing MASHUP-858 Modified: trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java Modified: trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java?rev=18487&r1=18486&r2=18487&view=diff ============================================================================== --- trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java (original) +++ trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java Thu Jun 19 09:29:50 2008 @@ -25,6 +25,7 @@ import org.apache.axis2.engine.AxisConfiguration; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.axis.encoding.Base64; import org.wso2.javascript.rhino.JavaScriptEngineConstants; import org.wso2.mashup.MashupConstants; import org.wso2.mashup.MashupFault; @@ -82,9 +83,7 @@ try { - modifiedSource = new String( - new sun.misc.BASE64Decoder().decodeBuffer(modifiedSource), - "UTF-8"); + modifiedSource = new String(Base64.decode(modifiedSource)); ServerManager serverManager = ServerManager.getInstance(); ConfigurationContext configContext = serverManager.configContext; @@ -135,9 +134,7 @@ try { - modifiedSource = new String( - new sun.misc.BASE64Decoder().decodeBuffer(modifiedSource), - "UTF-8"); + modifiedSource = new String(Base64.decode(modifiedSource)); //Extracting the real path from the registry path provided String[] pathContents = path.split("/"); _______________________________________________ Mashup-dev mailing list [email protected] http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev
