Skip to content

Release 3.8.2 to main - #162

Open
vishwab1 wants to merge 75 commits into
mainfrom
vb/release-3.8.2-to-main
Open

Release 3.8.2 to main#162
vishwab1 wants to merge 75 commits into
mainfrom
vb/release-3.8.2-to-main

Conversation

@vishwab1

@vishwab1 vishwab1 commented Sep 3, 2026

Copy link
Copy Markdown
Member

📋 Description

JIRA ID:

Please provide a summary of the change and the motivation behind it. Include relevant context and details.


✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

5Amogh and others added 30 commits July 21, 2025 11:57
* story: amm-1668 task - 1754 dto updated

* story: amm-1668 task - 1754
…tData. (#96)

* Update version in pom.xml to 3.4.0

* story: amm-1668 task - 1754

* story: amm-1668 task - 1754 dto updated (#92)

* story: amm-1668 task - 1754 dto updated (#93)

* story: amm-1668 task - 1754 dto updated

* story: amm-1668 task - 1754

* fix: amm-1879 doctor signature was not coming for ncdcare

---------

Co-authored-by: Amoghavarsh <93114621+5Amogh@users.noreply.github.com>
Co-authored-by: 5Amogh <amoghavarsh@navadhiti.com>
fix: aam-1896 prescribed quantity was not coming in the casesheet
3.4.0 to 3.4.1
fix: amm-1919 fix for update doctor data for higher refferal data
Fix the WASA Issue : IDOR Vulnerability
* fix: amm-1927 res headers based on origin via allowed cors

* fix: amm-1927 coderabbit comments resolved

* localhost regex added

* Update regex pattern for localhost in interceptor
* fix: add @PreAuthorize to RBAC

* fix: wasa RBAC implementation

* fix: remove duplicate dependency

* fix: coderabbit comments

* fix: update role

* fix: enable the request matcher
5Amogh and others added 27 commits March 11, 2026 18:41
* fix: add labtech role for ecg controller

* fix: add role
* fix: add labtech role for ecg controller

* fix: add role

* fix: url issue in download document

* Remove authorization check from getKMFile method

Removed authorization check for getKMFile endpoint.
When mobile sends vanID=0 (placeholder), read correct vanID from Redis
(set by MMU login via camp:vanID key) and inject into request before
forwarding to Common-API/Identity-API for beneficiary creation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Same fix as FLW-API's CampConfigService: registerBeneficiary() silently
forwarded registration requests without vanID when Redis had no
camp:vanID, instead of surfacing the misconfiguration. When
stoptb.enforce.vanid=true, registration now fails with a clear error
if camp is not configured.
…sponse

- Guard against null/missing 'data' in response before accessing beneficiaryRegID
- Return proper error message instead of crashing with NPE/JSONException
- Log error with full response body for easier debugging

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Allow users with the new Volunteer role (Stop TB serviceline) to authenticate
via /user login endpoints and to register new beneficiaries via
/registrarBeneficaryRegistrationNew. Mirrors existing ASHA access.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Confirmed via role trace that userId 4408 (and likely other
Registration Officer accounts) was hitting 403 on
registrarBeneficaryRegistrationNew because REGISTRATION_OFFICER
wasn't in the allowed-roles whitelist. Mirrors the existing
ASHA/VOLUNTEER access.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sync release-3.8.3 with vb/trace: role grant
…it enforce.vanid config

- CommonBenStatusFlowServiceImpl.createBenFlowRecord: VanSerialNo was
  never set anywhere for i_ben_flow_outreach - now set to the row's own
  BenFlowID after save, matching the convention used elsewhere
  (e.g. IdentityService.regMap.setVanSerialNo(regMap.getBenRegId()))
- RegistrarServiceImpl: remove inline :false default from
  stoptb.enforce.vanid @value - every properties file must set this
  explicitly now, so a forgotten config fails loudly at startup instead
  of running fail-open

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
fix(stoptb): stamp VanSerialNo on i_ben_flow_outreach, require explic…
…client text

Stop TB's district/village IDs are Nikshay-scoped (m_nikshay_district,
m_nikshay_village), not AMRIT's general m_district/m_village numbering.
The two ID spaces overlap - e.g. ID 1 means 'Nicobars' in m_district but
'Alluri Sitharama Raju' in m_nikshay_district - and i_ben_flow_outreach
previously just stored whatever district/village name text the client
sent verbatim, with no server-side validation. Observed live: two
beneficiaries in the same actual village had different district/village
text stored for the same numeric IDs.

Gated on countNikshayMappedUsersForPSM() so only PSMs actually mapped to
a Nikshay TU go through this resolution - every other program (ANC/NCD/
cancer-screening/teleconsultation/etc.) sharing this same BenFlowStatus
code path is unaffected and keeps using client-sent text exactly as
before, since their IDs are already correctly AMRIT-scoped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
fix(stoptb): resolve district/village names from Nikshay tables, not …
Redis (camp:vanID) was written once at MMU login and deleted globally,
unscoped, on ANY user's logout — a Redis outage or an unrelated user's
logout would silently break registration on this camp. Each camp/van
already runs its own dedicated backend instance, so which van this is
never actually changes at runtime.

registerBeneficiary() now injects vanID from the new stoptb.van.id
property (no inline default, every properties file must set it
explicitly, same convention as stoptb.enforce.vanid) instead of an
inline Redis lookup. Removed the now-unused RedisConnection/
LettuceConnectionFactory dependency from this class.

Scope: vanID only, parkingPlaceID is not part of this change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
fix(stoptb): read vanID from stoptb.van.id property instead of Redis
- Add hasRole('COUNSELLOR') to registrarBeneficaryRegistrationNew
  authorization; also fixes a dangling trailing '||' left in the
  existing @PreAuthorize expression.
- Add TRACE diagnostics around benRegID/providerServiceMapID/villageID/
  vanID in registerBeneficiary and createBenFlowRecord to verify van ID
  propagation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
feat(registrar): allow COUNSELLOR role for beneficiary registration
Resolved conflicts:
- pom.xml: version 3.8.2 (release-3.8.2's own bump to 3.8.3 was not carried in)
- CommonMasterController.java: dropped duplicate PreAuthorize import
- IemrMmuLoginController.java: kept superset of roles incl. VOLUNTEER, REGISTRATION_OFFICER
- RegistrarController.java: kept superset of roles incl. VOLUNTEER, REGISTRATION_OFFICER, COUNSELLOR
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 564f097b-12ac-488f-85f2-23cb3c717198


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vishwab1 vishwab1 changed the title Vb/release 3.8.2 to main Release 3.8.2 to main Sep 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

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.

7 participants