1 Reply Latest reply on Mar 13, 2012 12:56 AM by Claus Ibsen

    Errors when install dir contains '(' or ')'

    Jack Jonson Newbie

      Component: org.apache.felix.fileinstall-3.1.10

       

      In class: org.apache.felix.fileinstall.internal.ConfigInstaller

       

      Method:

          Configuration findExistingConfiguration(String fileName) throws Exception

          {

              String filter = "(" + DirectoryWatcher.FILENAME + "=" + fileName + ")";

              Configuration[] configurations = getConfigurationAdmin().listConfigurations(filter);

              ...

       

      If path contains special chars (e.g. parentheses) "filter" variable above is an invalid OSGi LDAP filter and servicemix cannot start correctly.