Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4767

Application Data directory structure in Windows 10 causes install problem

    Details

    • Complexity:
      Low
    • Sprint:
      Platform 2.0 Beta Sprint 1

      Description

      In the getApplicationDataDirectory we firstly use the systemProperty OPENMRS_APPLICATION_DATA_DIRECTORY which can be set by passing -D to the jvm, but this is not something we document anywhere. Instead most people try to create an environment variable, which will not work because we need to use getenv instead of getProperty

      If this property is not found, the default path for Windows is user.home\Application Data, which not valid for Windows 10. This was valid for previous versions of Windows. Our default should be %APPDATA% for all windows, instead of using this as fallback. Even for the APPLICATION_DATA_DIRECTORY_FALLBACK_WIN we use System.getenv("%appdata%"), where as this should be System.getenv("appdata") because the %env% is to denote its an environment variable.

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  sunbiz Saptarshi Purkayastha
                  Reporter:
                  sunbiz Saptarshi Purkayastha
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: