
|
If you were logged in you would be able to see more operations.
|
|
|
The code in org.compass.core.config.builder.SchemaConfigurationBuilder does not parse the "path" attribute for ram and mmap connections:
(around line 353 in release 1.0.0)
child = DomUtils.getChildElementsByTagName(ele, "mmap", true);
if (child.size() == 1) {
Element connEle = (Element) child.get(0);
String path = DomUtils.getElementAttribute(connEle, "mmap");<------ should be "path"
if (!path.startsWith("mmap://")) {
path = "mmap://" + path;
}
settings.setSetting(CompassEnvironment.CONNECTION, path);
return;
}
// — RAM Connection —
child = DomUtils.getChildElementsByTagName(ele, "ram", true);
if (child.size() == 1) {
Element connEle = (Element) child.get(0);
String path = DomUtils.getElementAttribute(connEle, "ram"); //<------ should be "path"
if (!path.startsWith("ram://")) {
path = "ram://" + path;
}
settings.setSetting(CompassEnvironment.CONNECTION, path);
return;
}
|
|
Description
|
The code in org.compass.core.config.builder.SchemaConfigurationBuilder does not parse the "path" attribute for ram and mmap connections:
(around line 353 in release 1.0.0)
child = DomUtils.getChildElementsByTagName(ele, "mmap", true);
if (child.size() == 1) {
Element connEle = (Element) child.get(0);
String path = DomUtils.getElementAttribute(connEle, "mmap");<------ should be "path"
if (!path.startsWith("mmap://")) {
path = "mmap://" + path;
}
settings.setSetting(CompassEnvironment.CONNECTION, path);
return;
}
// — RAM Connection —
child = DomUtils.getChildElementsByTagName(ele, "ram", true);
if (child.size() == 1) {
Element connEle = (Element) child.get(0);
String path = DomUtils.getElementAttribute(connEle, "ram"); //<------ should be "path"
if (!path.startsWith("ram://")) {
path = "ram://" + path;
}
settings.setSetting(CompassEnvironment.CONNECTION, path);
return;
} |
Show » |
|
I fixed it in both 1.1 M1 and 1.0 branch, since it is a major bug. It means that it should be available soon under 1.1 M1 SNAPSHOT, and will be part of the 1.0.1 bug fix release.