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

RemRem-Generate 2.1.4 generates remrem temeplate with old meta.version #203

Closed
tobiasake opened this issue Aug 31, 2022 · 1 comment · Fixed by #219
Closed

RemRem-Generate 2.1.4 generates remrem temeplate with old meta.version #203

tobiasake opened this issue Aug 31, 2022 · 1 comment · Fixed by #219
Labels
bug Something is wrong and needs fixing.

Comments

@tobiasake
Copy link
Contributor

tobiasake commented Aug 31, 2022

Description

The new RemRem-Generate 2.1.4 version comes with some new Eiffel Paris Edition Protocol version changes.

EiffelComptositionDefinedEvent meta.version is uplifted from 3.0.0 to 3.1.0 which remrem-generate fails to generate in this entrypoint:
"GET /template/{type}/{mp}"
If I do a Get request to this entrypoint with type=EiffelComptositionDefinedEvent and mp=eiffelsematics, then a remrem template is generated with old meta.version:

  "msgParams": {
    "meta": {
      "type": "EiffelCompositionDefinedEvent",
      "version": "3.0.0",

If I take this template and fill in other required Event field and do a POST request to entrypoint "POST /{mp}" that generate the actual event content I get this error:

{
  "message": "Cannot validate given JSON string",
  "cause": "com.ericsson.eiffel.remrem.semantics.validator.EiffelValidationException: [object has missing required properties ([\"version\"])]"
}

This is due to old meta.version in the template. If I manually change the meta.version to version 3.1.0 then Eiffel event is successfully generated.

The issue is this entrypoint "GET /template/{type}/{mp}" that don't generate templates according to the new Eiffel Paris Edition protocol templates.

RemRem-Generate and Protocol versions info:
{
"serviceVersion": {
"serviceVersion": "2.1.4"
},
"endpointVersions": {
"semanticsVersion": "2.2.1"
}
}

Motivation

RemRem-Generate should generate templates that is valid according to the Eiffel protocol and ready to be used for generating Eiffel event and publish Eiffel event on Eiffel MessageBus.

Exemplification

Benefits

RemRem-Generate generates Eiffel events that is ready to be published on MessageBus with less manual work for the user.

Possible Drawbacks

None

@z-sztrom
Copy link
Contributor

The root cause of the issue is eiffel-community/eiffel-remrem-semantics#164.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong and needs fixing.
Projects
None yet
2 participants