dm Server
  1. dm Server
  2. DMS-456

startup.bat does not echo a localized 'y' as part of permissions setting

    Details

    • Type: Defect Defect
    • Status: Done Done
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M1
    • Fix Version/s: Sprint 5, 2.0.0.M3, 2.0.0.RELEASE
    • Component/s: None
    • Labels:
      None
    • Environment:

      German localized Windows XP

    • Story Points:
      3

      Description

      Spring DM Server 2 M1 does not work on a German Windows XP. Running startup.bat only results in an error message complaining that read access to jmxremote.password should be restricted.
      Changing
      echo y|cacls %CONFIG_DIR%\management\jmxremote.* /P %USERNAME%:F > nul
      to
      echo j|cacls %CONFIG_DIR%\management\jmxremote.* /P %USERNAME%:F > nul
      fixes the problem

      Note the "j" for "Ja" instead of "y" for "Yes".

      There are no Sub-Tasks for this issue.

        Activity

        Hide
        Joris Kuipers added a comment -

        Same issue exists on Dutch WinXP.

        BTW, in an actual production environment the server would run as a Windows service as either a dedicated user or as the Local System user and would in all likelihood not use the provided script. Maybe we should only document the ACL requirements for JMX (linking to http://java.sun.com/javase/6/docs/technotes/guides/management/security-windows.html) instead of trying to fix this in the startup script?

        Show
        Joris Kuipers added a comment - Same issue exists on Dutch WinXP. BTW, in an actual production environment the server would run as a Windows service as either a dedicated user or as the Local System user and would in all likelihood not use the provided script. Maybe we should only document the ACL requirements for JMX (linking to http://java.sun.com/javase/6/docs/technotes/guides/management/security-windows.html ) instead of trying to fix this in the startup script?
        Hide
        Julien Dubois added a comment -

        Same problem with Windows Vista in French.

        Show
        Julien Dubois added a comment - Same problem with Windows Vista in French.
        Hide
        Sebastian Lorenz added a comment -

        There seems to be another problem with this line:

        echo y|cacls %CONFIG_DIR%\management\jmxremote.* /P %USERNAME%:F > nul

        If you replace 'y' by the localized first character of 'yes' then the cacls command runs without problems. But you could still get the same error message. Because:

        1. My user name is sebastian. My notebook has the name NB7 in a domain named BUERO.
        2. If I install dm server then the jmxremote.* files always have BUERO/sebastian as the 'current owner of this item'.
        3. If I remove all permission entries on the jmxremote.* files and run startup.bat then the above line in the startup file gives NB7/sebastian full access to the jmxremote files. Since NB7/sebastian and BUERO/sebastian is not same this results in the same error message.

        If I manually grant full access to the 'current owner ' of the jmxremote.* files BUERO/sebastian and remove the line 'echo y|cacls ...' from the startup script, it works.

        Show
        Sebastian Lorenz added a comment - There seems to be another problem with this line: echo y|cacls %CONFIG_DIR%\management\jmxremote.* /P %USERNAME%:F > nul If you replace 'y' by the localized first character of 'yes' then the cacls command runs without problems. But you could still get the same error message. Because: 1. My user name is sebastian. My notebook has the name NB7 in a domain named BUERO. 2. If I install dm server then the jmxremote.* files always have BUERO/sebastian as the 'current owner of this item'. 3. If I remove all permission entries on the jmxremote.* files and run startup.bat then the above line in the startup file gives NB7/sebastian full access to the jmxremote files. Since NB7/sebastian and BUERO/sebastian is not same this results in the same error message. If I manually grant full access to the 'current owner ' of the jmxremote.* files BUERO/sebastian and remove the line 'echo y|cacls ...' from the startup script, it works.
        Hide
        Flavio Donzé added a comment -

        Here it says that this issue is resolved in version 2.0.0.M3.
        I'm using 2.0.0.M4 and get the same error message on startup.

        Show
        Flavio Donzé added a comment - Here it says that this issue is resolved in version 2.0.0.M3. I'm using 2.0.0.M4 and get the same error message on startup.

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Beeger
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date:

              Time Tracking

              Estimated:
              Original Estimate - 6h Original Estimate - 6h
              6h
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 21h 11m
              21h 11m