jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-2172) SystemView: Session.importXML silently imports protected nodes if their parent isn't protected
Date Fri, 26 Jun 2009 08:51:07 GMT
SystemView: Session.importXML silently imports protected nodes if their parent isn't protected
----------------------------------------------------------------------------------------------

                 Key: JCR-2172
                 URL: https://issues.apache.org/jira/browse/JCR-2172
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: 2.0-alpha3
            Reporter: angela


The sys-view import handled by SessionImport is intended to skip protected items or to throw
an exception:

- protected properties are skipped
- child nodes of existing protected nodes are skipped
- child nodes of non-existing protected nodes result in an ConstraintViolationException and
the import is aborted.

However, if the XML to be imported contains a Node that would result in a protected Node the
following occurs:

- If the XML defines child nodes for the protected node the import fails (see above)
- If the XML does not define any child nodes for the protected node the import succeeds and
the protected Node is
  silently created and can be persisted.

This looks inconsistent to me and i consider this behavior a bug.
Not sure if this is a problem that exists for a longer time or has been introduced recently...


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message