Skip to content

Regression: non-tabular OIDs respond with noSuchInstance even when my handler sets a value #269

@thom-nic

Description

@thom-nic

Regression from 3.15 -> 3.19.1

I tracked this down to a change introduced in 161849c

Specifically, the method signature of MibNode.prototype.setValue was changed so the first argument is typeFromSet instead of newValue. We call this method when we dynamically set OID values from a handler.

Mark, what's your versioning policy, and should it be expected for a minor version change to introduce incompatible changes?

I can adapt my code, but I'm opening this issue to call out the breaking change in case anyone else runs into this same issue when upgrading.

I also ran into several other issues during upgrade where constraint validation failed but that was because I was trying to set a value that legit violated the MIB constraints. This is my problem but it's still an unexpected/ breaking change for a minor version bump. It would have been nice to have an option to disable the constraint checking/ maintain the old behavior for compatibility but at this point I've resolved most of the issues.

Actually I see a third problem here but I'll open a separate issue for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions