I came upon this when upgrading an old Plone 5.1 to Plone 5.2 using buildout.
When I attempted to launch an instance I get this output:
zope.configuration.exceptions.ConfigurationError: Invalid value for 'name'
...
plone/buildout-cache/eggs/plone.app.event-3.2.14-py2.7.egg/plone/app/event/browser/configure.zcml", line 8.4-12.10
InvalidValue: plone.app.event
As a quick experiment I edited the configure.zcml file of the plone.app.event package and changed the line:
<plone:static
name="plone.app.event"
type="plone"
directory="resources"
/>
to
<plone:static
name="plone_app_event"
type="plone"
directory="resources"
/>
This resolved that issue but then I got this:
zope.configuration.exceptions.ConfigurationError: Invalid value for 'name'
.... plone/buildout-cache/eggs/plone.app.discussion-3.4.9-py2.7.egg/plone/app/discussion/browser/configure.zcml", line 142.4-146.10
InvalidValue: plone.app.discussion.javascripts
Again this was resolved by replacing the dots with underscores:
<plone:static
name="plone_app_discussion_javascripts"
type="plone"
directory="javascripts"
/>
The pattern repeats itself...
It seems that the allowed characters for names of static resources has been changed.
It does not allow dots or dashes ('.','-')... my current hunch is that I need to change the version of my static resource package.