Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3949

Guice james server no longer starts on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • guice
    • None

    Description

      We did some changes to prevent privilege escalation with JMX but apparently file permission handling fails on windows.

      We can likely avoid setting permissions when on Windows.

      CF

      java.lang.UnsupportedOperationException: null
      at
      java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2168)
      at
      org.apache.james.modules.server.JMXServer.setPermissionOwnerOnly(JMXServer.java:202)
      at
      org.apache.james.modules.server.JMXServer.generateJMXPasswordFile(JMXServer.java:179)
      at
      org.apache.james.modules.server.JMXServer.generateJMXPasswordFileIfNeed(JMXServer.java:164)
      at
      org.apache.james.modules.server.JMXServer.doStart(JMXServer.java:123)
      at
      org.apache.james.modules.server.JMXServer.start(JMXServer.java:94)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m