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

Cannot create runtime properties during first installation

    XMLWordPrintable

Details

    Description

      The fix for TRUNK-3934 checks whether the folder ~/.OpenMRS is writable (https://github.com/openmrs-codejam-hamburg/openmrs-core/commit/2f55c3ee7717dab99b9b21db2a68cb85e583abc9).

      However, if this is the first installation, the folder hasn't existed yet, so the check always return false and falls back to /var/lib, which the running process usually doesn't have permission. It is confusing and it leads to this question: https://answers.openmrs.org/questions/1860/openmrs-manual-install-on-mac-log-in-as-root.

      The solution is to check whether the folder ~/.OpenMRS has existed or not first. If not, attempt to create it, so we can avoid unnecessary fallback.

      I volunteer to work on this issue.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                dkayiwa Daniel Kayiwa
                giangnn David Nguyen
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 2 hours
                    2h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified