]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp2): restore connector cleanup in TransactionEvent(Ended) response handler
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 17 Apr 2026 15:33:03 +0000 (17:33 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 17 Apr 2026 15:33:03 +0000 (17:33 +0200)
commit80a3a80f7f6927d3355520a88d003d516c04711b
tree5f5185d7186783e8907ae8701b7d73bc3bfb5e1f
parent92711d429e51c4e4bb2eaafb86c6f47d62f99c63
fix(ocpp2): restore connector cleanup in TransactionEvent(Ended) response handler

Commit 710db15c removed cleanup from the Ended response handler assuming
callers always handle it. The UI broadcast channel passthrough bypasses
all caller-side cleanup, leaving connectors stuck in Occupied state.

Restore cleanupEndedTransaction in handleResponseTransactionEvent for the
Ended case, making the response handler the authoritative cleanup point
for all online paths. Add idempotency guard to cleanupEndedTransaction
so existing caller-side calls (needed for offline fallback) become no-ops
when the response handler already ran. Fix unconditional Available status
to respect ChangeAvailability(Inoperative) per G03.
src/charging-station/ocpp/2.0/OCPP20ResponseService.ts
src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
tests/charging-station/ocpp/2.0/OCPP20ResponseService-TransactionEvent.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts