Table creation fails. mssql schema contains ${schemaObjectPrefix} and ${tableSpace}, but code only replaces ${schemaObjectPrefix}. ----------------------------------------------------------------------------------------------------------------------------------
Key: JCR-2284 URL: https://issues.apache.org/jira/browse/JCR-2284 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-core Affects Versions: 1.6.0 Environment: windows vista. jdk1.6.0_16. mssql 2005 Reporter: etirk Priority: Blocker Table creation fails during startup. The mssql schema contains ${schemaObjectPrefix} and ${tableSpace}, but the java code only replaces ${schemaObjectPrefix}. Either wildcard replacement code is added like below, or the ${tableSpace} propertyHolder in mssql.ddl must be removed. ... public class DatabaseFileSystem implements FileSystem { ... protected static final String SCHEMA_OBJECT_PREFIX_VARIABLE = "${schemaObjectPrefix}"; ... sql = createSchemaSql(sql); stmt.executeUpdate(sql); ... /** * Replace wildcards. */ protected String createSchemaSql(String sql) { sql = Text.replace(sql, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix); // Critical lines replaceing the rest of the wildcards should be placed here!!! return sql; } ... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.