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

Joseph Witt commented on NIFI-5100:
-----------------------------------

[~ijokarumawak] you might want to close this Jira and instead collaborate with 
kevin who is working on a PR for it   https://github.com/apache/nifi/pull/2648

> Fix travis RAT check failure at nifi-toolkit-encrypt-config project
> -------------------------------------------------------------------
>
>                 Key: NIFI-5100
>                 URL: https://issues.apache.org/jira/browse/NIFI-5100
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>            Reporter: Koji Kawamura
>            Priority: Major
>
> After NIFI-4942 is merged, master branch has been failing due to following 
> RAT check error:
> {code}
> [INFO] --- apache-rat-plugin:0.12:check (default) @ 
> nifi-toolkit-encrypt-config ---
> [INFO] Enabled default license matchers.
> [INFO] Will parse SCM ignores for exclusions...
> [INFO] Finished adding exclusions from SCM ignore files.
> [INFO] 61 implicit excludes (use -debug for more details).
> [INFO] Exclude: nb-configuration.xml
> [INFO] Exclude: nbactions.xml
> [INFO] Exclude: DEPENDENCIES
> [INFO] Exclude: .github/PULL_REQUEST_TEMPLATE.md
> [INFO] Exclude: src/test/resources/scrypt.py
> [INFO] Exclude: src/test/resources/secure_hash.key
> [INFO] Exclude: src/test/resources/secure_hash_128.key
> [INFO] 92 resources included (use -debug for more details)
> [INFO] Rat check: Summary over all files. Unapproved: 1, unknown: 1, 
> generated: 0, approved: 88 licenses.
> {code}
> The project RAT check passes successfully if I run the contrib-check locally. 
> However, there's a difference in the output. Here is what I get when I run it 
> locally:
> {code}
> [INFO] 91 resources included (use -debug for more details)
> [INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, 
> generated: 0, approved: 88 licenses.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> {code}
> There is one more resources being checked when the test runs on Travis. I did 
> the test on Ubuntu then confirmed following file is created, and it produces 
> the RAT check error.
> {code}
> nifi-toolkit/nifi-toolkit-encrypt-config/secure_hash.key
> {code}
> Debugged further, I found following test creates the file:
> {code}
> mvn --projects nifi-toolkit/nifi-toolkit-encrypt-config -Pcontrib-check 
> -Dtest=org.apache.nifi.toolkit.encryptconfig.EncryptConfigMainTest#testShouldPerformFullOperationForNiFiPropertiesAndLoginIdentityProvidersAndAuthorizers
>  test
> {code}
> The test class should NOT create such file.



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

Reply via email to