View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003682 | 10000-006: Mappings | Spec | public | 2017-01-13 11:31 | 2021-11-16 16:41 |
| Reporter | V. Monfort | Assigned To | Randy Armstrong | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 1.03 | ||||
| Summary | 0003682: Variant encoding of Null or undefined built in type Ids | ||||
| Description | In part 6, table 14, the variant encoding does not indicate possible valid encoding with a Null (0) or undefined built-in type Id (defined in Table 1). Could you then confirm there is no valid encoding of a variant in those cases (including Null Id = 0) ? I also opened an issue on Ansi C Stack github to raise the point (https://github.com/OPCFoundation/UA-AnsiC/issues/31). Regards, | ||||
| Tags | No tags attached. | ||||
| Commit Version | |||||
| Fix Due Date | |||||
|
|
As reported in the Ansi-C github opened issue: |
|
|
Spec was missing this detail. Errata added. |
|
|
Could you confirm that in the case of a Null built-in type Id it is forbidden that the variant represents an array ? Please be precise enough in the errata to indicate that the case EncodingMask = Null built-in type Id + array mask(s) is forbidden if it is the case. |
|
|
I am not sure what you are expecting. The value of a Variant read or written is NULL if the corresponding StatusCode is bad. If the corresponding StatusCode is good the general rules for nullable values apply. Specifically: Variants can be empty. An empty Variant is described as having a null value and should be treated like a null column in a SQL database. A null value in a Variant may not be the same as a null value for data types that support nulls such as Strings. Some Development Platforms may not be able to preserve the distinction between a null for a DataType and a null for a Variant, therefore, applications shall not rely on this distinction. This requirement also means that if an Attribute supports the writing of a null value it shall also support writing of an empty Variant and vice versa. |
|
|
Agreed to no-fix in telecon. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-01-13 11:31 | V. Monfort | New Issue | |
| 2017-01-24 08:00 | V. Monfort | Note Added: 0007788 | |
| 2017-01-24 08:37 | Randy Armstrong | Note Added: 0007789 | |
| 2017-01-24 08:37 | Randy Armstrong | Status | new => resolved |
| 2017-01-24 08:37 | Randy Armstrong | Resolution | open => no change required |
| 2017-01-24 08:37 | Randy Armstrong | Assigned To | => Randy Armstrong |
| 2017-02-06 09:07 | V. Monfort | Note Added: 0007848 | |
| 2017-02-06 09:07 | V. Monfort | Status | resolved => feedback |
| 2017-02-06 09:07 | V. Monfort | Resolution | no change required => reopened |
| 2017-07-19 03:17 | Randy Armstrong | Note Added: 0008303 | |
| 2017-07-19 03:17 | Randy Armstrong | Status | feedback => resolved |
| 2017-07-19 03:17 | Randy Armstrong | Resolution | reopened => no change required |
| 2021-06-03 18:37 | Jim Luth | Project | UA Specification => 10000-006: Mappings |
| 2021-11-16 16:41 | Jim Luth | Status | resolved => closed |
| 2021-11-16 16:41 | Jim Luth | Note Added: 0015311 |