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

ID | Project | Category | View Status | Date Submitted | Last Update
0007462 | Part 01: TTCN-3 Core Language | New Feature | public | 26-07-2016 10:42 | 12-12-2016 20:21

Reporter | Jacob Wieland - Spirent |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.8.1 (published 2016-07) |
Target Version | v4.9.1 (published 2017-05) | Fixed in Version | v4.9.1 (published 2017-05) |
Clause Reference(s) | C.5.1, C.5.2
Source (company - Author) | Spirent - Jacob Wieland

Summary | 0007462: encvalue/decvalue should also work directly with octet and hex-string values

Description

At the moment, any octetstring that should be encoded with encvalue or decoded with decvalue needs to be explicitly converted to bitstring.
This makes no sense in the most common case that the protocol is byte-based and in the adaptation layer, the bitstring again has to be converted to bytes, creating a possible imperformance.
Therefore, we propose to allow encvalue and decvalue to also work directly with octetstrings (and hexstrings).

Steps To Reproduce |

Additional Information

Since the encvalue function at the moment returns a bitstring, it's semantic description might be a little more problematic as the return type would be determined from the demanded type of the encvalue() function call (i.e. the variable it is assigned or parameter type it is used as actual paramter for).
Only in context-less environments (log, setverdict, testcase.stop, comparison operators where both operands are of indeterminate type), the bitstring-default-result type would be used for backward compatibility reasons.
Alternatively, two new predefined functions encvalue_octetstr/decvalue_octetstr could be introduced. That doesn't make the TTCN-3 code shorter, but at least no unnecessary conversions need to take place.

Tags | No tags attached.
Relationships |
Attached Files | CR7462.docx (162,395) 16-08-2016 09:15 http://oldforge.etsi.org/mantis/file_download.php?file_id=3449&type=bug CR7462-V2.docx (162,679) 16-08-2016 09:26 http://oldforge.etsi.org/mantis/file_download.php?file_id=3453&type=bug CR7462-V3.docx (163,654) 18-08-2016 08:08 http://oldforge.etsi.org/mantis/file_download.php?file_id=3484&type=bug

Issue History
Date Modified | Username | Field | Change
26-07-2016 10:42 | Jacob Wieland - Spirent | New Issue |
15-08-2016 11:18 | Jens Grabowski | Note Added: 0014070 |
15-08-2016 11:18 | Jens Grabowski | Assigned To | => Jacob Wieland - Spirent
15-08-2016 11:18 | Jens Grabowski | Status | new => assigned
16-08-2016 09:15 | Jacob Wieland - Spirent | File Added: CR7462.docx |
16-08-2016 09:15 | Jacob Wieland - Spirent | Note Added: 0014085 |
16-08-2016 09:15 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Jens Grabowski
16-08-2016 09:15 | Jacob Wieland - Spirent | Status | assigned => confirmed
16-08-2016 09:26 | Jens Grabowski | File Added: CR7462-V2.docx |
16-08-2016 09:27 | Jens Grabowski | Note Added: 0014090 |
16-08-2016 09:27 | Jens Grabowski | Note Added: 0014091 |
16-08-2016 09:27 | Jens Grabowski | Status | confirmed => resolved
16-08-2016 09:27 | Jens Grabowski | Resolution | open => fixed
16-08-2016 09:27 | Jens Grabowski | Assigned To | Jens Grabowski => Gyorgy Rethy
17-08-2016 11:22 | Jacob Wieland - Spirent | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
17-08-2016 11:22 | Jacob Wieland - Spirent | Status | resolved => feedback
17-08-2016 11:22 | Jacob Wieland - Spirent | Resolution | fixed => reopened
17-08-2016 11:23 | Jacob Wieland - Spirent | Product Version | => v4.8.1 (published 2016-07)
17-08-2016 11:23 | Jacob Wieland - Spirent | Target Version | => v4.9.1 (published 2017-05)
17-08-2016 11:23 | Jacob Wieland - Spirent | Status | feedback => resolved
17-08-2016 11:23 | Jacob Wieland - Spirent | Fixed in Version | => v4.9.1 (published 2017-05)
17-08-2016 11:23 | Jacob Wieland - Spirent | Resolution | reopened => fixed
17-08-2016 21:26 | KristÃ³f Szabados | Note Added: 0014142 |
18-08-2016 07:56 | Jens Grabowski | Note Added: 0014144 |
18-08-2016 07:56 | Jens Grabowski | Assigned To | Gyorgy Rethy => KristÃ³f Szabados
18-08-2016 07:56 | Jens Grabowski | Status | resolved => assigned
18-08-2016 08:08 | KristÃ³f Szabados | File Added: CR7462-V3.docx |
18-08-2016 08:09 | KristÃ³f Szabados | Note Added: 0014145 |
18-08-2016 08:09 | KristÃ³f Szabados | Assigned To | KristÃ³f Szabados => Jacob Wieland - Spirent
18-08-2016 08:09 | KristÃ³f Szabados | Status | assigned => feedback
18-08-2016 15:36 | Jacob Wieland - Spirent | Note Added: 0014159 |
18-08-2016 15:36 | Jacob Wieland - Spirent | Status | feedback => assigned
18-08-2016 15:36 | Jacob Wieland - Spirent | Status | assigned => resolved
18-08-2016 15:36 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
12-12-2016 20:21 | Gyorgy Rethy | Note Added: 0014398 |
12-12-2016 20:21 | Gyorgy Rethy | Status | resolved => closed

Notes

(0014070)
Jens Grabowski
15-08-2016 11:18

STF discussion: New predefined functions. Funtion name proposals: encvalue_o, decvalue_o

(0014085)
Jacob Wieland - Spirent
16-08-2016 09:15

please review

(0014090)
Jens Grabowski
16-08-2016 09:27

Apart from two typos ok!

(0014091)
Jens Grabowski
16-08-2016 09:27

resolution according to STF discussion.

(0014142)
KristÃ³f Szabados
17-08-2016 21:26

the CR7462-V2.docx seems to contain several problems: - C.5.2 calls the function "encvalue_o" in the example, but decvalue_o in the text. - also in both cases the text talks about working with octetstrings, but the examples display bitstring returns and parameters

(0014144)
Jens Grabowski
18-08-2016 07:56

Kristof, please correct the proposal.

(0014145)
KristÃ³f Szabados
18-08-2016 08:09

I have corrected the issue I noticed, please review.

(0014159)
Jacob Wieland - Spirent
18-08-2016 15:36

please implement

(0014398)
Gyorgy Rethy
12-12-2016 20:21

Added to draft V4.8.2