Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2010

Properly validate number of arguments passed to the functions in FunctionParseNode#validate

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4.0
    • 4.5.0, 4.4.1
    • None
    • None

    Description

      Getting ArrayIndexOutOfBoundsException if we pass more arguments than actual number arguments. And if we pass lesser number of arguments then getting null values. It's not problem for built-in functions because we are using function name and number arguments combination key for lookup built-in functions in the the map. It's problem for UDF functions.

      Attachments

        Activity

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

          People

            rajeshbabu Rajeshbabu Chintaguntla
            rajeshbabu Rajeshbabu Chintaguntla
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment