Skip to content

MINIFICPP-2876 Manifest bundles invalid groupname - #2227

Open
martinzink wants to merge 8 commits into
mainfrom
MINIFICPP-2876
Open

MINIFICPP-2876 Manifest bundles invalid groupname#2227
martinzink wants to merge 8 commits into
mainfrom
MINIFICPP-2876

Conversation

@martinzink

Copy link
Copy Markdown
Member

Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.

In order to streamline the review of the contribution we ask you to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Does your PR title start with MINIFICPP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

  • Has your PR been rebased against the latest commit within the target branch (typically main)?

  • Is your initial contribution a single, squashed commit?

For code changes:

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE file?
  • If applicable, have you updated the NOTICE file?

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 GitHub Actions CI results for build issues and submit an update to your PR as soon as possible.

@martinzink martinzink added priority Review these first bug-fix c-api labels Aug 4, 2026
@martinzink
martinzink requested a lite review from Copilot August 4, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Comment thread extensions/standard-processors/tests/unit/ManifestTestHelper.h Outdated
@szaszm

szaszm commented Aug 4, 2026

Copy link
Copy Markdown
Member

I think copilot got overwhelmed by the 13k diff from the manifest change

Comment on lines +60 to +64
#ifdef MINIFI_EXTENSION_GROUP_NAME
auto group_name = MAKESTRING(MINIFI_EXTENSION_GROUP_NAME);
#else
auto group_name = "org.apache.nifi.minifi";
#endif

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can MINIFI_EXTENSION_GROUP_NAME be undefined? It may be better to force it to be defined, and generate a compile error otherwise.

Comment on lines +60 to +66
struct BundleCoordinate {
std::string name;
std::string group_name;
std::string version;

auto operator<=>(const BundleCoordinate& rhs) const = default;
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the previous name, BundleIdentifier, described the purpose of this struct better than BundleCoordinate. Can we revert to that?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BundleCoordinate supposedly comes from nifi.
BundleCoordinate: https://github.com/apache/nifi/blob/main/nifi-framework-api/src/main/java/org/apache/nifi/bundle/BundleCoordinate.java
There is also a Bundle type in nifi-api: https://github.com/apache/nifi-api/blob/main/src/main/java/org/apache/nifi/flow/Bundle.java
I don't have a strong preference either way, because I don't know how well or how directly all of this maps to the corresponding NiFi types.

Comment on lines +178 to +179
auto& bundle_components = minifi::ClassDescriptionRegistry::getMutableClassDescriptions().try_emplace(details, details).first->second;
bundle_components.addClassDescription(description, ResourceType::Processor);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This try_emplace(details, details).first->second looks a bit confusing, and it is repeated many times. Can we add a helper function so that we can write something like

Suggested change
auto& bundle_components = minifi::ClassDescriptionRegistry::getMutableClassDescriptions().try_emplace(details, details).first->second;
bundle_components.addClassDescription(description, ResourceType::Processor);
auto& bundle_components = minifi::ClassDescriptionRegistry::getMutableComponents(bundle_identifier);
bundle_components.addClassDescription(description, ResourceType::Processor);

instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants