core icon indicating copy to clipboard operation
core copied to clipboard

Issues with plugins deployment and variables with extra white spaces on properties file

Open joseorsini opened this issue 14 years ago • 3 comments

This has happened on many clients that use plugins to override variables on src-conf/dotmarketing-config.properties.

There are some variables on this file that have some extra white spaces before and after the '=' character, e.g.

VELOCITYPAGEEXTENSION = dot

Many of the plugins we have done for clients (specially customized plugins) that should override variables like this one don't work at all because the plugin deployment process can't find the variables on the properties file and override them with the new values.

After the white spaces are deleted, the variable is overriden as expected, but we shouldn't tell the client to edit the src-conf/dotmarketing-config.properties file directly, that's why we use the plugins.

Is there any chance we can get rid of these extra white spaces?

P.S. This also happens for any *.properties file (like portal.properties).

joseorsini avatar Jul 17 '12 14:07 joseorsini

This is the same issue that HCC and Constant Contact has when deploying the plugin unsuccessfully so that would be the first thing I'd recommend checking if anyone experiences this same issue.

levosgien avatar Jul 17 '12 15:07 levosgien

RIght I always recommend that clients copy/paste directly from src-conf to plugin file. Then ONLY change the right side of teh equals and never mess with left side.

We don't want to alter because that would break everyone else who is working now.

The real solution is to make the plug merger code be more forgiving here and trim better. This is dangerous code though and isn't really a bug once u understand what is happening.

jtesser avatar Jul 17 '12 15:07 jtesser

dupe: #11824

wezell avatar Jun 06 '17 14:06 wezell