[
https://issues.apache.org/jira/browse/SLING-9714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Pauls resolved SLING-9714.
-------------------------------
Resolution: Fixed
> ServletResourceProviderFactory should check for default resourceSuperType to
> determine if explicit resourceSuperType is provided in a servlet
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SLING-9714
> URL: https://issues.apache.org/jira/browse/SLING-9714
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Resolver 2.7.8
> Reporter: Mohit Arora
> Assignee: Karl Pauls
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
> After SLING-8170, ServletResourceProviderFactory checks only for [non empty
> resourceSuperType
> property|https://github.com/apache/sling-org-apache-sling-servlets-resolver/blob/master/src/main/java/org/apache/sling/servlets/resolver/internal/resource/ServletResourceProviderFactory.java#L152]
> to determine whether an explicit resourceSuperType is provided for a
> servlet. However, if no resourceSuperType is provided, sling servlet
> annotations put default resourceSuperType of {{sling/bundle/resource}} on the
> servlet. So in order to determine an explicit resourceSuperType property, the
> factory should also check if the resourceSuperType is not the default one
> applied by the servlet annotations.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)