Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7629

Consume & Publish PubSub processors do not evaluate EL for property PROJECT_ID despite its setting

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11.1, 1.11.4
    • 1.12.0
    • Extensions
    • Nifi package for version 1.11.1 run on macOS Catalina 10.15.5

    Description

      When trying to set property Project ID (processor ConsumeGCPubSub, Bundle org.apache.nifi - nifi-gcp-nar) with an EL value

      Error message occurs as below

      The problem does not occur if using plain text value for the same property.

      Investigating this processor's source code, I found the cause for this issue (lastest source code at main branch): https://github.com/apache/nifi/blob/8d53f5d0c91a4e759ea7033bb4d0143ba96d2c21/nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/pubsub/ConsumeGCPubSub.java#L182
      The same problem happens with processor PublishGCPubSub:
      https://github.com/apache/nifi/blob/8d53f5d0c91a4e759ea7033bb4d0143ba96d2c21/nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/pubsub/PublishGCPubSub.java#L212

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ndc629 Cuong Nguyen
            ndc629 Cuong Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                Slack

                  Issue deployment