Logo etsi

ETSI's Bug Tracker

Notice: information submitted on the ETSI issue Tracker may be incorporated in ETSI publication(s) and therefore subject to the ETSI IPR policy.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007462Part 01: TTCN-3 Core LanguageNew Featurepublic26-07-2016 10:4212-12-2016 20:21
ReporterJacob Wieland - Spirent 
Assigned ToGyorgy Rethy 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versionv4.8.1 (published 2016-07) 
Target Versionv4.9.1 (published 2017-05)Fixed in Versionv4.9.1 (published 2017-05) 
Summary0007462: encvalue/decvalue should also work directly with octet and hex-string values
DescriptionAt 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).
Additional InformationSince 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.
TagsNo tags attached.
Clause Reference(s)C.5.1, C.5.2
Source (company - Author)Spirent - Jacob Wieland
Attached Filesdocx file icon CR7462.docx [^] (162,395 bytes) 16-08-2016 09:15
docx file icon CR7462-V2.docx [^] (162,679 bytes) 16-08-2016 09:26
docx file icon CR7462-V3.docx [^] (163,654 bytes) 18-08-2016 08:08

- Relationships

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

STF discussion: New predefined functions. Funtion name proposals: encvalue_o, decvalue_o
(0014085)
Jacob Wieland - Spirent (reporter)
16-08-2016 09:15

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

Apart from two typos ok!
(0014091)
Jens Grabowski (manager)
16-08-2016 09:27

resolution according to STF discussion.
(0014142)
Kristóf Szabados (reporter)
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 (manager)
18-08-2016 07:56

Kristof, please correct the proposal.
(0014145)
Kristóf Szabados (reporter)
18-08-2016 08:09

I have corrected the issue I noticed, please review.
(0014159)
Jacob Wieland - Spirent (reporter)
18-08-2016 15:36

please implement
(0014398)
Gyorgy Rethy (reporter)
12-12-2016 20:21

Added to draft V4.8.2

- 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


MantisBT 1.2.14 [^]
Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker