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

Planning fails if DeploymentArtifacts XML Tag is empty #265

Open
milesstoetzner opened this issue Mar 10, 2022 · 0 comments
Open

Planning fails if DeploymentArtifacts XML Tag is empty #265

milesstoetzner opened this issue Mar 10, 2022 · 0 comments

Comments

@milesstoetzner
Copy link
Contributor

If there is an empty DeploymentArtifacts XML Tag inside a Node Type Implementation then planning throws a Null Pointer Exception.
This happens e.g. when a Deployment Artifact is added in Winery and then removed.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions targetNamespace="http://opentosca.org/nodetypeimplementations" id="nodeTypeImplementations-DockerContainer-Implementation_w1" xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:yml="http://docs.oasis-open.org/tosca/ns/simple/yaml/1.3" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org">
    <NodeTypeImplementation targetNamespace="http://opentosca.org/nodetypeimplementations" name="DockerContainer-Implementation_w1" abstract="no" final="no" nodeType="nodeTypes:DockerContainer_w1" xmlns:nodeTypes="http://opentosca.org/nodetypes">
        <ImplementationArtifacts>
            <ImplementationArtifact interfaceName="ContainerManagementInterface" name="DockerContainer_ContainerManagementInterface_IA" artifactType="artifactTypes:WAR-Java8" artifactRef="artifactTemplates:DockerContainer_ContainerManagementInterface-w1" xmlns:artifactTemplates="http://opentosca.org/artifacttemplates" xmlns:artifactTypes="http://opentosca.org/artifacttypes"/>
        </ImplementationArtifacts>
        <DeploymentArtifacts/>   <---- THIS WILL BREAK
    </NodeTypeImplementation>
</Definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant