Commit 6db89fde authored by Giuseppe Tropea's avatar Giuseppe Tropea
Browse files

Merge branch 'fix/local-redirect-error' into 'master'

DATA(25)000172_NGSI-LD_Core_Add_Error_on_Local_Redirect

See merge request !15
parents 92a279b5 16d8182f
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`_ and _`tenant`_ properties match 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`_ and _`tenant`_ properties match 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}