You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (Commented) (JIRA)" <ji...@apache.org> on 2012/01/20 16:07:42 UTC

[jira] [Commented] (JCR-3214) [Lock] weird number for "infinite"

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

Julian Reschke commented on JCR-3214:
-------------------------------------

DomUtil.timeoutToXml:

     * Note, that {@link DavConstants#INFINITE_TIMEOUT} is not represented by the String
     * {@link DavConstants#TIMEOUT_INFINITE 'Infinite'} defined by RFC 2518, due to a known
     * issue with Microsoft Office that opens the document "read only" and
     * never unlocks the resource if the timeout is missing or 'Infinite'.

So what happens is that the servlet internall uses MAX_INT as infinite, but then doesn't treat is as a special value, and also divides by 1000 (ms -> s).

Not sure what's the best fix here; do we know whether Office still has this problem?
                
> [Lock] weird number for "infinite"
> ----------------------------------
>
>                 Key: JCR-3214
>                 URL: https://issues.apache.org/jira/browse/JCR-3214
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-server, locks
>            Reporter: David Buchmann
>            Assignee: Julian Reschke
>
> (this is a follow-up of JCR-3205)
> i am surprised by the davex reply to a lock request with infinite timeout (before and after the fix from JCR-3205):
> <D:timeout>Second-2147483</D:timeout>
> this number is
> 2^21+50331
> which seems pretty random to me. coincidally, this number is exactly 2^31 - 1 (2147483647) without the last 3 digits. can it be that there are some weird string operations happening on server side?

--
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