From f83143f461f37c6e64771f31813a5689943168ce Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Fri, 21 Nov 2025 17:25:35 +0100 Subject: [PATCH 1/2] Add error on local redirect --- md/clause-12.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/md/clause-12.md b/md/clause-12.md index dee41f8..17ae2b9 100644 --- a/md/clause-12.md +++ b/md/clause-12.md @@ -59,6 +59,7 @@ exceptions shall apply: - If the [Context Source]{.HTML-Keyboard} to be registered has its _`mode`_ property defined as **exclusive**, the following additional restrictions apply: + - If an **exclusive** or **redirect** [Context Source Registration]{.HTML-Keyboard} already matches against the Entity ID (URI) and any of the Attributes defined in the registration, an error of type @@ -68,16 +69,20 @@ exceptions shall apply: an error of type [Conflict]{.HTML-Error} shall be raised. - If the [Context Source]{.HTML-Keyboard} to be registered has its _`mode`_ - property defined as **redirect**, the following additional restriction - applies: + property defined as **redirect**, the following additional restrictions apply: + - If an existing Entity already matches the [Context Source Registration]{.HTML-Keyboard}, an error of type [Conflict]{.HTML-Error} shall be raised. + - If the _`endpoint`_ property matches the URL of the [Context + Broker]{.HTML-Keyboard} itself, an error of type [Conflict]{.HTML-Error} + shall be raised. - If the [Context Source]{.HTML-Keyboard} to be registered has its _`mode`_ property defined as **auxiliary**, the following additional restriction applies: - - If the _operations_ property is not defined as one of: + + - If the _`operations`_ property is not defined as one of: ["retrieveOps"]{.HTML-Code}, ["retrieveEntity"]{.HTML-Code} or ["queryEntity",]{.HTML-Code} or a combination thereof, an error of type [BadRequestData]{.HTML-Error} shall be raised. @@ -160,6 +165,7 @@ Figure: Update context source registration use case - If the [Context Source Registration]{.HTML-Keyboard} to be updated has its _`mode`_ property defined as **exclusive**, the following additional restrictions apply: + - If an **exclusive** or **redirect** [Context Source Registration]{.HTML-Keyboard} already matches against the Entity ID (URI) and any of the Attributes defined in the registration, an error of type @@ -170,14 +176,19 @@ Figure: Update context source registration use case - If the [Context Source Registration]{.HTML-Keyboard} to be updated has its _`mode`_ property defined as **redirect**, the following additional - restriction applies: + restrictions apply: + - If an existing Entity already matches the [Context Source Registration]{.HTML-Keyboard}, an error of type [Conflict]{.HTML-Error} shall be raised. + - If the _`endpoint`_ property matches the URL of the [Context + Broker]{.HTML-Keyboard} itself, an error of type [Conflict]{.HTML-Error} + shall be raised. - If the [Context Source]{.HTML-Keyboard} to be updated has its _`mode`_ property defined as **auxiliary**, the following additional restriction applies: + - If the [operations]{.HTML-Code} property is not defined as one of: ["retrieveOps"]{.HTML-Code}, ["retrieveEntity"]{.HTML-Code} or ["queryEntity"]{.HTML-Code}, an error of type [BadRequestData]{.HTML-Error} -- GitLab From e11fd154d44e31ee8cd3b9455a8da85bf1130bd6 Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Tue, 2 Dec 2025 11:05:29 +0100 Subject: [PATCH 2/2] Amend text --- md/clause-12.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/md/clause-12.md b/md/clause-12.md index 17ae2b9..3e0e020 100644 --- a/md/clause-12.md +++ b/md/clause-12.md @@ -74,7 +74,7 @@ exceptions shall apply: - If an existing Entity already matches the [Context Source Registration]{.HTML-Keyboard}, an error of type [Conflict]{.HTML-Error} shall be raised. - - If the _`endpoint`_ property matches the URL of the [Context + - If the _`endpoint`_ and _`tenant`_ properties match the [Context Broker]{.HTML-Keyboard} itself, an error of type [Conflict]{.HTML-Error} shall be raised. @@ -181,7 +181,7 @@ Figure: Update context source registration use case - If an existing Entity already matches the [Context Source Registration]{.HTML-Keyboard}, an error of type [Conflict]{.HTML-Error} shall be raised. - - If the _`endpoint`_ property matches the URL of the [Context + - If the _`endpoint`_ and _`tenant`_ properties match the [Context Broker]{.HTML-Keyboard} itself, an error of type [Conflict]{.HTML-Error} shall be raised. -- GitLab