You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Assigned) (JIRA)" <ji...@apache.org> on 2011/11/14 03:47:52 UTC
[jira] [Assigned] (SLING-2108) PostServlet :import operation does
not take autoCheckout into account
[ https://issues.apache.org/jira/browse/SLING-2108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Norman reassigned SLING-2108:
----------------------------------
Assignee: Eric Norman
> PostServlet :import operation does not take autoCheckout into account
> ---------------------------------------------------------------------
>
> Key: SLING-2108
> URL: https://issues.apache.org/jira/browse/SLING-2108
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Post 2.1.0
> Reporter: Bertrand Delacretaz
> Assignee: Eric Norman
> Priority: Minor
> Labels: import, post,
>
> To reproduce:
> curl -u admin:admin -F":operation=import" -F":contentType=json" -F":content={'person1':{'jcr:primaryType':'nt:unstructured','jcr:mixinTypes':['mix:versionable'], 'surname':'aaa'}}" -F":replaceProperties=true" -F":checkin=true" -F":autoCheckout=true" http://localhost:8080/content/people
> curl -u admin:admin -F":operation=import" -F":contentType=json" -F":content={'person1':{'jcr:primaryType':'nt:unstructured','jcr:mixinTypes':['mix:versionable'], 'surname':'bbb'}}" -F":replaceProperties=true" -F":checkin=true" -F":autoCheckout=true" http://localhost:8080/content/people
> Second request gives "javax.jcr.version.VersionException: Unable to perform operation. Node is checked-in"
> Workaround is to use this in between those requests:
> curl -u admin:admin -F":operation=checkout" http://localhost:4502/content/people/person1
--
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