Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-631

Names with accented letters should be accepted


    • Type: Bug
    • Status: Accepted
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 2.2
    • Component/s: None
    • Labels:
    • Complexity:


      An out-of-the-box installation of OpenMRS does not allow accented characters (maybe this validation was added in openmrs-core 1.12.x), but the demo data module tries to create patients with accented characters in their names.

      Instead of eliminating accented characters from the data, the default regex for patient name validation needs to be refactored to allow for accented characters.

      This commit needs to be reverted, and the fix needs to be made in openmrs-core.

      Original Description

      I locally built the standalone for OpenMRS 2.2 (I think I did it correctly in the same way that CI does).

      When I try to run the built standalone locally for the first time, the referencedemodata module fails as follows because it seems that it can't find any concepts with class = Diagnosis.

      This is related to the (lucene?) problem I asked about here

      WARN - ModuleUtil.refreshApplicationContext(879) |2015-04-06 12:16:46,719| Unable to invoke started() method on the module's activator
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
              at java.util.ArrayList.rangeCheck(ArrayList.java:635)
              at java.util.ArrayList.get(ArrayList.java:411)
              at org.openmrs.module.referencedemodata.ReferenceDemoDataActivator.randomArrayEntry(ReferenceDemoDataActivator.java:565)
              at org.openmrs.module.referencedemodata.ReferenceDemoDataActivator.createDiagnosisObsGroup(ReferenceDemoDataActivator.java:455)
              at org.openmrs.module.referencedemodata.ReferenceDemoDataActivator.createVisitNote(ReferenceDemoDataActivator.java:434)
              at org.openmrs.module.referencedemodata.ReferenceDemoDataActivator.createDemoVisit(ReferenceDemoDataActivator.java:410)
              at org.openmrs.module.referencedemodata.ReferenceDemoDataActivator.createDemoPatient(ReferenceDemoDataActivator.java:346)
              at org.openmrs.module.referencedemodata.ReferenceDemoDataActivator.createDemoPatients(ReferenceDemoDataActivator.java:314)
              at org.openmrs.module.referencedemodata.ReferenceDemoDataActivator.started(ReferenceDemoDataActivator.java:107)
              at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:871)
              at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:962)
              at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:616)
              at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:595)
              at org.openmrs.web.Listener.startOpenmrs(Listener.java:238)
              at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)


          Issue Links



              • Assignee:
                maurya Sri Maurya Kummamuru
                darius Darius Jazayeri [X] (Inactive)
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: