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

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

Closed
mar-be opened this issue Aug 2, 2021 · 1 comment
Labels

Comments

@mar-be
Copy link

mar-be commented Aug 2, 2021

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: ""

}
@mar-be
Copy link
Author

mar-be commented Aug 9, 2021

Fixed in winery#608

@mar-be mar-be closed this as completed Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant