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

ID | Project | Category | View Status | Date Submitted | Last Update
0003315 | Part 01: TTCN-3 Core Language | Technical | public | 06-05-2008 15:32 | 10-12-2008 09:06

Reporter | Gyorgy Rethy |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | minor | Reproducibility | always
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.1.1 (published 2009-06) | Fixed in Version | v4.1.1 (published 2009-06) |
Clause Reference(s) | $B.1.4.1
Source (company - Author) | L.M.Ericsson

Summary | 0003315: Allow length matching attribute for value list and pattern matching mechanism

Description

Current text of paragraph 1 of $B.1.4.1 is:
"The length restriction attribute is used to restrict the length of string values matching the template and the number of elements in a set of, record of or array structure. It shall be used only as an attribute of the following mechanisms: AnyValue, AnyValueOrNone, AnyElement and AnyElementsOrNone (but not inside permutation), permutation, superset and subset. It can also be used in conjunction with the complement matching mechanism and with the if present attribute. The syntax for length can be found in clauses 6.2.3 and 6.3.3."
1) There is no reason to disallow (not to allow) using the length attribute for pattern matching; it would be useful in practice (e.g. match only strings of certain length from the set of strings matching the pattern).
2) There is no reason to disallow the length attribute for value lists (pl. note, the value list may contain also templates);
3) Editorial comment: ComplimentedList is a matching mechanism just like AnyValue etc., it should be listed with the other mechanisms instead of mentioning it in a separate sentence.
4) Editorial comment:"(but not inside permutation)" should be added to permutation instead of AnyElementsOrNone

Steps To Reproduce |

Additional Information

It is proposed to amend the above paragraph as:
"The length restriction attribute is used to restrict the length of string values matching the template and the number of elements in a set of, record of or array structure. It shall be used only as an attribute of the following matching mechanisms: ValueList, ComplementedList, AnyValue, AnyValueOrNone, AnyElement, AnyElementsOrNone, superset, subset, pattern and permutation (but not inside permutation). It can also be used in conjunction with the if present matching attribute. The syntax for length can be found in clauses 6.2.3 and 6.3.3."
NOTE: When the length attribute is used with a value list, elements of the list may be disabled by the attribute.

Tags | No tags attached.
Relationships |
Attached Files | CR3315_Allow_length_matching_for_value_list_and_pattern_01.doc (200,192) 27-11-2008 09:54 http://oldforge.etsi.org/mantis/file_download.php?file_id=1811&type=bug

Issue History
Date Modified | Username | Field | Change
06-05-2008 15:32 | Gyorgy Rethy | New Issue |
06-05-2008 15:32 | Gyorgy Rethy | Status | new => assigned
06-05-2008 15:32 | Gyorgy Rethy | Assigned To | => Ina Schieferdecker
06-05-2008 15:32 | Gyorgy Rethy | Clause Reference(s) | => $B.1.4.1
06-05-2008 15:32 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
09-05-2008 09:41 | Ina Schieferdecker | Target Version | => Edition 4.1.1 (not yet published)
26-11-2008 15:03 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => Thomas DeiÃŸ
27-11-2008 09:54 | Thomas DeiÃŸ | File Added: CR3315_Allow_length_matching_for_value_list_and_pattern_01.doc |
27-11-2008 10:01 | Thomas DeiÃŸ | Note Added: 0007467 |
27-11-2008 10:01 | Thomas DeiÃŸ | Assigned To | Thomas DeiÃŸ => Gyorgy Rethy
27-11-2008 14:10 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Ina Schieferdecker
27-11-2008 14:11 | Gyorgy Rethy | Status | assigned => resolved
27-11-2008 14:11 | Gyorgy Rethy | Resolution | open => fixed
27-11-2008 14:11 | Gyorgy Rethy | Note Added: 0007476 |
10-12-2008 09:06 | Ina Schieferdecker | Status | resolved => closed
10-12-2008 09:06 | Ina Schieferdecker | Fixed in Version | => Edition 4.1.1 (not yet published)

Notes

(0007467)
Thomas DeiÃŸ
27-11-2008 10:01

Proposed solution is ok. (one editorial correction). Two examples corrected (unrelated to this CR)

(0007476)
Gyorgy Rethy
27-11-2008 14:11

Checked, OK.