dkd / typo3-ext-cmis-fal

A TYPO3 CMS FAL driver for CMIS
3 stars 0 forks source link

"An error occurred trying to process items for field "Repository folder to use as storage" (String could not be parsed as XML)." #3

Open jdequeant opened 8 years ago

jdequeant commented 8 years ago

Hi,

I've got an error "An error occurred trying to process items for field "Repository folder to use as storage" (String could not be parsed as XML)." when I choose CMIS Driver on new File Storage.

After debug, I replace this line : $serverName = $this->getFlexFormValue($parameters['row']['configuration'], 'repository');

by : $serverName = $parameters['row']['repository'];

because $parameters['row']['configuration'] returns null.

in Classes/UserFunction/RootFolderSelectorFiller.php on line 28 and finally it works.

Is it the best way to do this ?

Cheers,

Johan DEQUEANT. W-seils, Nantes.

NamelessCoder commented 8 years ago

Hi Johan,

Did you run the TYPO3 CLI command to initialize cmis_fal?

If you did: have you changed the target CMIS repository at some point?

jdequeant commented 8 years ago

I've run composer to initialize cmis_fal, is that TYPO3 CLI command ? I've not changed the CMIS repository (it's a basic repository just for demo).

Thanks,

Johan DEQUEANT. W-seils, Nantes.

NamelessCoder commented 8 years ago

There is a special command to initialize the FAL driver:

./typo3/cli_dispatch.phpsh extbase cmisfal:initialize

(there's a corresponding command for cmis:initialize if you also use the cmis_service feature set)

NamelessCoder commented 8 years ago

Just a side note: you can also create and configure a CMIS FAL storage like you normally would, it's just easier to use the initialize command. To do it manually, locate or create the "storage" record the global root page (uid 0) and edit the properties through it.

jdequeant commented 8 years ago

Thanks for your answers,

When I try ./typo3/cli_dispatch.phpsh extbase cmisfal:initialize I've got an error : CMIS initialisation failed! Reason: Type 'D:dkd:typo3:arbitrary' is unknown!

Any idea ?

ksjogo commented 8 years ago

Looks like we are accidentally using our TYPO3 aspects (loaded in our test alfresco), where we do not necessarily need to (just for fal). @NamelessCoder can we add checks to not use our stuff if it is not configured?

NamelessCoder commented 8 years ago

I will take this under consideration, of course. We could technically allow CMIS repositories without the TYPO3 model to serve files; but I'm not at this time sure what that might do to the capability to create relations from TYPO3 CMIS documents to those FAL objects.

But I suppose that's not an important use case in this particular case. It would only apply in cases where two repositories are used and one does not have the TYPO3 model is used for file storage and the other has the TYPO3 model and receives documents. One might argue that's sort of an edge case where relation capability might not be expected.

jdequeant commented 8 years ago

Ok, thanks.

Which files are concerned, please ?

ksjogo commented 8 years ago

https://github.com/dkd/docker-alfresco-typo3/blob/master/typo3Model.xml

Let us talk about cross repo next week, in general for the moment I would like to have people to be able to just connect their repos. Setting up the aspects will likely be cumbersome and I am not sure how portable the def file is.

@jdequeant At the moment we are mainly using the extension within the ForgetIT project, so might not have run into problems occurring in the connection to other systems. We are happy to fix if anything pops up.

sascha-egerer commented 8 years ago

The CMIS FAL driver should work with any CMIS repository. There should be no specific requirements to the CMIS repository.