You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Antonio Sanso (JIRA)" <ji...@apache.org> on 2017/10/27 08:15:00 UTC

[jira] [Commented] (SLING-7218) NPE in org.apache.sling.security.impl.ContentDispositionFilter#activate

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

Antonio Sanso commented on SLING-7218:
--------------------------------------

[~kwin] this seems has been introduced in SLING-6316.

Before the default value for {{contentDispostionExcludedPathsArray}} used to be {{""}} now is {{null}}.
How do you suggest to handle this? Putting back the default to {{""}} or handle the {{null}} value?

> NPE in org.apache.sling.security.impl.ContentDispositionFilter#activate
> -----------------------------------------------------------------------
>
>                 Key: SLING-7218
>                 URL: https://issues.apache.org/jira/browse/SLING-7218
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Antonio Sanso
>            Assignee: Antonio Sanso
>
> {noformat}
> 09.10.2017 07:05:55.216 *ERROR* [FelixStartLevel] org.apache.sling.security [org.apache.sling.security.impl.ContentDispositionFilter(96)] The activate method has thrown an exception (java.lang.NullPointerException)
> java.lang.NullPointerException: null
>  at java.util.Objects.requireNonNull(Objects.java:203)
>  at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
>  at java.util.Arrays.asList(Arrays.java:3800)
> 09.10.2017 07:05:55.219 *ERROR* [FelixDispatchQueue] org.apache.sling.engine FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.security.impl.ContentDispositionFilter (96)))
> org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.security.impl.ContentDispositionFilter (96))
>  at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380)
>  at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
>  at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)