Commit 36cf748b authored by kzangeli's avatar kzangeli
Browse files

fix(local): 016_02_06 expect 400 for embedded empty attr-name segment

PATCH /temporal/entities/{id}/attrs//{instanceId} carries an embedded
empty path segment. Per RFC 3986 §6.2.2.3 (the URI-comparison reference
TS 104-175 §8.1 defers to) only dot-segments are normalized — empty
segments are preserved as distinct components. So the path is the
/attrs/{attrId}/{instanceId} family with attrId="", where PATCH IS
defined; the empty attribute name is invalid content => 400, not 405
(405 would require collapsing // to /, which RFC 3986 forbids).

The broker is correct; the suite's 405 was the only failing case in
016_02 (the sibling 016_02_04 trailing-slash case resolves to the
DELETE-only resource and stays 405). Findings recorded on forge
issue #110 (spec-discussion); local branch only, no MR.
parent 8a2d8ace
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ ${fragment_filename}= vehicle-temporal-modify-attribute-instance-fragment.
016_02_05 Modify Attribute Instance In Temporal Representation Of An Entity If The Attribute Name Is Not A Valid Name
    ${temporal_entity_representation_id}    invalid(Id    ${valid_instanceId}    400
016_02_06 Modify Attribute Instance In Temporal Representation Of An Entity If The Attribute Name Is Not Present
    ${temporal_entity_representation_id}    ${EMPTY}    ${valid_instanceId}    405
    ${temporal_entity_representation_id}    ${EMPTY}    ${valid_instanceId}    400


*** Keywords ***