Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3718

defined function does not handle qualified variable names correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.0.0
    • Component/s: DSL
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Platform Server 2014-12-17

      Description

      The defined function can answer if a variable is defined. If the variable name contains '::' it always returns false even if variable is defined.

      $x = 10
      notice defined('$::x')
      

      Or variations thereof referencing a variable in a class.

      There are no tests for this.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  henrik.lindberg Henrik Lindberg
                  QA Contact:
                  Eric Thompson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: