You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florent Amaridon (JIRA)" <ji...@apache.org> on 2011/07/28 12:02:09 UTC

[jira] [Created] (CMIS-406) cancelCheckOut have same action than delete

cancelCheckOut have same action than delete
-------------------------------------------

                 Key: CMIS-406
                 URL: https://issues.apache.org/jira/browse/CMIS-406
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-client, opencmis-client-bindings
    Affects Versions: OpenCMIS 0.4.0
            Reporter: Florent Amaridon


I use the Workbench to test my serveur implementtation. When i want Cancel check out a document i'm never call on cancelCheckOut methode.

After reading client's source I see on VersioningServiceImpl.cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) call the same method as delete 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CMIS-406) cancelCheckOut have same action than delete

Posted by "Florian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146742#comment-13146742 ] 

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

There is not much you can do. Make sure that the allowable action for cancelCheckOut is not set. A well-behaved client shouldn't call it then...
                
> cancelCheckOut have same action than delete
> -------------------------------------------
>
>                 Key: CMIS-406
>                 URL: https://issues.apache.org/jira/browse/CMIS-406
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client, opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.4.0
>            Reporter: Florent Amaridon
>            Assignee: Florian Müller
>
> I use the Workbench to test my serveur implementtation. When i want Cancel check out a document i'm never call on cancelCheckOut methode.
> After reading client's source I see on VersioningServiceImpl.cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) call the same method as delete 

--
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] (CMIS-406) cancelCheckOut have same action than delete

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072327#comment-13072327 ] 

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

Yes, you have to add code in deleteObjectOrCancelCheckOut() that dispatches the call to either cancelCheckOut() or to deleteObject(). This code is repository specific and cannot be provided by the framework.

There is no way to tag a PWC, but the PWC id and the document id must not be the same. In order to keep it simple, the PWC id could be the document id plus a suffix or prefix. The suffix or prefix could then be used to dispatch to the right operation.

> cancelCheckOut have same action than delete
> -------------------------------------------
>
>                 Key: CMIS-406
>                 URL: https://issues.apache.org/jira/browse/CMIS-406
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client, opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.4.0
>            Reporter: Florent Amaridon
>            Assignee: Florian Müller
>
> I use the Workbench to test my serveur implementtation. When i want Cancel check out a document i'm never call on cancelCheckOut methode.
> After reading client's source I see on VersioningServiceImpl.cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) call the same method as delete 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CMIS-406) cancelCheckOut have same action than delete

Posted by "Florent Amaridon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146722#comment-13146722 ] 

Florent Amaridon commented on CMIS-406:
---------------------------------------

Hi i making test on my server (can't implement Versionning Service) and if on client i call CancelCheckOut() i can't throw unsupported exception.

did u have a solution for this?


                
> cancelCheckOut have same action than delete
> -------------------------------------------
>
>                 Key: CMIS-406
>                 URL: https://issues.apache.org/jira/browse/CMIS-406
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client, opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.4.0
>            Reporter: Florent Amaridon
>            Assignee: Florian Müller
>
> I use the Workbench to test my serveur implementtation. When i want Cancel check out a document i'm never call on cancelCheckOut methode.
> After reading client's source I see on VersioningServiceImpl.cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) call the same method as delete 

--
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] [Resolved] (CMIS-406) cancelCheckOut have same action than delete

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Müller resolved CMIS-406.
---------------------------------

    Resolution: Not A Problem
      Assignee: Florian Müller

It works as defined in the CMIS specification. CheckOut must return a PWC object that is different from the original document. CancelCheckOut calls DELETE on the PWC object.

On the server side deleteObjectOrCancelCheckOut() is called. If the object is a PWC, it is a cancelCheckOut() call. If it is something else, it is a delete() call. (See JavaDoc.)


> cancelCheckOut have same action than delete
> -------------------------------------------
>
>                 Key: CMIS-406
>                 URL: https://issues.apache.org/jira/browse/CMIS-406
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client, opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.4.0
>            Reporter: Florent Amaridon
>            Assignee: Florian Müller
>
> I use the Workbench to test my serveur implementtation. When i want Cancel check out a document i'm never call on cancelCheckOut methode.
> After reading client's source I see on VersioningServiceImpl.cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) call the same method as delete 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CMIS-406) cancelCheckOut have same action than delete

Posted by "Florent Amaridon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072331#comment-13072331 ] 

Florent Amaridon commented on CMIS-406:
---------------------------------------

thanx for fast response.

> cancelCheckOut have same action than delete
> -------------------------------------------
>
>                 Key: CMIS-406
>                 URL: https://issues.apache.org/jira/browse/CMIS-406
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client, opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.4.0
>            Reporter: Florent Amaridon
>            Assignee: Florian Müller
>
> I use the Workbench to test my serveur implementtation. When i want Cancel check out a document i'm never call on cancelCheckOut methode.
> After reading client's source I see on VersioningServiceImpl.cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) call the same method as delete 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CMIS-406) cancelCheckOut have same action than delete

Posted by "Florent Amaridon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072311#comment-13072311 ] 

Florent Amaridon commented on CMIS-406:
---------------------------------------

I have not understand this part I think. 

I need to implement deleteObjectOrCancelCheckOut and on this methode I dispatch on delete or cancelCheckOut if my object is a PWC. I'm on the right track?

but i don't understand in CMIS specification i can't tag an object as PWC (or i miss a part). I must make it on m'y FileSysteme? 

> cancelCheckOut have same action than delete
> -------------------------------------------
>
>                 Key: CMIS-406
>                 URL: https://issues.apache.org/jira/browse/CMIS-406
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client, opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.4.0
>            Reporter: Florent Amaridon
>            Assignee: Florian Müller
>
> I use the Workbench to test my serveur implementtation. When i want Cancel check out a document i'm never call on cancelCheckOut methode.
> After reading client's source I see on VersioningServiceImpl.cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) call the same method as delete 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira