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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P0: Blocker P0: Blocker
    • None
    • master
    • None
    • 7f605f02c (master), c439ced85 (master)

      - 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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes