Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-17969

Changes made by CLI do not preserve standalone.xml file permissions

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Done
    • Affects Version/s: 7.3.0.Beta
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide

      A) Download EAP 7.3.Beta

      B) Observe file permissions on the standalone.xml
      for me it is
      rw-rr-. 1 sappleton sappleton 29816 Nov 7 10:15 standalone.xml

      C) Create a script [file_permission_test.sh] in the bin dir as follows

      date;
      ls -ltr ../standalone/configuration/standalone.xml;
      date;
      ./jboss-cli.sh -c --command="/subsystem=logging/periodic-rotating-file-handler=FILE:write-attribute(name=enabled,value=true)";
      ./jboss-cli.sh -c --command="patch info";
      date;
      ls -ltr ../standalone/configuration/standalone.xml

      D) run the script (ensuring first there is an EAP instance running that the cli can connect to)

      [sappleton@localhost bin]$ ./file_permission_test.sh
      Thu 7 Nov 10:48:11 GMT 2019
      rw-rr-. 1 sappleton sappleton 29816 Nov 7 10:15 ../standalone/configuration/standalone.xml
      Thu 7 Nov 10:48:11 GMT 2019

      {"outcome" => "success"}

      Version: 7.3.0.Beta
      Cumulative patch ID: base
      One-off patches: none
      Thu 7 Nov 10:48:13 GMT 2019
      rw-rw-r-. 1 sappleton sappleton 29816 Nov 7 10:48 ../standalone/configuration/standalone.xml

      Observe the change in file permissions on the standalone.xml file

      Show
      A) Download EAP 7.3.Beta B) Observe file permissions on the standalone.xml for me it is rw-r r -. 1 sappleton sappleton 29816 Nov 7 10:15 standalone.xml C) Create a script [file_permission_test.sh] in the bin dir as follows date; ls -ltr ../standalone/configuration/standalone.xml; date; ./jboss-cli.sh -c --command="/subsystem=logging/periodic-rotating-file-handler=FILE:write-attribute(name=enabled,value=true)"; ./jboss-cli.sh -c --command="patch info"; date; ls -ltr ../standalone/configuration/standalone.xml D) run the script (ensuring first there is an EAP instance running that the cli can connect to) [sappleton@localhost bin] $ ./file_permission_test.sh Thu 7 Nov 10:48:11 GMT 2019 rw-r r -. 1 sappleton sappleton 29816 Nov 7 10:15 ../standalone/configuration/standalone.xml Thu 7 Nov 10:48:11 GMT 2019 {"outcome" => "success"} Version: 7.3.0.Beta Cumulative patch ID: base One-off patches: none Thu 7 Nov 10:48:13 GMT 2019 rw-rw-r -. 1 sappleton sappleton 29816 Nov 7 10:48 ../standalone/configuration/standalone.xml Observe the change in file permissions on the standalone.xml file

      Description

      when the cli makes changes to the standalone.xml the file permission are overwritten.
      They should be preserved.
      This causes issue on customer systems

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ShaunA Shaun Appleton
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: