import org.argeo.ArgeoException;
import org.argeo.eclipse.ui.specific.OpenFile;
import org.argeo.eclipse.ui.utils.CommandUtils;
import org.argeo.ArgeoException;
import org.argeo.eclipse.ui.specific.OpenFile;
import org.argeo.eclipse.ui.utils.CommandUtils;
+import org.argeo.jcr.JcrUtils;
import org.argeo.jcr.ui.explorer.JcrExplorerPlugin;
import org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem;
import org.eclipse.core.commands.AbstractHandler;
import org.argeo.jcr.ui.explorer.JcrExplorerPlugin;
import org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem;
import org.eclipse.core.commands.AbstractHandler;
node.getSession().exportSystemView(node.getPath(), fos,
true, false);
openGeneratedFile(tmpFile.getAbsolutePath(),
node.getSession().exportSystemView(node.getPath(), fos,
true, false);
openGeneratedFile(tmpFile.getAbsolutePath(),
- "Dump-" + node.getName() + dateVal + ".xml");
+ "Dump-" + JcrUtils.replaceInvalidChars(node.getName())+ "-" + dateVal + ".xml");
} catch (RepositoryException e) {
throw new ArgeoException(
"Unable to perform SystemExport on " + node, e);
} catch (RepositoryException e) {
throw new ArgeoException(
"Unable to perform SystemExport on " + node, e);