Dialog "Add Implementation Artifact" does not set artifactType in API Request
mar-be opened this issue · 1 comments
mar-be commented
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.
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: ""
}
mar-be commented
Fixed in eclipse#608