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

Carsten Ziegeler commented on SLING-9925:
-----------------------------------------

Reading the servlet spec and taking the reference implementation into account, 
the current implementation in the Sling engine seems to have the correct 
expectation, that it is only invoked once - and if an exception occurs it must 
not be invoked for another time.

However, an AIOOB exception is maybe not the nicest way of indicating this, an 
IllegalStateException might be more appropriate

> ArrayIndexOutOfBoundsException in AbstractSlingFilterChain
> ----------------------------------------------------------
>
>                 Key: SLING-9925
>                 URL: https://issues.apache.org/jira/browse/SLING-9925
>             Project: Sling
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: Engine 2.7.2
>            Reporter: Karl Pauls
>            Priority: Major
>             Fix For: Engine 2.7.4
>
>
> Apparently, it is possible for an AIOOB Exception to happen in the 
> AbstractSlingFilterChain. Unclear to me why but it looks like this:
> {code:java}
> rg.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught 
> Throwable
> java.lang.ArrayIndexOutOfBoundsException: Index 29 out of bounds for length 29
>         at 
> org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:86)
>  [org.apache.sling.engine:2.7.2]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to