Skip to content

Adding an input port with the name ID should cause a GUI error #85

@esromneb

Description

@esromneb

An input/output/inout port with the name ID is not allowed. This is a reserved word. Doing this causes the output XML to be broken. The GUI should not allow this.

In this example I have left the default value for ID blank. This results in an illegal Action node

<?xml version="1.0"?>
<root main_tree_to_execute="BehaviorTree">
    <!-- ////////// -->
    <BehaviorTree ID="BehaviorTree">
        <Sequence>
            <Action ID="actionOK" most_names_ok=""/>
            <Action ID=""/>
        </Sequence>
    </BehaviorTree>
    <!-- ////////// -->
    <TreeNodesModel>
        <Action ID="actionBroken">
            <input_port name="ID">this is a reserved value and should not be allowed</input_port>
        </Action>
        <Action ID="actionOK">
            <input_port name="most_names_ok"/>
        </Action>
    </TreeNodesModel>
    <!-- ////////// -->
</root>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions