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

Duplicate sites can be created with SitesManager.addSite #1262

Closed
anonymous-matomo-user opened this issue Mar 30, 2010 · 1 comment
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

When using the API and calling:

SitesManager.addSite

One can add the same URL infinitely, with no errors. New database entries are created.

Unless I'm missing some reason one would want to have multiple site entries with the same URL, this should be considered a bug.

It would convenient if the method just returned the existing record, perhaps?

@robocoder
Copy link
Contributor

There may be use cases (e.g., split a/b testing, aggregating multiple sites), where a site might have more than one id associated with a URL.

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 0.6 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants