Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPP1.6: Fix handling of SetChargingProfile(TxProfile) #616

Merged
merged 1 commit into from
May 13, 2024

Conversation

Pietfried
Copy link
Contributor

@Pietfried Pietfried commented May 13, 2024

Describe your changes

  • Fixes issue that SetChargingProfile handler allowed TxProfile when there was no active transaction
  • Fixed bug that Recurring profiles were accepted without validating profile purpose
  • Added further test cases

TxProfiles without a transactionId are still accepted in case:
A transaction is active for this connector
OR
TxProfile is part of RemoteStartTransaction.req (ignore_no_transaction is set to true)

Issue ticket number and link

Related discussion: #299

Checklist before requesting a review

…ve transaction. This was fixed with this change. Added further test cases

* Fixed bug that Recurring profiles were accepted without validating profile purpose

Signed-off-by: pietfried <[email protected]>
@Pietfried Pietfried force-pushed the bugfix/validate-tx-profile branch from 13daa52 to a5b29f1 Compare May 13, 2024 15:02
@Pietfried Pietfried merged commit c83af3a into main May 13, 2024
4 checks passed
@Pietfried Pietfried deleted the bugfix/validate-tx-profile branch May 13, 2024 19:37
christopher-davis-afs pushed a commit to US-JOET/libocpp that referenced this pull request May 30, 2024
…ve transaction. This was fixed with this change. Added further test cases (EVerest#616)

* Fixed bug that Recurring profiles were accepted without validating profile purpose

Signed-off-by: pietfried <[email protected]>
drmrd pushed a commit to US-JOET/libocpp that referenced this pull request Jun 4, 2024
…ve transaction. This was fixed with this change. Added further test cases (EVerest#616)

* Fixed bug that Recurring profiles were accepted without validating profile purpose

Signed-off-by: pietfried <[email protected]>
Signed-off-by: Daniel Moore <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants