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

ExecuteScript gives syntax error with Jython when Module Directory is set

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.16.0
    • Extensions
    • None

    Description

      If the Module Directory property is set for a Jython script, the first line of the script is at the end of the last module (sys.path.append) line due to a missing newline, which can cause a syntax error. The workaround is to add a blank line as the first line of the script. NIFI-8625 introduced this regression.

      Attachments

        Issue Links

        Activity

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

          People

            mattyb149 Matt Burgess
            mattyb149 Matt Burgess
            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 - 50m
              50m

              Slack

                Issue deployment