You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2015/02/16 12:26:11 UTC

[jira] [Commented] (SLING-4332) Malformed .content.xml files cause unhandled errors and break the content navigator

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

Robert Munteanu commented on SLING-4332:
----------------------------------------

F8xed in https://svn.apache.org/viewvc?view=revision&revision=r1660070

> Malformed .content.xml files cause unhandled errors and break the content navigator
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-4332
>                 URL: https://issues.apache.org/jira/browse/SLING-4332
>             Project: Sling
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: Sling Eclipse IDE 1.0.4
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Critical
>             Fix For: Sling Eclipse IDE 1.0.6
>
>
> Assume a broken XML file named .content.xml is placed in a content project, as below ( note the missing xmlns:rep attribute )
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
>     jcr:mixinTypes="[rep:AccessControllable]"
>     jcr:primaryType="sling:OrderedFolder">
>     <rep:policy/>
> </jcr:root>
> {code}
> An unhandled exception will be propagated to the user and the content navigator will be broken - only the jcr_root entry will appear, without an icon, and can't be expanded.
> We should be more resilient and skip resources with XML parsing errors. Perhaps we should also turn off namespace validation.



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