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

Crash when updating attribute with empty JSON Object #3995

Closed
fgalan opened this issue Nov 10, 2021 · 2 comments
Closed

Crash when updating attribute with empty JSON Object #3995

fgalan opened this issue Nov 10, 2021 · 2 comments
Labels
Milestone

Comments

@fgalan
Copy link
Member

fgalan commented Nov 10, 2021

Doing an update in existing entity like this:

curl 'localhost:1026/v2/entities/E/attrs?type=T' -H 'content-type: application/json' --data-raw '{
        "A": {
            "type": "object",
            "value": {}
	}
}'

Makes de broker to crash.

I think this bug was introduced in Orion 3.3.0 version. Previous versions are not affected.

@fgalan fgalan added the bug label Nov 10, 2021
@fgalan
Copy link
Member Author

fgalan commented Nov 10, 2021

Probably also happens with "value": []

@fgalan
Copy link
Member Author

fgalan commented Nov 10, 2021

Fixed in PR #3996 (master) and #3997 (release/3.3.0)

@fgalan fgalan closed this as completed Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant