You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Carlo Sciolla (JIRA)" <ji...@apache.org> on 2014/06/24 10:35:25 UTC

[jira] [Commented] (CMIS-817) Default operation context on session can not be set

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

Carlo Sciolla commented on CMIS-817:
------------------------------------

Looks like it's [already fixed|https://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java?r1=1594633&r2=1594634&] on trunk

> Default operation context on session can not be set
> ---------------------------------------------------
>
>                 Key: CMIS-817
>                 URL: https://issues.apache.org/jira/browse/CMIS-817
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client
>    Affects Versions: OpenCMIS 0.11.0
>            Reporter: Emiel Ackermann
>
> The OperationContext _parameter_ given to method 
> *setDefaultContext(OperationContext context)* of *org.apache.chemistry.opencmis.client.runtime.SessionImpl*
> gets overwritten instead of the OperationContext _field_ of SessionImpl.
> {color:red}this.{color} is missing on context:
>     public void setDefaultContext(OperationContext context) {
>         lock.writeLock().lock();
>         try {
>             context = (context == null ? DEFAULT_CONTEXT : context);
>         } finally {
>             lock.writeLock().unlock();
>         }
>     }



--
This message was sent by Atlassian JIRA
(v6.2#6252)