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

Regexp for String format specifier is not anchored at the end

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.2.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform Core
    • Story Points:
      1
    • Sprint:
      Platform Core 2017-08-08, Platform Core 2017-08-22
    • Method Found:
      Manual Test
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      When using String.new(), if format specifiers like %s, %p were followed by garbage the trailing garbage was accepted without error.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      Covered by spec tests

      Description

      When formatting strings in puppet and providing a format specifier such as "%s" or "%p", the regexp for validating that specifier is not anchored. Consequently, passing a specifier like "%strange" will succeed since the "%s" at the beginning fulfills the match.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                thomas.hallgren Thomas Hallgren
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: