You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Sedding (Jira)" <ji...@apache.org> on 2026/08/24 12:36:00 UTC
[jira] [Closed] (SLING-13292) Support ranking of bundles contributing bundled scripts
[ https://issues.apache.org/jira/browse/SLING-13292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Sedding closed SLING-13292.
----------------------------------
> Support ranking of bundles contributing bundled scripts
> -------------------------------------------------------
>
> Key: SLING-13292
> URL: https://issues.apache.org/jira/browse/SLING-13292
> Project: Sling
> Issue Type: New Feature
> Components: Servlets
> Affects Versions: Servlets Resolver 3.0.8
> Reporter: Julian Sedding
> Assignee: Julian Sedding
> Priority: Minor
> Fix For: Servlets Resolver 3.0.10, Servlets Resolver 2.11.14
>
>
> When two or more bundles contain bundled scripts for the same paths, it is necessary to have a way to break the tie, ensuring a predictable and controlled precedence order.
> The current implementation selects the script with the lowest service.id, which in practice means the scripts provided by the bundle that was started earlier.
> This is counter-intuitive, e.g. in a development situation, where developers are usually interested in seeing their latest installed changes.
> It also links the script resolution precedence order to the start-order of the bundles, which can be a challenge in a dynamic system.
> In order to allow for a clearly defined resolution in such cases, it would be good to have an (optional) new bundle manifest header, {{{}Sling-Bundled-Scripts-Ranking{}}}, that defines the {{service.ranking}} to be set for each {{Servlet}} registered for the bundle.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)