Browse files

rhbz870876 prevent null server url in config in zip package from gwt …

…document list
  • Loading branch information...
1 parent f20dc1f commit 2748bdff3ef03916f25c84d791d5f2af3b2dbc21 @davidmason davidmason committed Mar 25, 2013
View
5 zanata-war/src/main/java/org/zanata/webtrans/server/rpc/DownloadAllFilesHandler.java
@@ -28,6 +28,7 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.security.Identity;
+import org.zanata.ApplicationConfiguration;
import org.zanata.dao.ProjectIterationDAO;
import org.zanata.model.HProjectIteration;
import org.zanata.process.IterationZipFileBuildProcess;
@@ -50,6 +51,9 @@
public class DownloadAllFilesHandler extends AbstractActionHandler<DownloadAllFilesAction, DownloadAllFilesResult>
{
@In
+ private ApplicationConfiguration applicationConfiguration;
+
+ @In
private ZanataIdentity identity;
@In
@@ -80,6 +84,7 @@ public DownloadAllFilesResult execute(DownloadAllFilesAction action, ExecutionCo
processHandle.setLocaleId(action.getLocaleId());
processHandle.setInitiatingUserName(Identity.instance().getCredentials().getUsername());
processHandle.setOfflinePo(action.isOfflinePo());
+ processHandle.setServerPath(applicationConfiguration.getServerPath());
// Fire the zip file building process and wait until it is ready to
// return

0 comments on commit 2748bdf

Please sign in to comment.