Skip to content

How we should behave with uncompliant / bad header #6

@sbernard31

Description

@sbernard31

I think we should decide what we should do with uncompliant / bad header.

I know by the past "robustness principle" was preferred but I don't like to much the idea at least as default behavior.
I write my opinion about it in Leshan wiki : https://github.com/eclipse-leshan/leshan/wiki/How-Leshan-should-behave-with-Non-Compliant-Implementations-%3F

So I prefer a strict Compliance by default meaning that each unexpected format of data will raise an exception.
Or at very least will raise a log.
My preferred way would be raise an exception by default and eventually be able to configure (or override code) to let user log instead.

Here is some part of the code which lead to that kind of questions :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions