Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion on Redirect should not 207 #1754

Open
jason-fox opened this issue Feb 25, 2025 · 0 comments
Open

Deletion on Redirect should not 207 #1754

jason-fox opened this issue Feb 25, 2025 · 0 comments

Comments

@jason-fox
Copy link
Member

jason-fox commented Feb 25, 2025

I have a redirect registration for all entities - Orion is just a wrapper:

{
    "type": "ContextSourceRegistration",
    "information": [
        {
            "entities": [
                {
                    "type": "*"
                }
            ]
        }
    ],
    "contextSourceInfo": [
        {
            "key": "jsonldContext",
            "value": "http://context/fixed-context.jsonld"
        },
        {
            "key": "Prefer",
            "value": "ngsi-ld=1.6"
        }
    ],
    "mode": "redirect",
    "operations": [
        "redirectionOps"
    ],
    "endpoint": "http://my-endpoint"
}

I delete a non-existent entity and Orion-LD returns a 207:

{
  "notUpdated": [
    {
      "statusCode": 404,
      "title": "Not Found",
      "detail": "urn:ngsi-ld:Xsara"
    },
    {
      "registrationId": "urn:ngsi-ld:ContextSourceRegistration:c326536a-f35a-11ef-ad05-0242ac140009",
      "statusCode": 404,
      "title": "Not Found"
    }
  ],
  "updated": []
}

However this is a REDIRECT - so we should not be checking locally - should just return a proxied 404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant