Luis,
The more I look into this the more I don’t understand what is going on, it seems that if I make a call to anything that is not in the interceptor then this problem exists.
For example I have the following in my interceptor now.
public void function cbui_beforeHeadEnd(event, interceptData) {
appendToBuffer(addAssets(event, interceptData));
}
private string function addAssets(event, interceptData) {
var assetRoot = event.getModuleRoot(‘syntaxHighlighter’) & “/assets/”;
var assets = [];
var shBrushes = settingService.getBrushSettings();
var shTheme = settingService.getThemeSettings();
arrayAppend(assets, assetRoot & ‘styles/shCore.css’);
arrayAppend(assets, assetRoot & ‘styles/#shTheme#’);
arrayAppend(assets, assetRoot & ‘scripts/shCore.js’);
var brushes = listToArray(shBrushes);
for (var brush in brushes) {
arrayAppend(assets, assetRoot & ‘scripts/#brush#’);
}
return addAsset(arrayToList(assets), false);
}
If I modify the return to something like this in the AddAssets it still fails.
return ‘something’;
if I then modify the AddAssets to this it works.
private string function addAssets(event, interceptData) {
var assetRoot = event.getModuleRoot(‘syntaxHighlighter’) & “/assets/”;
var assets = [];
arrayAppend(assets, assetRoot & ‘styles/shCore.css’);
arrayAppend(assets, assetRoot & ‘scripts/shCore.js’);
return ‘something’;
}
Now from what I can tell it is a combination of these missing and changed pieces that are effecting the requestBuffer. If I make the calls to settingService to return just what they are supposed to as a string even will not work so it appears that a call to anything outside of this method causes issues.
I am now dumb founded where to go from here, I am not even sure this is either a ContentBox or ColdBox problem now.
Any ideas Luis?