You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2016/04/08 10:33:25 UTC

[jira] [Commented] (CMIS-974) Parsing Exception: Extensions tree too wide

    [ https://issues.apache.org/jira/browse/CMIS-974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15231865#comment-15231865 ] 

Florian Müller commented on CMIS-974:
-------------------------------------

This not bug but a security feature. It protects the XML parser on the client side. The browser binding parsing works differently.

Side note 1: Don't use the AtomPub or the Web Services binding if the Browser Binding is available. The Browser Binding is significantly faster.
Side note 2: Why is Alfresco still using these extensions on a CMIS 1.1 endpoint? They were used as a workaround for CMIS 1.0.


> Parsing Exception: Extensions tree too wide
> -------------------------------------------
>
>                 Key: CMIS-974
>                 URL: https://issues.apache.org/jira/browse/CMIS-974
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client, opencmis-workbench
>    Affects Versions: OpenCMIS 0.13.0
>            Reporter: Zhi Wang
>              Labels: features
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> When using opencmis to get object by path from alfresco, it will report exception:
> parsing exception: Extensions tree too wide!.
> The method I use to create document is as follow:
>     /**
>      * Returns a CMIS object from the session cache. If the object is not in the
>      * cache or the cache is turned off per default {@link OperationContext}, it
>      * will load the object from the repository and puts it into the cache.
>      * <p>
>      * This method might return a stale object if the object has been found in
>      * the cache and has been changed in or removed from the repository. Use
>      * {@link CmisObject#refresh()} and {@link CmisObject#refreshIfOld(long)} to
>      * update the object if necessary.
>      * 
>      * @param path
>      *            the object path
>      * 
>      * @return the requested object
>      * 
>      * @throws CmisObjectNotFoundException
>      *             if an object with the given ID doesn't exist
>      * 
>      * @cmis 1.0
>      */
>     CmisObject getObjectByPath(String path);
> It happens when there are many tags added for a specific folder, the API and the workbench will both report the same error.
> The url I use to connect to the repository of alfresco is:
> http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom
> Now I have to use
> http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser
> to make it work.
> I found there are limitation set for extensions tree width, the same code works find when using browser binding repository url. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)