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

mailalias always performs a "change" when value has a comma

    XMLWordPrintable

    Details

    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Story Points:
      0
    • Sprint:
      NW - 2020-02-19
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      do not use comma as mail alias record field separator when surrounded by double quotes

      Description

      I'm using puppet 2.7 and on one node, I have a mailalias resource to
      setup something for redmine like the following:

          mailalias {
              "redmine":
                  recipient =>
      '|/usr/share/redmine/extra/mail_handler/sub-mailhandler.py -e
      redmine@redmine.example.com -- /usr/share/redmine/extra/mail_handler/rdm-mailhandler.rb --url https://redmine.example.com --key somerandomalphanumstring --no-check-certificate --unknown-user accept --no-permission-check --allow-override project,tracker,category,priority,status';
          }
      

      puppet is always refreshing the alias for no reason. changing the value
      to the same thing.

      after doing some more testing, I found out that mailalias bugs in the above manner as soon as there is a comma in the recipient parameter value (e.g. with "...project" it's ok but with "...project," I start seeing the issue).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ciprian.badescu Ciprian Badescu
              Reporter:
              ciprian.badescu Ciprian Badescu
              QA Contact:
              Eric Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support