Commit f83143f4 authored by Jason Fox's avatar Jason Fox
Browse files

Add error on local redirect

parent eebe97d6
Loading
Loading
Loading
Loading
Loading
+15 −4
Original line number Diff line number Diff line
@@ -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}