You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2012/06/18 20:43:42 UTC

[jira] [Created] (JCR-3348) session based system view import of users/groups produces ItemExistsException

Tobias Bocanegra created JCR-3348:
-------------------------------------

             Summary: session based system view import of users/groups produces ItemExistsException
                 Key: JCR-3348
                 URL: https://issues.apache.org/jira/browse/JCR-3348
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-jcr2spi, jackrabbit-spi2dav
            Reporter: Tobias Bocanegra


Importing a user/group using the davex remoting produces and a sysview import does not work and
produces a ItemExistsException. 

eg:
javax.jcr.ItemExistsException: /home/groups/c/content-authors





--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (JCR-3348) session based system view import of users/groups produces ItemExistsException

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396577#comment-13396577 ] 

angela edited comment on JCR-3348 at 6/19/12 7:59 AM:
------------------------------------------------------

import of protected items is not supported with jcr2spi both in session and workspace import... i would suspect that this is the reason.

                
      was (Author: anchela):
    import of protected items is not supported with jcr2spi... i would suspect that this is the reason.

                  
> session based system view import of users/groups produces ItemExistsException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-3348
>                 URL: https://issues.apache.org/jira/browse/JCR-3348
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi, jackrabbit-spi2dav
>            Reporter: Tobias Bocanegra
>
> Importing a user/group using the davex remoting produces and a sysview import does not work and
> produces a ItemExistsException. 
> eg:
> javax.jcr.ItemExistsException: /home/groups/c/content-authors

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JCR-3348) session based system view import of users/groups produces ItemExistsException

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396577#comment-13396577 ] 

angela commented on JCR-3348:
-----------------------------

import of protected items is not supported with jcr2spi... i would suspect that this is the reason.

                
> session based system view import of users/groups produces ItemExistsException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-3348
>                 URL: https://issues.apache.org/jira/browse/JCR-3348
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi, jackrabbit-spi2dav
>            Reporter: Tobias Bocanegra
>
> Importing a user/group using the davex remoting produces and a sysview import does not work and
> produces a ItemExistsException. 
> eg:
> javax.jcr.ItemExistsException: /home/groups/c/content-authors

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JCR-3348) session based system view import of users/groups produces ItemExistsException

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396225#comment-13396225 ] 

Tobias Bocanegra commented on JCR-3348:
---------------------------------------

using an explicit "String" property type results in the same error.
                
> session based system view import of users/groups produces ItemExistsException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-3348
>                 URL: https://issues.apache.org/jira/browse/JCR-3348
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi, jackrabbit-spi2dav
>            Reporter: Tobias Bocanegra
>
> Importing a user/group using the davex remoting produces and a sysview import does not work and
> produces a ItemExistsException. 
> eg:
> javax.jcr.ItemExistsException: /home/groups/c/content-authors

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JCR-3348) session based system view import of users/groups produces ItemExistsException

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396155#comment-13396155 ] 

Tobias Bocanegra commented on JCR-3348:
---------------------------------------

btw, using a workspace import via davex reports another error: javax.jcr.nodetype.ConstraintViolationException: /home/groups/c/content-authors: mandatory property {internal}principalName does not exist

looking at the the MKCOL request (tidy sysview part):

[DEBUG] >> "MKCOL /crx/server/crx.default/jcr%3aroot/home/groups/c/f58ba3af-083a-4308-89be-5e261a1e0f03 HTTP/1.1[\r][\n]"
[DEBUG] Adding Host request header
[DEBUG] >> "ImportUUIDBehavior: 1[\r][\n]"
[DEBUG] >> "Link: <urn:uuid:ac15a377-1010-4b8f-a3dd-3c6172be9b50>; rel="http://www.day.com/jcr/webdav/1.0/session-id"[\r][\n]"
[DEBUG] >> "Authorization: Basic YWRtaW46YWRtaW4=[\r][\n]"
[DEBUG] >> "User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]"
[DEBUG] >> "Host: localhost:4502[\r][\n]"
[DEBUG] >> "Content-Length: 4556[\r][\n]"
[DEBUG] >> "Content-Type: text/xml[\r][\n]"
[DEBUG] >> "[\r][\n]"
[DEBUG] >> "
<?xml version="1.0" encoding="UTF-8"?>
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" .... xmlns:rep="internal" sv:name="content-authors">
	<sv:property sv:name="sling:resourceType" sv:type="undefined">
		<sv:value>rep:Group</sv:value>
	</sv:property>
	<sv:property sv:name="rep:principalName" sv:type="undefined">
		<sv:value>content-authors</sv:value>
	</sv:property>
	<sv:property sv:name="rep:members" sv:type="WeakReference">
		<sv:value>02bd92fa-a38a-3a6c-80ea-75e59937a1ef</sv:value>
		<sv:value>a56a94bf-6b1c-32f5-bd3f-2524c42def08</sv:value>
		<sv:value>e66fde84-6efd-3505-9c42-251c6ddc500d</sv:value>
		<sv:value>cc76c3c0-97d8-3ca7-873d-d01b9f04a393</sv:value>
		<sv:value>27f2dd02-ab51-3a5d-9a9f-f7fc5537a09a</sv:value>
	</sv:property>
	<sv:property sv:name="cq:lastModifiedBy" sv:type="undefined">
		<sv:value>admin</sv:value>
	</sv:property>
	<sv:property sv:name="cq:lastModified" sv:type="Date">
		<sv:value>2012-06-15T15:33:26.406-06:00</sv:value>
	</sv:property>
	<sv:property sv:name="jcr:uuid" sv:type="undefined">
		<sv:value>3ebb1c04-76dd-317e-a9ee-5164182bc390</sv:value>
	</sv:property>
	<sv:property sv:name="jcr:primaryType" sv:type="Name">
		<sv:value>rep:Group</sv:value>
	</sv:property>
	<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
		<sv:value>rep:AccessControllable</sv:value>
	</sv:property>
</sv:node>
"
[DEBUG] Request body sent
[DEBUG] << "HTTP/1.1 409 Conflict[\r][\n]"
[DEBUG] << "Connection: Close[\r][\n]"
[DEBUG] << "Server: Day-Servlet-Engine/4.1.24[\r][\n]"
[DEBUG] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
[DEBUG] << "Content-Length: 351[\r][\n]"
[DEBUG] << "Date: Mon, 18 Jun 2012 18:55:46 GMT[\r][\n]"
...
[DEBUG] << "<D:error xmlns:D="DAV:"><dcr:exception xmlns:dcr="http://www.day.com/jcr/webdav/1.0"><dcr:class>javax.jcr.nodetype.ConstraintViolationException</dcr:class><dcr:message>/home/groups/c/content-authors: mandatory property {internal}principalName does not exist</dcr:message></dcr:exception></D:error>"


Maybe the 'undefined' in <sv:property sv:name="rep:principalName" sv:type="undefined"> is ambiguous?
                
> session based system view import of users/groups produces ItemExistsException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-3348
>                 URL: https://issues.apache.org/jira/browse/JCR-3348
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi, jackrabbit-spi2dav
>            Reporter: Tobias Bocanegra
>
> Importing a user/group using the davex remoting produces and a sysview import does not work and
> produces a ItemExistsException. 
> eg:
> javax.jcr.ItemExistsException: /home/groups/c/content-authors

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JCR-3348) session based system view import of users/groups produces ItemExistsException

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396590#comment-13396590 ] 

angela commented on JCR-3348:
-----------------------------

for the recording: according to the specification a given implementation is allowed to ignore protected items. 
please open an enhancement to request asking for jcr2spi dealing with protected items.
                
> session based system view import of users/groups produces ItemExistsException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-3348
>                 URL: https://issues.apache.org/jira/browse/JCR-3348
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi, jackrabbit-spi2dav
>            Reporter: Tobias Bocanegra
>
> Importing a user/group using the davex remoting produces and a sysview import does not work and
> produces a ItemExistsException. 
> eg:
> javax.jcr.ItemExistsException: /home/groups/c/content-authors

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira