From: <li...@us...> - 2008-11-17 16:56:47
|
Revision: 2260 http://cogkit.svn.sourceforge.net/cogkit/?rev=2260&view=rev Author: liuwt Date: 2008-11-17 16:56:39 +0000 (Mon, 17 Nov 2008) Log Message: ----------- Modified Paths: -------------- trunk/current/src/cog/modules/transfer-gui/src/org/globus/ogce/beans/filetransfer/gui/monitor/UrlCopyPanel.java Modified: trunk/current/src/cog/modules/transfer-gui/src/org/globus/ogce/beans/filetransfer/gui/monitor/UrlCopyPanel.java =================================================================== --- trunk/current/src/cog/modules/transfer-gui/src/org/globus/ogce/beans/filetransfer/gui/monitor/UrlCopyPanel.java 2008-11-05 20:58:10 UTC (rev 2259) +++ trunk/current/src/cog/modules/transfer-gui/src/org/globus/ogce/beans/filetransfer/gui/monitor/UrlCopyPanel.java 2008-11-17 16:56:39 UTC (rev 2260) @@ -112,6 +112,9 @@ } public boolean callUrlCopyTransfer(String jobid, String from, String to) { + System.out.println("from:" + from); + System.out.println("to:" + to); + GlobusURL froms = null; GlobusURL tos = null; UrlCopy c = null; @@ -123,12 +126,17 @@ logger.info("\nFrom = " + from); logger.info("\nTo = " + to); try { + froms = new GlobusURL(from); tos = new GlobusURL(to); c = new UrlCopy(); c.setSourceUrl(froms); c.setDestinationUrl(tos); - Authorization auth = new IdentityAuthorization(GridClient.subject1); + Authorization auth = null; + if (null != GridClient.subject1 && !"".equals(GridClient.subject1.trim())) { + auth = new IdentityAuthorization(GridClient.subject1); + } + c.setSourceAuthorization(auth); c.setDestinationAuthorization(auth); if (from.startsWith("gsiftp") && to.startsWith("gsiftp")) { @@ -157,6 +165,7 @@ null, null, "No errors"); c.copy(); + finalStatus = "Finished"; updateTransfer(currentJob, "Finished", null, null, "No errors"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |