[ 
https://issues.apache.org/jira/browse/NIFI-5574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603625#comment-16603625
 ] 

ASF GitHub Bot commented on NIFI-5574:
--------------------------------------

GitHub user jtstorck opened a pull request:

    https://github.com/apache/nifi/pull/2988

    NIFI-5574 Removed usage of Paths.get() due to TEST_RES_PATH being res…

    …olved to a string from a URI, which results in platform-specific path 
information (C:\) when tests are run on Windows.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jtstorck/nifi NIFI-5574

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/2988.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2988
    
----
commit c1a0ddca321a4ee7ae61ff853a9610d679ce28cc
Author: Jeff Storck <jtswork@...>
Date:   2018-09-04T21:36:20Z

    NIFI-5574 Removed usage of Paths.get() due to TEST_RES_PATH being resolved 
to a string from a URI, which results in platform-specific path information 
(C:\) when tests are run on Windows.

----


> Windows 'mvn clean install' fails on Groovy Tests
> -------------------------------------------------
>
>                 Key: NIFI-5574
>                 URL: https://issues.apache.org/jira/browse/NIFI-5574
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 1.7.1
>         Environment: Windows
>            Reporter: Nicholas Lewis
>            Assignee: Jeff Storck
>            Priority: Major
>              Labels: bootstrap, environment, test, windows
>
> Referenced in a recent [PR 
> discussion|https://github.com/apache/nifi/pull/2987#discussion_r215021556]:
>  
>  
> At the moment my windows installs fail on this NifiGroovyTest, where it tries 
> to generate and reference a linux style path. I saw a recent email discussion 
> that seemed to bring up a similar issue 
> [here|http://apache-nifi.1125220.n5.nabble.com/Build-Failure-for-project-nifi-toolkit-cli-td24180.html].
> _mvn -version_
> {code}
> Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 
> 2017-10-18T02:58:13-05:00)
> `Maven` home: C:\Program Files\apache-maven-3.5.2
> Java version: 1.8.0_151, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_151\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: `"windows"`
> {code}
> {code}
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running org.apache.nifi.NiFiGroovyTest
> [ERROR] Tests run: 8, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.667 
> s <<< FAILURE! - in org.apache.nifi.NiFiGroovyTest
> [ERROR] 
> testInitializePropertiesShouldSetBootstrapKeyFromFile(org.apache.nifi.NiFiGroovyTest)
>   Time elapsed: 0.495 s  <<< ERROR!
> java.nio.file.InvalidPathException: Illegal char <:> at index 2: 
> /C:/Users/nlewis/Desktop/Projects/NIFI/nickOfficialNifi/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-runtime/target/test-classes/\NiFiProperties\password-testInitializePropertiesShouldSetBootstrapKeyFromFile.txt
>         at 
> org.apache.nifi.NiFiGroovyTest.testInitializePropertiesShouldSetBootstrapKeyFromFile(NiFiGroovyTest.groovy:161)
> [ERROR] 
> testMainShouldHandleMalformedBootstrapKeyFromFile(org.apache.nifi.NiFiGroovyTest)
>   Time elapsed: 0.001 s  <<< ERROR!
> java.nio.file.InvalidPathException: Illegal char <:> at index 2: 
> /C:/Users/nlewis/Desktop/Projects/NIFI/nickOfficialNifi/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-runtime/target/test-classes/\NiFiProperties\password-testMainShouldHandleMalformedBootstrapKeyFromFile.txt
>         at 
> org.apache.nifi.NiFiGroovyTest.testMainShouldHandleMalformedBootstrapKeyFromFile(NiFiGroovyTest.groovy:141)
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR]   
> NiFiGroovyTest.testInitializePropertiesShouldSetBootstrapKeyFromFile:161 ▒ 
> InvalidPath
> [ERROR]   
> NiFiGroovyTest.testMainShouldHandleMalformedBootstrapKeyFromFile:141 ▒ 
> InvalidPath
> [INFO]
> [ERROR] Tests run: 8, Failures: 0, Errors: 2, Skipped: 0
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to