(This bug report previously at: http://dev.fckeditor.net/ticket/3080 but apparently that site is for (F)CKEditor only.)
in addACLEntry in AccessControlConfig.php, $rulesMasks is undefined.
If display_errors is on, this results in an error being spat out to the XML response, resulting in invalid XML, so this is not merely a hypothetical problem.
If I supply $config['AccessControl'] as
$config['AccessControl'] = array ( 0 => array ( 'role' => '*', 'resourceType' => '*', 'folder' => '/travel', 'folderView' => 1, 'folderCreate' => 1, 'folderRename' => 0, 'folderDelete' => 0, 'fileView' => 1, 'fileUpload' => 1, 'fileRename' => 1, 'fileDelete' => 1, ), 1 => array ( 'role' => '*', 'resourceType' => '*', 'folder' => '/travel', 'folderView' => 1, 'folderCreate' => 1, 'folderRename' => 1, 'folderDelete' => 1, 'fileView' => 1, 'fileUpload' => 1, 'fileRename' => 1, 'fileDelete' => 1, ), );
The following dialog comes up in IE or Chrome (firefox also presumably gets the same thing but just doesn't give the dialog) :
<?xml version="1.0" encoding="utf-8"?><br /> <b>Notice</b>: Undefined variable: rulesMasks in <b>/path/to/ckfinder_1.3.1/core/connector/php/php5/Core/AccessControlConfig.php</b> on line <b>122</b><br /> <br /> <b>Notice</b>: Undefined variable: rulesMasks in <b>/path/to/ckfinder_1.3.1/core/connector/php/php5/Core/AccessControlConfig.php</b> on line <b>123</b><br /> <Connector><Error number="0" /><ConnectorInfo enabled="true" s="" c="" thumbsEnabled="true" thumbsUrl="/_thumbnails/" thumbsDirectAccess="false" /><ResourceTypes /></Connector>
I know there is a repeated value for folder but I don't think that a crash is an appropriate response if the upstream ACL generator doesn't filter that.
Re: Bug report: CKFinder 1.3.1: undefined variable: rulesMasks
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+