ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0006233 | Part 01: TTCN-3 Core Language | Technical | public | 24-07-2012 17:33 | 21-12-2012 12:00

Reporter | Gyorgy Rethy |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.5.1 (published 2013-04) | Fixed in Version | v4.5.1 (published 2013-04) |
Clause Reference(s) | 27.1.2.1
Source (company - Author) | L.M.Ericsson

Summary | 0006233: Variant overwriting rules are not correct

Description

Clause 27.1.2.1 paragraph one specifies that
â€¢ a variant attribute overwrites an current variant attribute according to the rules defined in clause 27.1.2;
However this rule, if applied, would cause problems for XSD to TTCN-3 mapping, where the encoding instructions applied to a type (e.g. XSD:decimal") and to a field this type (e.g. "name as...") shall apply at the same time. But, of course, several enoding instructions may apply to a given field as well.

Steps To Reproduce |
Additional Information |
Tags | No tags attached.

Relationships

parent of | 0006389 | closed | Gyorgy Rethy | Part 09: Using XML with TTCN-3 | Variant overwriting rules are not correct

Attached Files

TTCN-3 language question from ETSI STF446.htm (16,074) 11-12-2012 14:05
http://oldforge.etsi.org/mantis/file_download.php?file_id=2765&type=bug
CR6233_resolution_P1_v1.doc (133,120) 21-12-2012 10:53
http://oldforge.etsi.org/mantis/file_download.php?file_id=2794&type=bug
CR6233_resolution_P1_v2.doc (111,616) 21-12-2012 11:59
http://oldforge.etsi.org/mantis/file_download.php?file_id=2797&type=bug

Issue History
Date Modified | Username | Field | Change
24-07-2012 17:33 | Gyorgy Rethy | New Issue |
24-07-2012 17:33 | Gyorgy Rethy | Clause Reference(s) | => 27.1.2.1
24-07-2012 17:33 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
08-08-2012 09:32 | Gyorgy Rethy | Note Added: 0010991 |
08-08-2012 09:32 | Gyorgy Rethy | Status | new => assigned
08-08-2012 09:32 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
10-12-2012 16:57 | Gyorgy Rethy | Target Version | => Edition 4.5.1
11-12-2012 13:59 | Gyorgy Rethy | Note Added: 0011224 |
11-12-2012 14:05 | Gyorgy Rethy | File Added: TTCN-3 language question from ETSI STF446.htm |
13-12-2012 14:54 | Gyorgy Rethy | Note Added: 0011255 |
14-12-2012 12:51 | Jacob Wieland - Spirent | Note Added: 0011278 |
21-12-2012 10:53 | Gyorgy Rethy | File Added: CR6233_resolution_P1_v1.doc |
21-12-2012 10:53 | Gyorgy Rethy | Note Added: 0011307 |
21-12-2012 10:54 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Ina Schieferdecker
21-12-2012 10:55 | Gyorgy Rethy | Issue cloned: 0006389 |
21-12-2012 10:55 | Gyorgy Rethy | Relationship added | parent of 0006389
21-12-2012 11:59 | Ina Schieferdecker | Note Added: 0011310 |
21-12-2012 11:59 | Ina Schieferdecker | File Added: CR6233_resolution_P1_v2.doc |
21-12-2012 12:00 | Ina Schieferdecker | Status | assigned => resolved
21-12-2012 12:00 | Ina Schieferdecker | Resolution | open => fixed
21-12-2012 12:00 | Ina Schieferdecker | Fixed in Version | => Edition 4.5.1
21-12-2012 12:00 | Ina Schieferdecker | Status | resolved => closed

Notes

(0010991)
Gyorgy Rethy
08-08-2012 09:32

STF discussion 2012-08-08: ask tool vendors if changing the variant overriding rule in part one to "append" by default would be a problem for them.

(0011224)
Gyorgy Rethy
11-12-2012 13:59

E-mail has been sent to TTCN-3 tool vendors on 10-Aug and re-sent on 11-Dec. No response received.

(0011255)
Gyorgy Rethy
13-12-2012 14:54

STF discussion 2012-12-13: - the variant overwriting rules defined in Part-1 are the default rules; add a sentence to Part-1 that different language mappings may define their own variant attribute rules. - define the variant rules for the XSD mapping in Part-9

(0011278)
Jacob Wieland - Spirent
14-12-2012 12:51

I'm confused, I sent a response to both mails, both times with the same answer,
which was in essence this:
I think that all provided options are totally unnecessary and this problem can easily be solved by amending the XSD to TTCN-3 mapping. This mapping needs to be changed in such a way that the generated variant attributes for an inner element include all inherited variant attributes that shall not be overwritten.
Since the mapping process is done automatically by some generator which needs to keep track of this information anyway, this should not be a problem. It will also make implementation of generic XSD-codecs simpler as they don't have to follow some additional rules for the append-cases.
Introducing new rules for different language mappings is considered harmful by Testing Technologies as then every language mapping potentially could have a totally different approach to variant attribute overwriting and it is unclear how this can remain compositional, e.g. when types from one language are imported into TTCN-3 and amended with variant attributes. Shall the importers rules be followed or the imported rules? This can at least lead to a lot of confusion by the users and thus to lots of errors and frustration and lesser acceptance of TTCN-3.

(0011307)
Gyorgy Rethy
21-12-2012 10:53

See my proposal for part-1 in CR6233_resolution_P1_v1.doc.

(0011310)
Ina Schieferdecker
21-12-2012 11:59

Implemented with small editorial given in v2