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

Allow listVersion 0 in SendLocalListRequest #201

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

robert-s-ubi
Copy link
Contributor

The OCPP 1.6 specification mentions no explicit value range for the
listVersion field in the SendLocalListRequest, but specifies that 0
should be returned as the version in case the list is empty. Now there
is no message to clear the local authorization list, so clearing the
list can only be achieved with a SendLocalListRequest with an empty
list, and that is a use case for listVersion 0. In fact the OCPP
certification test tool employs such requests.

Change SendLocalListRequest to allow listVersion 0 rather than only 1 or
higher, and adapt the unit test accordingly.

While at it, bump the version in build.gradle to "1.1" to match the one
from pom.xml.

The OCPP 1.6 specification mentions no explicit value range for the
listVersion field in the SendLocalListRequest, but specifies that 0
should be returned as the version in case the list is empty. Now there
is no message to clear the local authorization list, so clearing the
list can only be achieved with a SendLocalListRequest with an empty
list, and that is a use case for listVersion 0. In fact the OCPP
certification test tool employs such requests.

Change SendLocalListRequest to allow listVersion 0 rather than only 1 or
higher, and adapt the unit test accordingly.

While at it, bump the version in build.gradle to "1.1" to match the one
from pom.xml.
@TVolden
Copy link
Member

TVolden commented Aug 19, 2022

Hi @robert-s-ubi ,

Thanks for your contribution. Everything looks good and I'm happy that you spotted the version inconsistency, which I missed. :)
Consider it merged. :)

Sincerely,
Thomas Volden

@TVolden TVolden merged commit 445a744 into ChargeTimeEU:master Aug 19, 2022
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