ETSI's Bug Tracker - Part 09: Using XML with TTCN-3
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0007056 | Part 09: Using XML with TTCN-3 | Editorial | public | 14-05-2015 10:05 | 04-12-2015 13:05

Reporter | Gyorgy Rethy |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.6.1 (published 2015-06) |
Target Version | v4.7.1 (published 2016-07) | Fixed in Version | v4.7.1 (published 2016-07) |
Clause Reference(s) | 7.6.2.2, example 2
For STF discussion |
Source (company - Author) | L.M.Ericsson

Summary | 0007056: Fields are mixed up in example

Description

The fields shipDate and orderDate are mixed up in the generated TTCN-3 type.
Current example:
<!-- The restricting type is: -->
<complexType name="RestrictedPurchaseOrderType">
<complexContent>
<restriction base="ns:PurchaseOrderType">
<sequence>
<element name="shipTo" type="string"/>
<element name="billTo" type="string"/>
<element ref="ns:comment" minOccurs="1"/>
<element name="items" type="ns:Items"/>
</sequence>
<attribute name="shipDate" type="date" use="required" />
<attribute name="orderDate" type="date" use="prohibited" />
</restriction>
</complexContent>
</complexType>
-----------------------------
/* restricting type */
type record RestrictedPurchaseOrderType {
XSD.Date orderDate, //note that this field become mandatory
//note that the field shipDate is not added
XSD.String shipTo,
XSD.String billTo,
Comment comment, //note that this field become mandatory
Items items
}
with {
variant (orderDate) "attribute"
}

Steps To Reproduce |

Additional Information

It should be:
<!-- The restricting type is: -->
<complexType name="RestrictedPurchaseOrderType">
<complexContent>
<restriction base="ns:PurchaseOrderType">
<sequence>
<element name="shipTo" type="string"/>
<element name="billTo" type="string"/>
<element ref="ns:comment" minOccurs="1"/>
<element name="items" type="ns:Items"/>
</sequence>
<attribute name="shipDate" type="date" use="required" />
<attribute name="orderDate" type="date" use="prohibited" />
</restriction>
</complexContent>
</complexType>
-----------------------------
/* restricting type */
type record RestrictedPurchaseOrderType {
XSD.Date shipDate, //note that this field become mandatory
//note that the field orderDate is not added
XSD.String shipTo,
XSD.String billTo,
Comment comment, //note that this field become mandatory
Items items
}
with {
variant (orderDate) "attribute"
}

Tags | No tags attached.
Relationships |
Attached Files | CR7056_resolution_v1.docx (18,444) 04-08-2015 15:12 http://oldforge.etsi.org/mantis/file_download.php?file_id=3231&type=bug

Issue History
Date Modified | Username | Field | Change
14-05-2015 10:05 | Gyorgy Rethy | New Issue |
14-05-2015 10:06 | Gyorgy Rethy | Product Version | => v4.6.1 (published 2015-06)
14-05-2015 10:06 | Gyorgy Rethy | Target Version | => v4.7.1 (published 2016-07)
03-08-2015 13:43 | Gyorgy Rethy | Note Added: 0013033 |
03-08-2015 13:43 | Gyorgy Rethy | Assigned To | => Axel Rennoch
03-08-2015 13:43 | Gyorgy Rethy | Status | new => assigned
04-08-2015 15:12 | Axel Rennoch | File Added: CR7056_resolution_v1.docx |
04-08-2015 15:13 | Axel Rennoch | Note Added: 0013070 |
04-08-2015 15:14 | Axel Rennoch | Note Added: 0013071 |
04-08-2015 15:14 | Axel Rennoch | Assigned To | Axel Rennoch => Gyorgy Rethy
04-08-2015 15:14 | Axel Rennoch | Status | assigned => confirmed
05-08-2015 13:13 | Gyorgy Rethy | Status | confirmed => resolved
05-08-2015 13:13 | Gyorgy Rethy | Fixed in Version | => v4.7.1 (published 2016-07)
05-08-2015 13:13 | Gyorgy Rethy | Resolution | open => fixed
04-12-2015 13:05 | Gyorgy Rethy | Note Added: 0013551 |
04-12-2015 13:05 | Gyorgy Rethy | Status | resolved => closed

Notes

(0013033)
Gyorgy Rethy
03-08-2015 13:43

STF discussion 03-08-2015: proposed solution to be cross-checked.

(0013070)
Axel Rennoch
04-08-2015 15:13

proposed solution is correct and uploaded in document file

(0013071)
Axel Rennoch
04-08-2015 15:14

proposed solution has been put into the uploaded file

(0013551)
Gyorgy Rethy
04-12-2015 13:05

Added to draft V4.6.3