OpenTOSCA/winery

Dialog "Add Implementation Artifact" does not set artifactType in API Request

mar-be opened this issue · 1 comments

When I successively add multiple Implementation Artifacts to a NodeTypeImplementation, the GUI sets as the default Type for the next Implementation Artifact the Type of the previous one. However, it does not add this value in the HTTP POST request. This leads to an error, and the creation of the Implementation Artifact fails.

Screenshot of the GUI:
Bildschirmfoto 2021-08-02 um 13 52 32

Expected Body of the POST request:

{
    artifactType: "{http://docs.oasis-open.org/tosca/ns/2011/12/ToscaBaseTypes}ScriptArtifact",
    artifactTemplateName: "Test_stop-w1-wip1",
    artifactName: "Test_stop",
    autoCreateArtifactTemplate: "true",
    artifactTemplateNamespace: "http://www.example.org/tosca/artifacttemplates",
    interfaceName: "http://opentosca.org/interfaces/lifecycle",
    operationName: "stop",
    javaPackage: ""

}

Actual Body of the POST request:

{
    artifactType: "",
    artifactTemplateName: "Test_stop-w1-wip1",
    artifactName: "Test_stop",
    autoCreateArtifactTemplate: "true",
    artifactTemplateNamespace: "http://www.example.org/tosca/artifacttemplates",
    interfaceName: "http://opentosca.org/interfaces/lifecycle",
    operationName: "stop",
    javaPackage: ""

}

Fixed in eclipse#608