openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

Cache response is different from live response when field filter is having invalid value #924

Closed Ziabatcha closed 3 months ago

Ziabatcha commented 5 months ago

When live response is retrieved with invalid filter, observing 400 bad request code. But same request is executed for cache, observing response code as 200.

curl -X GET "/core-model-1-4:network-control-domain=live/control-construct=CO17694/logical-termination-point=LTP-MWPS-TTP-3-1/layer-protocol=LP-MWPS-TTP-3-1/air-interface-2-0:air-interface-pac/air-interface-configuration?fields=%5C%5C" -H "accept: application/json" 
{
  "code": 400,
  "message": "Bad Request"
}

Cache response:

curl -X GET "/core-model-1-4:network-control-domain=cache/control-construc=CO17694/logical-termination-point=LTP-MWPS-TTP-3-1/layer-protocol=LP-MWPS-TTP-3-1/air-interface-2-0:air-interface-pac/air-interface-configuration?fields=%5C%5C" -H "accept: application/json"

{
  "air-interface-2-0:air-interface-configuration": {}
}
Ziabatcha commented 4 months ago

Issue still observed with latest package MWDI 1.1.0.a_impl Observing 500 Internal server error when tried to retrieve the config with invalid filter.

http://xx:xx/core-model-1-4:network-control-domain=cache/control-construct=CO17694/logical-termination-point=LTP-MWPS-TTP-3-1/layer-protocol=LP-MWPS-TTP-3-1/air-interface-2-0:air-interface-pac/air-interface-configuration?fields=aa

{
  "code": 500,
  "message": "Internal Server Error"
}
nardecchia-siae commented 3 months ago

Tested with version 1.1.2.d_impl

330439753-a5f1cacc-8f3a-4123-946b-3f8807565a8f
Ziabatcha commented 3 months ago

Tested okay with 1.1.2d

image

image