[
https://issues.apache.org/jira/browse/NIFI-5558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16595869#comment-16595869
]
ASF GitHub Bot commented on NIFI-5558:
--------------------------------------
GitHub user alopresto opened a pull request:
https://github.com/apache/nifi/pull/2972
NIFI-5558 Fixed unit test to avoid contamination from System property…
… "nifi.properties.file.path" when creating test NiFiProperties instance.
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
### For all changes:
- [x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
- [x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number
you are trying to resolve? Pay particular attention to the hyphen "-" character.
- [x] Has your PR been rebased against the latest commit within the target
branch (typically master)?
- [x] Is your initial contribution a single, squashed commit?
### For code changes:
- [x] Have you ensured that the full suite of tests is executed via mvn
-Pcontrib-check clean install at the root nifi folder?
- [x] Have you written or updated unit tests to verify your changes?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the LICENSE file, including the main
LICENSE file under nifi-assembly?
- [ ] If applicable, have you updated the NOTICE file, including the main
NOTICE file found under nifi-assembly?
- [ ] If adding new Properties, have you added .displayName in addition to
.name (programmatic access) for each of the new properties?
### For documentation related changes:
- [ ] Have you ensured that format looks appropriate for the output in
which it is rendered?
### Note:
Please ensure that once the PR is submitted, you check travis-ci for build
issues and submit an update to your PR as soon as possible.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/alopresto/nifi NIFI-5558
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/2972.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 #2972
----
commit 9c9db43bd157d84ff58e9003f646c4ff38147f56
Author: Andy LoPresto <alopresto@...>
Date: 2018-08-29T02:53:45Z
NIFI-5558 Fixed unit test to avoid contamination from System property
"nifi.properties.file.path" when creating test NiFiProperties instance.
----
> NiFi build on master fails due to decryption issue
> --------------------------------------------------
>
> Key: NIFI-5558
> URL: https://issues.apache.org/jira/browse/NIFI-5558
> Project: Apache NiFi
> Issue Type: Bug
> Components: Tools and Build
> Environment: Apache Maven 3.5.0
> (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
> Java version: 1.8.0_141, vendor: Oracle Corporation
> Java home:
> /Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"
> Reporter: Joseph Witt
> Assignee: Andy LoPresto
> Priority: Major
>
> ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.39 s
> <<< FAILURE! - in
> org.apache.nifi.cluster.coordination.flow.PopularVoteFlowElectionFactoryBeanTest
> [ERROR]
> testGetObjectShouldPopulateDefaultSensitivePropsKeyIfEmpty(org.apache.nifi.cluster.coordination.flow.PopularVoteFlowElectionFactoryBeanTest)
> Time elapsed: 1.318 s <<< ERROR!
> org.apache.nifi.encrypt.EncryptionException:
> org.apache.nifi.encrypt.EncryptionException: Could not decrypt sensitive value
> at
> org.apache.nifi.cluster.coordination.flow.PopularVoteFlowElectionFactoryBeanTest.testGetObjectShouldPopulateDefaultSensitivePropsKeyIfEmpty(PopularVoteFlowElectionFactoryBeanTest.groovy:82)
> Caused by: org.apache.nifi.encrypt.EncryptionException: Could not decrypt
> sensitive value
> at
> org.apache.nifi.cluster.coordination.flow.PopularVoteFlowElectionFactoryBeanTest.testGetObjectShouldPopulateDefaultSensitivePropsKeyIfEmpty(PopularVoteFlowElectionFactoryBeanTest.groovy:82)
> Caused by: javax.crypto.BadPaddingException: pad block corrupted
> at
> org.apache.nifi.cluster.coordination.flow.PopularVoteFlowElectionFactoryBeanTest.testGetObjectShouldPopulateDefaultSensitivePropsKeyIfEmpty(PopularVoteFlowElectionFactoryBeanTest.groovy:82)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)