Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1829

server access lists baulk when regex is in an array

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unconfirmed
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-serverd
    • Labels:
      None

      Description

      <pre>
      body common control
      {
      bundlesequence =>

      { "main", }

      ;
      }

      bundle agent main
      {
      reports:
      "main";
      }

      body server control
      {
      port => "5309";
      }

      bundle server access
      {
      vars:
      "a[promiser]" string => "/tmp";
      "a[admit]" slist =>

      { "saturn[01]\\.example\\.com" }

      ;

      access:
      "${a[promiser]}"
      admit => { @

      {a[admit]}

      };
      }
      </pre>

      Now run it with cf-serverd -vF

      <pre>
      redhat_6_3 redhat_s redhat_s_6 redhat_s_6_3 server verbose_mode x86_64
      2015-02-03T08:27:37-0500 verbose: /default/access/vars: Evaluating promise 'a[promiser]'
      2015-02-03T08:27:37-0500 verbose: /default/access/vars: Evaluating promise 'a[admit]'
      2015-02-03T08:27:37-0500 verbose: /default/access/access: Evaluating promise '${a[promiser]}'
      2015-02-03T08:27:37-0500 verbose: /default/access/vars: Evaluating promise 'a[promiser]'
      2015-02-03T08:27:37-0500 verbose: /default/access/vars: Evaluating promise 'a[admit]'
      2015-02-03T08:27:37-0500 verbose: /default/access/vars: Evaluating promise 'a[promiser]'
      2015-02-03T08:27:37-0500 verbose: /default/access/vars: Evaluating promise 'a[admit]'
      2015-02-03T08:27:37-0500 verbose: /default/access/vars: Evaluating promise 'a[promiser]'
      2015-02-03T08:27:37-0500 verbose: /default/access/vars: Evaluating promise 'a[admit]'
      2015-02-03T08:27:37-0500 verbose: Setting default port number to 5309
      2015-02-03T08:27:37-0500 verbose: /default/access/access: Evaluating promise '${a[promiser]}'
      2015-02-03T08:27:37-0500 critical: /default/access/access/'/tmp'[0]: StrList_Append: Success
      newatson@ltipc682:~/.cfagent/inputs$ echo $?
      255
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              neilhwatson Neil Watson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel