You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/09/02 11:56:53 UTC

[jira] Resolved: (SLING-1722) ClassDefNotFoundError if form cookie has empty string value

     [ https://issues.apache.org/jira/browse/SLING-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-1722.
--------------------------------------

    Resolution: Fixed

Since the commons-lang bundle is included with the Sling Launchpad we can as well import the Commons Lang package instead of embedding the StringUtils class. This has the side effect of reducing the Form Auth bundle size by 16KB (50KB instead of 66KB).

Done in Rev. 991877.

> ClassDefNotFoundError if form cookie has empty string value
> -----------------------------------------------------------
>
>                 Key: SLING-1722
>                 URL: https://issues.apache.org/jira/browse/SLING-1722
>             Project: Sling
>          Issue Type: Bug
>          Components: Authentication
>    Affects Versions: Form Based Authentication 1.0.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Form Based Authentication 1.0.2
>
>
> If the form authentication cookie value is an empty string a ClassDefNotFoundError is thrown because the StringUtils.split method in this case returns ArrayUtils.EMPTY_STRING_ARRAY. Since the StringUtils class is embeded in the bundle and the ArrayUtils package is not  and is not imported either, the ArrayUtils class cannot be found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.