• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-core / 38741667551
69%
master: 65%

Build:
Build:
LAST BUILD BRANCH: 2.8.x
DEFAULT BRANCH: master
Ran 15 Oct 2026 01:27PM UTC
Jobs 1
Files 826
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Oct 2026 01:18PM UTC coverage: 68.604% (-0.005%) from 68.609%
38741667551

push

github

mseaton
TRUNK-6829: Fix case, duplicates, backslashes and escaping in properties written by startup-init.sh (#6687)

* TRUNK-6829: Keep the case of mixed-case OMRS_EXTRA_* property names

startup-init.sh lowercased every OMRS_EXTRA_* name, so properties with capitals in their keys (e.g. mail.smtp.socketFactory.class) could not be set. A name containing any lower case letter now keeps its case; an all upper case name is lowercased as before.  Also replaces the unquoted `tr [:upper:] [:lower:]`, whose arguments were subject to pathname expansion, with bash's ${var,,}.

* TRUNK-6830: Use one value when several OMRS_EXTRA_* variables give the same property

When two OMRS_EXTRA_* variables mapped to the same property key, the last one won on first install (both lines were written to the server properties file) and the first one won on later starts (awk merge into the runtime
properties file). Duplicates are now dropped while the variables are read: the first in sorted order is used, and the others are logged and ignored.

* TRUNK-6831: Write OMRS_EXTRA_* values without interpreting backslashes

The extra properties were joined with \n and written with echo -e, and on first install each line was rewritten with echo -e again, so backslash sequences in a value (\t, \n, \\, ...) were interpreted, differently on each path. The lines are now kept in an array and written with printf.

* TRUNK-6835: Escape values written to the server and runtime properties files

startup-init.sh wrote the server properties (including connection.password) and the OMRS_EXTRA_* values as plain key=value lines. Both files are read as Java properties, where backslashes are escapes, line breaks end the value and leading whitespace is dropped, so such values did not reach OpenMRS as given; a backslash in the DB password gave the first install a different password from the database's. Values are now escaped for the properties format before they are written.

* TRUNK-6829: Lowercase OMRS_EXTRA_* ... (continued)

26110 of 38059 relevant lines covered (68.6%)

0.69 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
42.55
-4.26% api/src/main/java/org/openmrs/ConceptAnswer.java
2
94.79
-0.52% api/src/main/java/org/openmrs/util/ThreadSafeCircularFifoQueue.java
Jobs
ID Job ID Ran Files Coverage
1 38741667551.1 15 Oct 2026 01:27PM UTC 826
68.6
Source Files on build 38741667551
  • Tree
  • List 826
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38741667551
  • b74b01a1 on github
  • Prev Build on 2.8.x (#38738135633)
  • Next Build on 2.8.x (#38745119648)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc