Skip to content

Restrict plugin name to 60 characters #18727

@tsteur

Description

@tsteur

Follow up from https://github.com/matomo-org/matomo/pull/18723/files#r797936437

We have been using 40 characters in some columns, in some others 60 for plugin_name.

We should adjust isValidPluginName method to check the length in the regex and if not valid, throw an exception? It may be painful for some people to rename the plugin but at least on Marketplace the length has been already enforced.

The Marketplace itself enforces a length of 40 characters. Happy to increase this to 60 characters if better.

We want to make sure that

  • Marketplace and Matomo itself validate plugin name
  • All DB columns use same length

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: PlatformFor Matomo platform changes that aren't impacting any of our APIs but improve the core itself.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions