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

openmrs / openmrs-core
64%
master: 65%

Build:
Build:
LAST BUILD BRANCH: 2.9.x
DEFAULT BRANCH: master
Repo Added 09 Oct 2016 07:52PM UTC
Files 852
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

LAST BUILD ON BRANCH 2.9.x
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 2.1.x
  • 2.4.x
  • 2.5.x
  • 2.6.x
  • 2.7.x
  • 2.7.x-update-to-2.7.7-SNAPSHOT
  • 2.7.x0-TRUNK-6414-revert
  • 2.8.x
  • 2.8.x-TRUNK-6475
  • 2.9.x
  • Location-2.9.x
  • TRUNK-6196-purge-patient-clinical-cascade
  • TRUNK-6292-2.6.x
  • TRUNK-6308
  • TRUNK-6356-reference-ranges
  • TRUNK-6414-2-2.7.x
  • TRUNK-6414-2.8.x
  • TRUNK-6423
  • TRUNK-6423-2.8.x
  • TRUNK-6435
  • TRUNK-6448-2.7.x
  • TRUNK-6448-2.8.x
  • TRUNK-6449
  • TRUNK-6451
  • TRUNK-6456
  • TRUNK-6457
  • TRUNK-6463
  • TRUNK-6464-2.8.x-2
  • TRUNK-6472-2.8.x
  • TRUNK-6474
  • TRUNK-6490
  • TRUNK-6505
  • TRUNK-6528
  • TRUNK-6569
  • TRUNK-6571
  • TRUNK-6596
  • TRUNK-6615
  • TRUNK-6615-2.9.x
  • TRUNk-6414-2.7x
  • alert-get-alerts-authz-2.9.x
  • fix-6194-mergepatients-conditions-allergies-dispenses
  • gracepotma-patch-1-dpga-badge
  • master
  • revert-4964-dependabot-maven-org.eclipse.jetty-jetty-maven-plugin-11.0.25

18 Jun 2026 02:59PM UTC coverage: 63.728% (+0.05%) from 63.675%
27768587422

push

github

web-flow
Require Get Alerts privilege to read all users' alerts (#6206)

Backport of #6186 to 2.9.x.

AlertService.getAllAlerts() and getAllAlerts(boolean) return every user's
alerts but were guarded only by @Authorized (authentication), so any
authenticated user could read alerts addressed to others. Introduce a
dedicated Get Alerts privilege (GET_* read-privilege convention) and gate both
methods with it. The per-user reads (getAlert, getAlerts, getAlertsByUser,
getAllActiveAlerts) stay open for a caller reading their own alerts; reading
another user's alerts through them now requires Get Alerts. getAlert(Integer)
returns null (rather than throwing) for another user's alert, the same as for
an unknown id, so it cannot be used as an existence oracle.

The privilege is created on startup via @AddOnStartup / checkCoreDataset() and
is not auto-granted to any role, so it does not reintroduce the leak. The
scheduled AlertReminderTask grants itself a proxy Get Alerts privilege around
its read of all alerts.


Claude-Session: https://claude.ai/code/session_01GswaapaA8WAbd7V7dv3yxW

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

10 of 13 new or added lines in 2 files covered. (76.92%)

4 existing lines in 2 files now uncovered.

23940 of 37566 relevant lines covered (63.73%)

0.64 hits per line

Relevant lines Covered
Build:
Build:
37566 RELEVANT LINES 23940 COVERED LINES
0.64 HITS PER LINE
Source Files on master
  • Tree
  • List 852
  • Changed 9
  • Source Changed 4
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27768587422 2.9.x Require Get Alerts privilege to read all users' alerts (#6206) Backport of #6186 to 2.9.x. AlertService.getAllAlerts() and getAllAlerts(boolean) return every user's alerts but were guarded only by @Authorized (authentication), so any authenticat... push 18 Jun 2026 03:06PM UTC web-flow github
63.73
27767614355 alert-get-alerts-authz-2.9.x Merge a4627fcce into 3ae412ec1 Pull #6206 18 Jun 2026 02:50PM UTC web-flow github
63.73
27688009154 2.9.x TRUNK-6196: Document that purgePatient does not cascade clinical data (#6203) purgePatient deletes only the person/patient rows (plus the person-level names, addresses and attributes); it does not cascade-delete clinical data. A patient that stil... push 17 Jun 2026 12:19PM UTC web-flow github
63.67
27686906412 TRUNK-6196-purge-patient-clinical-cascade Merge 7ff10312c into 51422097a Pull #6202 17 Jun 2026 11:58AM UTC web-flow github
63.61
27660627112 2.9.x mergePatients does not reassign Conditions, Allergies, or MedicationDispenses to the surviving patient (#6198) * mergePatients now reassigns Conditions, Allergies and MedicationDispenses to the surviving patient PatientServiceImpl.mergePatients ... push 17 Jun 2026 02:04AM UTC web-flow github
63.66
27660563791 fix-6194-mergepatients-conditions-allergies-dispenses Merge b5f2c0350 into fff789b9f Pull #6198 17 Jun 2026 02:02AM UTC web-flow github
63.66
27624247947 fix-6194-mergepatients-conditions-allergies-dispenses Merge 2cce1a816 into fff789b9f Pull #6198 16 Jun 2026 02:26PM UTC web-flow github
63.58
27623827475 fix-6194-mergepatients-conditions-allergies-dispenses Merge 1dcda9084 into fff789b9f Pull #6198 16 Jun 2026 02:19PM UTC web-flow github
63.65
27623342085 fix-6194-mergepatients-conditions-allergies-dispenses Merge 249add208 into fff789b9f Pull #6198 16 Jun 2026 02:11PM UTC web-flow github
63.56
27622222111 fix-6194-mergepatients-conditions-allergies-dispenses Merge 622155c3f into fff789b9f Pull #6198 16 Jun 2026 01:54PM UTC web-flow github
63.57
See All Builds (6666)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc