Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Update Regex Msg for Config?

    This is trivial, but FYI...

    I tried passing a UNC path to a server-side class via Config.getProperty() from the server.properties file.

    If failed because the path has a dollar sign (Windows),
    e.g.,
    Code:
    [server.properties]
    ...
    testPath: \\\\MyServer\\Q$\\MyPath\\
    Smart GWT (I assume) shows a server console error:
    Code:
    ...
    java.lang.Exception: found variable expansion for directive ''but I'm unable to match the characters following as a legitimate variable name. Acceptable variable names must match [a-zA-Z_0-9].
        at com.isomorphic.base.ConfigParser.interpolateVariable(ConfigParser.java:187)
        at com.isomorphic.base.ConfigParser.interpolate(ConfigParser.java:129)
        at com.isomorphic.base.ConfigParser.get(ConfigParser.java:82)
        at org.apache.commons.collections.map.AbstractMapDecorator.get(AbstractMapDecorator.java:95)
        at com.isomorphic.base.Config.get(Config.java:322)
        at com.isomorphic.base.Config.getProperty(Config.java:118)
    ...
    I can work around the dollar sign, but...

    I'm just reporting that the error message ain't quite right, as the Config parser does process the backslash characters without error, though they are not in the list "[a-zA-Z_0-9]".

    SmartClient Version: v9.1p_2016-08-26/PowerEdition Deployment (built 2016-08-26)
Working...
X