You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2020/12/02 13:32:00 UTC
[syncope] branch master updated: Upgrading Tika
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new bcfde45 Upgrading Tika
bcfde45 is described below
commit bcfde45de2c433288e5400195247ddc353f351a9
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Wed Dec 2 14:29:18 2020 +0100
Upgrading Tika
---
.../propagation/AbstractPropagationTaskExecutor.java | 16 +++++-----------
pom.xml | 4 ++--
2 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
index 23b3b4c..3e3fe7d 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
@@ -234,28 +234,22 @@ public abstract class AbstractPropagationTaskExecutor implements PropagationTask
collect(Collectors.toMap(attr -> attr.getName().toUpperCase(), Function.identity()));
// Only compare attribute from beforeObj that are also being updated
- Set<String> skipAttrNames = new HashSet<>(originalAttrMap.keySet());
+ Set<String> skipAttrNames = originalAttrMap.keySet();
skipAttrNames.removeAll(updateAttrMap.keySet());
- skipAttrNames.forEach(originalAttrMap::remove);
- Set<Attribute> originalAttrs = new HashSet<>(originalAttrMap.values());
-
- if (originalAttrs.equals(attributes)) {
- LOG.debug("Don't need to propagate anything: {} is equal to {}", originalAttrs, attributes);
+ if (originalAttrMap.values().equals(attributes)) {
+ LOG.debug("Don't need to propagate anything: {} is equal to {}", originalAttrMap.values(), attributes);
result = AttributeUtil.getUidAttribute(attributes);
} else {
LOG.debug("Attributes that would be updated {}", attributes);
- Set<Attribute> strictlyModified =
- attributes.stream().filter(attr -> !originalAttrs.contains(attr)).collect(Collectors.toSet());
-
// 3. provision entry
- LOG.debug("Update {} on {}", strictlyModified, task.getResource().getKey());
+ LOG.debug("Update {} on {}", attributes, task.getResource().getKey());
result = connector.update(
beforeObj.getObjectClass(),
new Uid(beforeObj.getUid().getUidValue()),
- strictlyModified,
+ attributes,
null,
propagationAttempted);
}
diff --git a/pom.xml b/pom.xml
index 5fcd317..8b0fa67 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1120,7 +1120,7 @@ under the License.
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
- <version>1.24.1</version>
+ <version>1.25</version>
</dependency>
<dependency>
@@ -2710,7 +2710,7 @@ under the License.
<link>https://ci.apache.org/projects/wicket/apidocs/9.x/</link>
<link>https://commons.apache.org/proper/commons-lang/javadocs/api-release/</link>
<link>https://commons.apache.org/proper/commons-jexl/apidocs/</link>
- <link>https://tika.apache.org/1.24/api/</link>
+ <link>https://tika.apache.org/1.25/api/</link>
<link>https://docs.spring.io/spring-boot/docs/current/api/</link>
<link>https://docs.spring.io/spring/docs/current/javadoc-api/</link>
<link>https://docs.spring.io/spring-security/site/docs/current/api/</link>