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

Tagging an IP through User-ID with a tag it already has produces an empty error #98

Open
freakytoad1 opened this issue Jan 27, 2023 · 0 comments

Comments

@freakytoad1
Copy link

freakytoad1 commented Jan 27, 2023

Using the connection.UserId.Run(<msg>, "") function and sending an iptag update to tag an ip with a tag it already has registered, an empty error message is returned.

PanGo 0.8.0

// IP '192.0.2.1' has tags: 'tag1' already registered

msg := &userid.Message{
	TagIps: []userid.TagIps{
		{
			Ip: "192.0.2.1",
			Tags: []string{"tag1","tag2"},
		}
	}
}

if err := connection.UserId.Run(msg, ""); err != nil {
	log.Printf(err)
}

// Produces an empty error with no message
// 'tag2' is successfully registered still
// Output: ""
// See picture for debug look at the err.

Empty Message inside non-nil error:
image

An actual nil error is returned if the tag additions requested are all new tags for the IP.

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