Skip to content

GAZ-319: Default OutboundMessages.type to "sms" for type-less clients - #86

Merged
tdaly61 merged 2 commits into
openMF:devfrom
kanishksingh23:fix-sms-type-default
Aug 9, 2026
Merged

GAZ-319: Default OutboundMessages.type to "sms" for type-less clients#86
tdaly61 merged 2 commits into
openMF:devfrom
kanishksingh23:fix-sms-type-default

Conversation

@kanishksingh23

Copy link
Copy Markdown
Contributor

Summary

Fineract 1.14's SMS payload (SmsMessageApiQueueResourceData) has no type field, but OutboundMessages.type is @Column(nullable=false), so every classic Fineract SMS campaign 500s against the gateway (Hibernate PropertyValueException). This defaults type to "sms" so type-less clients persist; the email path still sets "email" explicitly.

Pre-existing (fails identically on MySQL) and independent of the Postgres work (#85), the classic Fineract SMS path appears never to have been exercised against this PHEE-flavored gateway.

Testing

Verified against Fineract's exact type-less payload: POST /sms now returns 202 and stores the row (type defaults to sms), where it previously returned 500. Regression: an explicit type=email payload is still stored with type=email.

@kanishksingh23

Copy link
Copy Markdown
Contributor Author

Hey @tdaly-mifos, please take a look at this PR.
Thank you.

@tdaly61
tdaly61 requested a review from a team August 9, 2026 02:45
@tdaly61
tdaly61 merged commit 51abedb into openMF:dev Aug 9, 2026
3 checks passed
tdaly61 added a commit to openMF/mifos-gazelle that referenced this pull request Aug 9, 2026
**Summary**

Adds the openMF message-gateway (SMS & messaging) component to the
MifosX deployment:
- `message-gateway-deployment.yaml`: Deployment with an initContainer
that creates the `messagegateway` DB on the shared Postgres; container
on ports 9191 (REST/actuator) + 5009 (Camel callback); actuator health
probes.
- `message-gateway-service.yaml`: ClusterIP Service (9191 + 5009).
- `infra/values.yaml`: `CREATE DATABASE messagegateway` in the Postgres
init.

Verified via `./run.sh -m deploy -a mifosx`: pod healthy on the shared
Postgres, Flyway applies the Postgres migrations, and a Dummy-provider
send returns DELIVERED.

**Note**

Image is openmf/message-gateway:`dev-51abedb`, the official CI build
from dev after both message-gateway PRs merged ([#85
Postgres](openMF/message-gateway#85) +[ #86 type
fix)](openMF/message-gateway#86). Verified on
the cluster: Fineract SMS campaign → gateway → DELIVERED end-to-end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants