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

    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

        1. image-2020-07-11-12-02-10-374.png
          99 kB
          Cuong Nguyen
        2. image-2020-07-11-11-55-10-841.png
          122 kB
          Cuong Nguyen
        3. image-2020-07-11-11-52-52-828.png
          126 kB
          Cuong Nguyen

        Issue Links

          Activity

            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