WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

kite: scrubbing misses dnode.Functions in embedded structs #212

@rjeczalik

Description

@rjeczalik

When a value of the following struct is sent to server and Callback is a valid dnode.Function value, server correctly scrubs the value:

type Req struct {
    Callback dnode.Function
}

However if client sends a value of the following type:

type WrappedReq struct {
    Req
}

With a valid Callback field, the very same field is incorrectly unmarshaled / scrubbed server-side, thus rendering the callback unusable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions