Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-320

log-file-permissions ignores group permissions

    XMLWordPrintable

    Details

    • Bug
    • Status: Done
    • Minor
    • Resolution: Fixed
    • 2.4.3, 2.4.4, 2.6.0
    • 2.6.0
    • None
    • Mac OS X 10.7.2 and several other platforms

      Description

      If the log-file-permissions property of a Log Publisher is set to 640, the log file will unfortunately have the permission 600.

      I tested out some combinations and found out that the group permission is always set to the "other" permission (the third digit).
      This means that the group permission is always wrong when the second and third digit in log-file-permissions are different.

      I looked through the sources and maybe I found out what causes this issue:
      In the FilePermission class, the setPermissions method prefers using the setUsingJava method instead of using the setUsingUNIX method. The setUsingJava method differentiates only between "owner" and "other" whereas the "group" permission is ignored.

      Would it be possible to prefer the setUsingUNIX method, if "group" and "other" permissions are different? Or is there another way to set the correct permissions for the log files?

        Attachments

          Issue Links

            Activity

              People

              cjr Chris Ridd
              manuelgaupp manuelgaupp
              Chris Ridd Chris Ridd
              Christophe Sovant Christophe Sovant
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: