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

ID | Project | Category | View Status | Date Submitted | Last Update
0007605 | Part 01: TTCN-3 Core Language | Technical | public | 09-02-2017 09:45 | 30-12-2017 19:03

Reporter | Tomas Urban |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.9.1 (published 2017-05) |
Target Version | v4.10.1 (published 2018-05) | Fixed in Version | v4.10.1 (published 2018-05) |
Clause Reference(s) | 19.11
Source (company - Author) | STF 521

Summary | 0007605: Logging of constructive values

Description

The description of the log procedure doesn't describe precisely how uninitialized fields of constructive values should be logged. For variables, there's an option to use "UNINITIALIZED" string, but it seems it is intended for the top level only. However, this is never clearly stated and that might lead to different interpretations. Besides, using "UNINITIALIZED" strings inside of a value doesn't produce a valid TTCN-3 syntax.
For that reason, I propose to add a rule saying that "UNINITIALIZED" is used for the top level only (if the whole value or template is uninitialized) and uninitialized fields inside partially initialized constructive values/templates shall be either marked with the skip symbol "-" or in case of the value list notation completely missing if they are at the end of the value. This will produce a correct TTCN-3 syntax of a partially initialized value which can be copied and pasted to the code without any additional modifications.

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

Relationships

related to | 0007681 | closed | Tomas Urban | Part 06: TTCN-3 Control Interface | adapt TCI to the hanges in any2unistr predefined function changes

Attached Files | CR_7605.docx (170,774) 09-06-2017 14:22 http://oldforge.etsi.org/mantis/file_download.php?file_id=3634&type=bug CR_7605-v2.docx (195,708) 09-06-2017 15:41 http://oldforge.etsi.org/mantis/file_download.php?file_id=3637&type=bug CR_7605-v3.docx (171,627) 09-06-2017 16:09 http://oldforge.etsi.org/mantis/file_download.php?file_id=3640&type=bug

Issue History
Date Modified | Username | Field | Change
09-02-2017 09:45 | Tomas Urban | New Issue |
24-04-2017 12:00 | szabados | Note Added: 0014600 |
06-06-2017 12:11 | Jens Grabowski | Note Added: 0014624 |
06-06-2017 12:11 | Jens Grabowski | Assigned To | => KristÃ³f Szabados
06-06-2017 12:11 | Jens Grabowski | Status | new => assigned
09-06-2017 11:20 | KristÃ³f Szabados | Note Added: 0014694 |
09-06-2017 14:22 | KristÃ³f Szabados | File Added: CR_7605.docx |
09-06-2017 14:23 | KristÃ³f Szabados | Note Added: 0014697 |
09-06-2017 14:23 | KristÃ³f Szabados | Assigned To | KristÃ³f Szabados => Tomas Urban
09-06-2017 14:23 | KristÃ³f Szabados | Status | assigned => confirmed
09-06-2017 15:41 | Tomas Urban | File Added: CR_7605-v2.docx |
09-06-2017 15:43 | Tomas Urban | Note Added: 0014703 |
09-06-2017 15:43 | Tomas Urban | Assigned To | Tomas Urban => KristÃ³f Szabados
09-06-2017 16:04 | KristÃ³f Szabados | Assigned To | KristÃ³f Szabados => Jacob Wieland - Spirent
09-06-2017 16:04 | KristÃ³f Szabados | Status | confirmed => assigned
09-06-2017 16:04 | KristÃ³f Szabados | Note Added: 0014706 |
09-06-2017 16:04 | KristÃ³f Szabados | Status | assigned => confirmed
09-06-2017 16:09 | Jacob Wieland - Spirent | File Added: CR_7605-v3.docx |
24-07-2017 10:43 | Jacob Wieland - Spirent | Note Added: 0014732 |
24-07-2017 10:43 | Jacob Wieland - Spirent | Status | confirmed => resolved
24-07-2017 10:43 | Jacob Wieland - Spirent | Fixed in Version | => v4.9.1 (published 2017-05)
24-07-2017 10:43 | Jacob Wieland - Spirent | Resolution | open => fixed
24-07-2017 10:43 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
26-07-2017 09:25 | Jacob Wieland - Spirent | Relationship added | related to 0007681
30-12-2017 19:03 | Gyorgy Rethy | Note Added: 0014965 |
30-12-2017 19:03 | Gyorgy Rethy | Status | resolved => closed
30-12-2017 19:03 | Gyorgy Rethy | Fixed in Version | v4.9.1 (published 2017-05) => v4.10.1 (published 2018-05)
30-12-2017 19:03 | Gyorgy Rethy | Target Version | => v4.10.1 (published 2018-05)

Notes

(0014600)
szabados
24-04-2017 12:00

In theory I agree, in practice I would not constrain the logging too much more than this.
As an example of a small difference in Titan ... we put a timestamp in the beginning of the logged message (beside the 100+ other logging options).
For a bigger difference we provide extension plugins for logging information into different formats. Some of which are simple texts, some simple text with some advance features, some tool specific (JUnit, LTTNG, etc..) and users can write their own too.
Where the logging might follow different rules.

(0014624)
Jens Grabowski
06-06-2017 12:11

STF discussion: to be checked if "-" can be a synoym for UNINIATIALIZED. Different semantics for "-" and UNINIATIALIZED should not be implemented.

(0014694)
KristÃ³f Szabados
09-06-2017 11:20

STF discussion: as the logging of structured entities was not specified in the standard for a long time, we decided to:
- add a note the the log statement pointing out, that there might be vendor specific solution in logging structured entities
- extend the any2unistr predefined function with on optional parameter, whereby the user could ask for TTCN-3 notation in the logged text.
- create a CR to handle the TCI implications of this change.

(0014697)
KristÃ³f Szabados
09-06-2017 14:23

Please check.

(0014703)
Tomas Urban
09-06-2017 15:43

I am fine with most of the proposed changes, but I added a new rule for custom formats. Please check.

(0014706)
KristÃ³f Szabados
09-06-2017 16:04

I am fine with the changes. Please check.

(0014732)
Jacob Wieland - Spirent
24-07-2017 10:43

fine with me

(0014965)
Gyorgy Rethy
30-12-2017 19:03

Added to draft V4.9.2