Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-75

Providing Ivy with a cyclic property value causes a StackOverflowError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3-RC1
    • Core
    • None

    Description

      When providing Ivy with a cyclic property value (typically a user error) Ivy will not detect this and cause a StackOverflowError. Though this is a user error, it is hard to detect the problem. Ivy can detect this behavior and have more specific error messages.

      Example:
      call
      <ivy:publish artifactspattern="/[artifact].[ext]"
      resolver="projects"
      pubrevision="--"
      status="integration"/>
      with set to

      Ivy will go into endless recursion in the method IvyPatternHelper.substituteVariables().

      Possible fix:
      throw a specific exception in IvyPatternHelper.substituteVariables() if 'val' equals 'pattern'

      Attachments

        Activity

          People

            xavier Xavier Hanin
            ricq Rick Riemer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: