View Issue Details

IDProjectCategoryView StatusLast Update
000699210000-006: MappingsSpecpublic2021-08-31 16:48
ReporterGerhard Gappmeier Assigned ToRandy Armstrong  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0006992: UA-NodeSet.xsd: ModelTableEntry should not be used for Models and RequiredModels
Description

The current definition allows the nesting of Models of any depth.
Also, all attributes that are defined with "Model" in mind can be used for RequiredModels as well.
I don't think that this was intended to be a use case:

<Models>
        <Model ModelUri="http://yourorganisation.org/test123/" PublicationDate="2021-06-07T14:05:17Z" Version="1.0.0">
            <RolePermissions>
                <RolePermission Permissions="33">ns=3;s=foobar</RolePermission>
            </RolePermissions>
            <RequiredModel ModelUri="http://opcfoundation.org/UA/DI" PublicationDate="2020-07-15T00:00:00Z" Version="1.04.7">
                <RolePermissions>
                    <RolePermission Permissions="33">ns=2;s=foobar</RolePermission>
                </RolePermissions>
                <RequiredModel ModelUri="http://opcfoundation.org/UA/" PublicationDate="2020-07-15T00:00:00Z" Version="1.04.7">
                    <RolePermissions>
                        <RolePermission Permissions="33">ns=1;s=foobar</RolePermission>
                    </RolePermissions>
                </RequiredModel>
            </RequiredModel>
        </Model>
    </Models>

For this reason there should be two different model entry types, one for Models and one for RequiredModels.

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Gerhard Gappmeier

2021-06-07 14:29

reporter   ~0014476

Mantis has screwed up the pre-formatted text. So here is the example as attachment.

test123.xml (1,437 bytes)   
<?xml version="1.0" encoding="utf-8"?>
<UANodeSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uax="http://opcfoundation.org/UA/2008/02/Types.xsd" xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd" xmlns:s1="http://yourorganisation.org/test123/Types.xsd" xmlns:ua="http://unifiedautomation.com/Configuration/NodeSet.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <NamespaceUris>
        <Uri>http://yourorganisation.org/test123/</Uri>
    </NamespaceUris>
    <Models>
        <Model ModelUri="http://yourorganisation.org/test123/" PublicationDate="2021-06-07T14:05:17Z" Version="1.0.0">
            <RolePermissions>
                <RolePermission Permissions="33">ns=3;s=foobar</RolePermission>
            </RolePermissions>
            <RequiredModel ModelUri="http://opcfoundation.org/UA/DI" PublicationDate="2020-07-15T00:00:00Z" Version="1.04.7">
                <RolePermissions>
                    <RolePermission Permissions="33">ns=2;s=foobar</RolePermission>
                </RolePermissions>
                <RequiredModel ModelUri="http://opcfoundation.org/UA/" PublicationDate="2020-07-15T00:00:00Z" Version="1.04.7">
                    <RolePermissions>
                        <RolePermission Permissions="33">ns=1;s=foobar</RolePermission>
                    </RolePermissions>
                </RequiredModel>
            </RequiredModel>
        </Model>
    </Models>
</UANodeSet>
test123.xml (1,437 bytes)   

Randy Armstrong

2021-08-18 13:08

administrator   ~0014763

Added this restriction:
The RolePermission and AccessRestrictions elements shall not be specified for any entry in this list.

Changing the schema is a breaking change.

In 1.05.1 DRAFT 3

Jim Luth

2021-08-31 16:48

administrator   ~0014794

Agreed to changes in 1.05.01 Draft 4.

Issue History

Date Modified Username Field Change
2021-06-07 14:27 Gerhard Gappmeier New Issue
2021-06-07 14:29 Gerhard Gappmeier Note Added: 0014476
2021-06-07 14:29 Gerhard Gappmeier File Added: test123.xml
2021-08-18 13:08 Randy Armstrong Assigned To => Randy Armstrong
2021-08-18 13:08 Randy Armstrong Status new => resolved
2021-08-18 13:08 Randy Armstrong Resolution open => fixed
2021-08-18 13:08 Randy Armstrong Note Added: 0014763
2021-08-31 16:48 Jim Luth Status resolved => closed
2021-08-31 16:48 Jim Luth Note Added: 0014794