Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-798

"FileMode" of WriteFile instruction expects octal, but it's undocumented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • master
    • None

    Description

      - type: WriteFile
        fileMode: 755
      

      The above example does not make the file executable and I have found it in a couple of platform configs. Since it does not work, I have seen the WriteFile command followed by "chmod" executions.

      I believe the correct way to write the mode is "0o755" but it's not mentioned in the documentation, and I haven't tested yet to see if it works. (EDIT: it does not work, it is not possible to set the FileMode to 0o755, the coin scheduler returns the error:

      Adjusting configurations returned error message: 'invalid literal for int() with base 10: '0o755'' 

      In pre-existing platform configs I also find modes of "493" and "420" which apparently are in decimal, but they really don't mean anything to people reading them, if they don't know the context.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tosaario Toni Saario
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes