You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
insert transaction of unknown of an idTag and block it (closes#13)
reason: Starting with OCPP 1.6, a charging station can be configured to allow
unknown idTags when offline.
Use case: An offline charging station decides to allow an unknown idTag to start
a transaction. Later, when it is online, it sends a StartTransactionRequest with
this idTag. If we do not insert this idTag, the transaction details will not be
inserted into DB and we will lose valuable information.
@@ -189,6 +193,10 @@ public Integer insertTransaction(InsertTransactionParams p) {
189
193
.fetchOne()
190
194
.getTransactionPk();
191
195
196
+
if (unknownTagInserted) {
197
+
log.warn("The transaction '{}' contains an unknown idTag '{}' which was inserted into DB as to prevent information loss and has been blocked", transactionId, p.getIdTag());
0 commit comments