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

A Windows agent cannot use copy_from shortcuts due to backslashes and fails to bootstrap

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.0
    • Component/s: cf-serverd
    • Labels:
      None

      Description

      Discovered while bootstrapping Windows. Excerpt from the log on the server side:

      <pre>
      info: 192.168.123.114> Accepting connection
      verbose: 192.168.123.114> Setting socket timeout to 600 seconds.
      verbose: 192.168.123.114> Peeked nothing important in TCP stream, considering the protocol as TLS
      verbose: 192.168.123.114> TLS cipher negotiated: AES256-GCM-SHA384, TLSv1/SSLv3
      verbose: 192.168.123.114> TLS session established, checking trust...
      verbose: 192.168.123.114> Setting IDENTITY: USERNAME=root
      verbose: 192.168.123.114> Received public key compares equal to the one we have stored
      verbose: 192.168.123.114> SHA=98bd305d0a2bc855d255f2f8e7fc893372a2c8743cb1c56de718211b8c3592cc: Client is TRUSTED, public key MATCHES stored one.
      verbose: 192.168.123.114> Received: STAT masterfiles
      verbose: 192.168.123.114> Translated to: STAT /var/cfengine/masterfiles/
      verbose: 192.168.123.114> Received: OPENDIR masterfiles
      verbose: 192.168.123.114> Translated to: OPENDIR /var/cfengine/masterfiles/
      verbose: 192.168.123.114> Received: STAT masterfiles/promises.cf
      verbose: 192.168.123.114> Translated to: STAT /var/cfengine/masterfiles/promises.cf
      verbose: 192.168.123.114> Received: STAT masterfiles\promises.cf
      info: 192.168.123.114> Relative paths are not allowed: masterfiles\promises.cf
      verbose: 192.168.123.114> REFUSAL to (user=root,ip=192.168.123.114) of request: SYNCH 1435149025 STAT masterfiles\promises.cf
      verbose: 192.168.123.114> Received: STAT masterfiles/inventory
      verbose: 192.168.123.114> Translated to: STAT /var/cfengine/masterfiles/inventory/
      verbose: 192.168.123.114> Received: STAT masterfiles\inventory
      info: 192.168.123.114> Relative paths are not allowed: masterfiles\inventory
      verbose: 192.168.123.114> REFUSAL to (user=root,ip=192.168.123.114) of request: SYNCH 1435149025 STAT masterfiles\inventory
      verbose: 192.168.123.114> Received: STAT masterfiles/cf_promises_release_id
      verbose: 192.168.123.114> Translated to: STAT /var/cfengine/masterfiles/cf_promises_release_id
      verbose: 192.168.123.114> Received: STAT masterfiles\cf_promises_release_id
      info: 192.168.123.114> Relative paths are not allowed: masterfiles\cf_promises_release_id
      verbose: 192.168.123.114> REFUSAL to (user=root,ip=192.168.123.114) of request: SYNCH 1435149025 STAT masterfiles\cf_promises_release_id
      </pre>

      It seems that Windows adds backslashes when requesting files from the server. While it is tempting to fix what the agents sends in this case, we have to think about older versions which may send this as well. In that case we have no choice but to accept it on the server side.

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              a10040 Kristian Amlie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day, 5 hours
                  1d 5h
                  Remaining:
                  Not Specified
                  Logged:
                  Time Not Required
                  Not Specified