Hi everyone,
I'm developing custom Java connector for CKFinder. The problem is after GetFolders command I cannot see them on the folder´s panel.
This is the sequence:
Request:
Command: Init Type: Images Current folder: null
Response:
<?xml version="1.0" encoding="UTF-8"?> <Connector><Error number="0"/> <ConnectorInfo enabled="true" s="" c="" thumbsEnabled="true"/> <ResourceTypes><ResourceType name="Files" url="/files/" allowedExtensions="" deniedExtensions="php,php3,php5,phtml,asp,aspx,ascx,jsp,cfm,cfc,pl,bat,exe,dll,reg,cgi" defaultView="Thumbnails" acl="255" hasChildren="true" hash="4d0aa2a03837c308"/> <ResourceType name="Images" url="/images/" allowedExtensions="jpg,gif,jpeg,png" deniedExtensions="" defaultView="Thumbnails" acl="255" hasChildren="true" hash="4d0aa2a03837c308"/> <ResourceType name="Flash" url="/flash/" allowedExtensions="swf,fla" deniedExtensions="" defaultView="Thumbnails" acl="255" hasChildren="true" hash="4d0aa2a03837c308"/> </ResourceTypes> </Connector>
Request:
Command: GetFolders Type: Flash Current folder: /
Response:
<?xml version="1.0" encoding="UTF-8"?> <Connector resourceType="Flash"><Error number="0"/><CurrentFolder path="/" url="/flash/" acl="255"><Folders/></CurrentFolder></Connector>
Request:
Command: GetFiles Type: Flash Current folder: /
Response:
<?xml version="1.0" encoding="UTF-8"?> <Connector resourceType="Flash"> <Error number="0"/> <CurrentFolder path="/" url="/flash/" acl="255"> <Files> <File name="file1_flash.txt" date="200909072023" size="1"/> <File name="file2_flash.txt" date="200909072023" size="1"/> </Files> </CurrentFolder> </Connector>
Request:
Command: GetFolders Type: Files Current folder: /
Response:
<?xml version="1.0" encoding="UTF-8"?> <Connector resourceType="Files"> <Error number="0"/> <CurrentFolder path="/" url="/files/" acl="255"> <Folders> <Folder name="folder_inside_files" hasChildren="true" acl="255"/> </Folders> </CurrentFolder> </Connector>
After issuing these requests I can't see folders nor files. What may be the problem? I set no-cache header, I double checked clear cache in my browser, nothing helps. Also, I checked Error Console on Firefox, there are no erros, I checked with Live HTTP Header, no responses other than 200.
Re: issue with GetFolders command
Re: issue with GetFolders command
Note that Folders/Files elements should not be wrapped by the CurrentFolder element:
In the XML responses that you have pasted, Folders element is inside of the CurrentFolder element.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+