plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
248 stars 188 forks source link

Resource registries: values for JS/CSS resource don't ignore trailing/leading whitespaces #1212

Open zopyx opened 8 years ago

zopyx commented 8 years ago

The configuration of JS and CSS resources in registry.xml is sensitive to trailing or leading whitespaces

<value key="css">             <element>++resource++xmldirector.plonecore/DataTables/media/css/jquery.dataTables.css</element>  </value>

Having whitespace before or after the path leads to often undetected compilation problems that are not reported properly. Either the error reporting should be improved or the paths should be stripped from whitespaces.

davisagli commented 2 years ago

In Plone 6 css and js are no longer configured in the registry in this way, but I suspect the broader issue still remains and needs some thought about when it is safe to strip registry values and when it isn't.