You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "exceptionfactory (via GitHub)" <gi...@apache.org> on 2024/01/02 15:24:09 UTC

[PR] NIFI-12524 Fixed null handling for auditing Connect Details [nifi]

exceptionfactory opened a new pull request, #8198:
URL: https://github.com/apache/nifi/pull/8198

   # Summary
   
   [NIFI-12524](https://issues.apache.org/jira/browse/NIFI-12524) Corrects handling of null property values in Flow Change Connect Details auditing objects.
   
   The original H2 database schema in NiFi 1.23 and required almost all columns to be populated, with the exception of the following fields in Connect Details:
   
   - Source Name
   - Destination Name
   - Relationship
   
   Changes include checking for null before attempting to set these properties on the Entity object, and unit tests to exercise both populated and null behavior.
   
   This corrects issues when migrating some existing Flow Configuration History from NiFi 1.23 and earlier. This pull request is targeted to the main branch, but is also ready for backporting to the support branch.
   
   # Tracking
   
   Please complete the following tracking steps prior to pull request creation.
   
   ### Issue Tracking
   
   - [X] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue created
   
   ### Pull Request Tracking
   
   - [X] Pull Request title starts with Apache NiFi Jira issue number, such as `NIFI-00000`
   - [X] Pull Request commit message starts with Apache NiFi Jira issue number, as such `NIFI-00000`
   
   ### Pull Request Formatting
   
   - [X] Pull Request based on current revision of the `main` branch
   - [X] Pull Request refers to a feature branch with one commit containing changes
   
   # Verification
   
   Please indicate the verification steps performed prior to pull request creation.
   
   ### Build
   
   - [X] Build completed using `mvn clean install -P contrib-check`
     - [X] JDK 21
   
   ### Licensing
   
   - [ ] New dependencies are compatible with the [Apache License 2.0](https://apache.org/licenses/LICENSE-2.0) according to the [License Policy](https://www.apache.org/legal/resolved.html)
   - [ ] New dependencies are documented in applicable `LICENSE` and `NOTICE` files
   
   ### Documentation
   
   - [ ] Documentation formatting appears as expected in rendered files
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-12524 Fixed null handling for auditing Connect Details [nifi]

Posted by "martinhynar (via GitHub)" <gi...@apache.org>.
martinhynar commented on PR #8198:
URL: https://github.com/apache/nifi/pull/8198#issuecomment-1877230495

   Hi, this just bit me in the leg. Is there a way to workaround this? I am going from 1.20.0 to 1.24.0. Or is it now impossible to upgrade?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-12524 Fixed null handling for auditing Connect Details [nifi]

Posted by "exceptionfactory (via GitHub)" <gi...@apache.org>.
exceptionfactory commented on PR #8198:
URL: https://github.com/apache/nifi/pull/8198#issuecomment-1879758782

   > Hi, this just bit me in the leg. Is there a way to workaround this? I am going from 1.20.0 to 1.24.0. Or is it now impossible to upgrade?
   > 
   > On test installation, I tried to remove all files from nifi.database.directory, NiFi started and flowfile was loaded correctly. Is it safe to wipe this folder?
   
   Unfortunately the only simple workaround at this time is to clear the contents of the database directory, as you attempted on the test installation. If you are not concerned about losing the Flow Configuration History information, clearing the database directory will allow NiFi to startup and create a new database with the new structure.
   
   NiFi 1.23 and earlier store the history in the database directory using the [H2 Database Engine](https://www.h2database.com/html/main.html), so it is possible to use custom code to export the historical information, but that is outside of what NiFi supports right now.
   
   Aside from that, the next release of NiFi will include this correction, and will perform the automated migration.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-12524 Fixed null handling for auditing Connect Details [nifi]

Posted by "mattyb149 (via GitHub)" <gi...@apache.org>.
mattyb149 commented on PR #8198:
URL: https://github.com/apache/nifi/pull/8198#issuecomment-1874417770

   +1 LGTM, thanks for the fix! Merging to support/nifi-1.x and main


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-12524 Fixed null handling for auditing Connect Details [nifi]

Posted by "mattyb149 (via GitHub)" <gi...@apache.org>.
mattyb149 closed pull request #8198: NIFI-12524 Fixed null handling for auditing Connect Details
URL: https://github.com/apache/nifi/pull/8198


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org