As an admin I do not want the installer to update permissions of Jira folders during upgrade

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 8.21.0, 8.22.1
    • Component/s: Upgrade
    • None
    • 8.21
    • 4
    • Severity 2 - Major
    • 0

      Problem

      Jira installer is resetting all permissions to default while upgrading Jira

      Environment

      Jira 8.x

      Steps to Reproduce

      • Installed any Jira verison v8.20.7
      • Setup with some sample project data
      • Manually change some permissions on Jira Home and Install folders
      • Upgrade to v8.22.1 via installer

      Expected Results

      • Manually changed permissions (security descriptors) and inheritance are left intact

      Actual Results

      Manually Updated permissions are restored to default after upgrade:

      Before After

      Workaround

      No Workaround currently available other than manually set the permissions back to what they were before upgrade.

      Notes

      In the i4jparam.conf file we can see the permissions are getting reset:

      rem Navigates parents of the passed-in directory one by one and sets read an execute permissions to Network Service
      :setPermissionsForAllParentDirectories
          set dirname=%~1\
          echo Starting to walk up from: "!dirname!"
      
          :doLoop
          for %%A in ("!dirname!") do (
              set currentPath=%%~dpA
              set onlyPath=%%~pA
              if NOT "!onlyPath!"=="\" (
                  echo.
                  echo Checking permissions of !currentPath! [!dirname!]
                  icacls "!currentPath!." | find "NT AUTHORITY\NETWORK SERVICE" | find "" /v /c > last_check
      
                  for /f "delims=" %%x in (last_check) do set permission_count=%%x
      
                  if not !permission_count! geq 1 (
                      if not "!currentPath!" == "" (
                          echo Granting read and execute access for Network Service to !currentPath!
                          icacls "!currentPath!." /grant "NT AUTHORITY\NETWORK SERVICE:(RX)"
                      )
                  )
                  set dirname=!dirname!..\
                  goto doLoop
              )
          )
          echo end
      

        1. 2022-03-21_16-02-24.png
          571 kB
          Suddha
        2. 2022-03-21_16-03-52.png
          981 kB
          Suddha
        3. 2022-03-21_16-25-12.png
          578 kB
          Suddha
        4. 2022-03-21_16-25-56.png
          880 kB
          Suddha

            Assignee:
            Unassigned
            Reporter:
            Suddha
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: