You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "valentina rodriguez (JIRA)" <ji...@apache.org> on 2014/09/03 17:38:51 UTC

[jira] [Commented] (OAK-1697) Unresolved conflicts in TokenProviderImpl#createToken()

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

valentina rodriguez commented on OAK-1697:
------------------------------------------

I already have this issue:

java.lang.IllegalArgumentException: Invalid token ''
	at org.apache.jackrabbit.api.security.authentication.token.TokenCredentials.<init>(TokenCredentials.java:42)

in 

 credentials = new SimpleCredentials(extractedUserId, extractedPassword.toCharArray());
            credentials.setAttribute(".token", "");
        	credentials.setAttribute(trustCredentials, "this value is inconsequential");
        	TokenCredentials tc = new TokenCredentials((String)credentials.getAttribute(".token"));
        	AuthenticationInfo authInfo = new AuthenticationInfo("TOKEN", credentials.getUserID());

> Unresolved conflicts in TokenProviderImpl#createToken()
> -------------------------------------------------------
>
>                 Key: OAK-1697
>                 URL: https://issues.apache.org/jira/browse/OAK-1697
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Antonio Sanso
>            Assignee: angela
>            Priority: Minor
>             Fix For: 1.1
>
>         Attachments: OAK-1697-test-updated.patch, OAK-1697-test.patch, OAK-1697.patch, OAK-1697_2.patch
>
>
> In certain situations (e.g. heavy load) {{TokenProviderImpl#createToken()}} might create some unresolved conflicts.
> e.g. 
> {code}
> org.apache.jackrabbit.oak.api.CommitFailedException: OakState0001: Unresolved conflicts in /home/users/..../..../.tokens/2014-04-07T11.55.58.167+02.00
> {code}
> and
> {code}
> 01.04.2014 17:52:41.216 *WARN* [qtp218544742-286] org.apache.jackrabbit.oak.security.authentication.token.TokenProviderImpl Failed to create login token.
> 01.04.2014 17:52:41.218 *WARN* [qtp218544742-300] org.eclipse.jetty.servlet.ServletHandler /projects.html
> java.lang.IllegalArgumentException: Invalid token ''
>     at org.apache.jackrabbit.api.security.authentication.token.TokenCredentials.<init>(TokenCredentials.java:42)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)