You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by js...@apache.org on 2016/04/11 08:16:03 UTC

[1/2] nifi git commit: Revert "NIFI-1748 removed un-used test data"

Repository: nifi
Updated Branches:
  refs/heads/master 47cd9ff22 -> 5625686ea


Revert "NIFI-1748 removed un-used test data"

This reverts commit 47cd9ff22c3fe5657822779a4a0e03615e5b12de.


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/696a12e4
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/696a12e4
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/696a12e4

Branch: refs/heads/master
Commit: 696a12e4e796307e39afd6ed01b3e6ea35f5d501
Parents: 47cd9ff
Author: Joe Skora <js...@gmail.com>
Authored: Mon Apr 11 02:05:24 2016 -0400
Committer: Joe Skora <js...@gmail.com>
Committed: Mon Apr 11 02:05:24 2016 -0400

----------------------------------------------------------------------
 .../org/apache/nifi/processors/kafka/KafkaPublisherTest.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/696a12e4/nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-processors/src/test/java/org/apache/nifi/processors/kafka/KafkaPublisherTest.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-processors/src/test/java/org/apache/nifi/processors/kafka/KafkaPublisherTest.java b/nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-processors/src/test/java/org/apache/nifi/processors/kafka/KafkaPublisherTest.java
index 3e582a6..2abb51a 100644
--- a/nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-processors/src/test/java/org/apache/nifi/processors/kafka/KafkaPublisherTest.java
+++ b/nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-processors/src/test/java/org/apache/nifi/processors/kafka/KafkaPublisherTest.java
@@ -67,6 +67,12 @@ public class KafkaPublisherTest {
         kafkaLocal.stop();
     }
 
+    String test = "Khalid El Bakraoui rented an apartment in Brussels that was raided last week and both are suspected of having ties to "
+            + "the terror attacks in Paris in November, the source said. While Belgian officials say both brothers were suicide bombers, a U.S. "
+            + "official briefed earlier on preliminary evidence from the investigation says authorities are looking at the possibility that one of "
+            + "the airport explosions may have been caused by a bomb inside a suitcase and the other was a suicide bombing. But identifying the brothers "
+            + "should help spring the investigation forward, says Cedric Leighton, a CNN military analyst and the former deputy director for the Joint Chiefs of Staff.";
+
     @Test
     public void validateSuccessfulSendAsWhole() throws Exception {
         InputStream fis = new ByteArrayInputStream(sampleData.getBytes(StandardCharsets.UTF_8));


[2/2] nifi git commit: NIFI-1746 avoid exceptions if configuration dir is a symbolic link

Posted by js...@apache.org.
NIFI-1746 avoid exceptions if configuration dir is a symbolic link

Signed-off-by:  Joe Skora <js...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/5625686e
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/5625686e
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/5625686e

Branch: refs/heads/master
Commit: 5625686ea4abdd38cc168607157ac34622e7b105
Parents: 696a12e
Author: Mike Moser <mo...@apache.org>
Authored: Fri Apr 8 17:09:24 2016 -0400
Committer: Joe Skora <js...@gmail.com>
Committed: Mon Apr 11 02:05:48 2016 -0400

----------------------------------------------------------------------
 .../nifi/persistence/StandardXMLFlowConfigurationDAO.java       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/5625686e/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/persistence/StandardXMLFlowConfigurationDAO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/persistence/StandardXMLFlowConfigurationDAO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/persistence/StandardXMLFlowConfigurationDAO.java
index b93ae8a..b3a6090 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/persistence/StandardXMLFlowConfigurationDAO.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/persistence/StandardXMLFlowConfigurationDAO.java
@@ -53,7 +53,10 @@ public final class StandardXMLFlowConfigurationDAO implements FlowConfigurationD
     public StandardXMLFlowConfigurationDAO(final Path flowXml, final StringEncryptor encryptor) throws IOException {
         final File flowXmlFile = flowXml.toFile();
         if (!flowXmlFile.exists()) {
-            Files.createDirectories(flowXml.getParent());
+            // createDirectories would throw an exception if the directory exists but is a symbolic link
+            if (Files.notExists(flowXml.getParent())) {
+                Files.createDirectories(flowXml.getParent());
+            }
             Files.createFile(flowXml);
             //TODO: find a better solution. With Windows 7 and Java 7, Files.isWritable(source.getParent()) returns false, even when it should be true.
         } else if (!flowXmlFile.canRead() || !flowXmlFile.canWrite()) {