View Issue Details

IDProjectCategoryView StatusLast Update
000843210000-004: ServicesSpecpublic2022-12-07 14:44
ReporterMaximilian Assigned ToMatthias Damm  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Target Version1.05.03 RC1Fixed in Version1.05.03 RC1 
Summary0008432: Missing Statuscode for Index Range not compatible with data to write
Description

Scenario:
Writing an Array[2] with index range (2:3) to an Array[5] is fine.
But writing an Array[2] with an index rang (1:4) to an Array[5] leads to an mismatch in index range length and array length (2<4).
Even if the Array to write is bigger than the index range.

What statuscode should be send by the server receiving this write request.

The definition of the Statuscodes BadIndexRangeInvalid and BadIndexRangeNoData do not match with this situation in my opinion.

We would asume a Statuscode like BadIndexRangeDataMissmatch or BadIndexRangeDataInvalid.
Or should we use some complete different type of StatusCode.

The Spec defines some aspects in NumericRange:
Bad_IndexRangeInvalid is only used for invalid syntax of the NumericRange. All other invalid requests with a valid syntax shall result in Bad_IndexRangeNoData.
When writing a value, the size of the array shall match the size specified by the NumericRange. The Server shall return an error if it cannot write all elements specified by the Client.

The second one is the same as in our scenario but it is not mentioned what error a Server shall return. Or is it Bad_IndexRangeNoData because it is no syntax issue? We think a more detailed StatusCode would be appreciated

TagsNo tags attached.
Commit Version
Fix Due Date

Relationships

related to 0008518 closedRandy Armstrong NodeSets, XSDs and Generated Code Missing Statuscode for Index Range not compatible with data to write 

Activities

Matthias Damm

2022-12-06 15:53

developer   ~0018245

Discussion in UA WG meeting - we want to add a new status code

Matthias Damm

2022-12-06 20:02

developer   ~0018252

Table 61 – Write Operation Level Result Codes

Added StatusCode

Bad_IndexRangeDataMismatch
The written data does not match the IndexRange specified.

Jim Luth

2022-12-07 14:44

administrator   ~0018265

Agreed to changes edited in Virtual F2F.

Issue History

Date Modified Username Field Change
2022-11-09 13:20 Maximilian New Issue
2022-11-09 13:53 Paul Hunkar Project Specifications => 10000-004: Services
2022-11-15 17:27 Jim Luth Assigned To => Matthias Damm
2022-11-15 17:27 Jim Luth Status new => assigned
2022-11-15 17:27 Jim Luth Target Version => 1.05.03 RC1
2022-12-06 15:53 Matthias Damm Note Added: 0018245
2022-12-06 20:02 Matthias Damm Status assigned => resolved
2022-12-06 20:02 Matthias Damm Resolution open => fixed
2022-12-06 20:02 Matthias Damm Fixed in Version => 1.05.03 RC1
2022-12-06 20:02 Matthias Damm Note Added: 0018252
2022-12-07 14:43 Jim Luth Issue cloned: 0008518
2022-12-07 14:43 Jim Luth Relationship added related to 0008518
2022-12-07 14:44 Jim Luth Status resolved => closed
2022-12-07 14:44 Jim Luth Note Added: 0018265