You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2020/08/06 16:00:51 UTC
[jackrabbit-filevault] branch master updated: JCRVLT-459 fix edit
operation
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
The following commit(s) were added to refs/heads/master by this push:
new eb1967c JCRVLT-459 fix edit operation
eb1967c is described below
commit eb1967cf0775d48d2793d2cec48a94952f43d66d
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Thu Aug 6 18:00:37 2020 +0200
JCRVLT-459 fix edit operation
---
.../org/apache/jackrabbit/vault/rcp/impl/RcpTaskManagerImpl.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/vault-rcp/src/main/java/org/apache/jackrabbit/vault/rcp/impl/RcpTaskManagerImpl.java b/vault-rcp/src/main/java/org/apache/jackrabbit/vault/rcp/impl/RcpTaskManagerImpl.java
index 0de2691..8158cdb 100644
--- a/vault-rcp/src/main/java/org/apache/jackrabbit/vault/rcp/impl/RcpTaskManagerImpl.java
+++ b/vault-rcp/src/main/java/org/apache/jackrabbit/vault/rcp/impl/RcpTaskManagerImpl.java
@@ -265,7 +265,6 @@ public class RcpTaskManagerImpl implements RcpTaskManager {
return task;
}
-
@Override
public RcpTask editTask(@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
@Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive) throws ConfigurationException {
@@ -273,7 +272,10 @@ public class RcpTaskManagerImpl implements RcpTaskManager {
if (oldTask == null) {
throw new IllegalArgumentException("No such task with id='" + taskId + "'");
}
- return new RcpTaskImpl(oldTask, src, connectionOptions, srcCreds, dst, excludes, srcFilter, recursive);
+ RcpTaskImpl newTask = new RcpTaskImpl(oldTask, src, connectionOptions, srcCreds, dst, excludes, srcFilter, recursive);
+ tasks.put(taskId, newTask);
+ persistTasks();
+ return newTask;
}
@Override