You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2021/06/22 16:25:00 UTC

[jira] [Assigned] (SLING-10501) The analyser scanner should pass the artifact url to the resource builder

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

Carsten Ziegeler reassigned SLING-10501:
----------------------------------------

    Assignee: Carsten Ziegeler

> The analyser scanner should pass the artifact url to the resource builder
> -------------------------------------------------------------------------
>
>                 Key: SLING-10501
>                 URL: https://issues.apache.org/jira/browse/SLING-10501
>             Project: Sling
>          Issue Type: Improvement
>          Components: Feature Model Analyser
>    Affects Versions: Feature Model Analyser 1.3.26
>            Reporter: Karl Pauls
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: Feature Model Analyser 1.3.28
>
>
> When the scanner is parsing artifacts it uses the ResourceBuilder from Felix but doesn't give it the url of the artifact. That makes it so that if the artifact can not be parsed (e.g. because it has invalid metadata) an exception is thrown that doesn't give any indication of the artifact that caused it. 
> Looks like this:
> {noformat}
> org.osgi.framework.BundleException: Unable to build resource for null: Duplicate import: foo
> {noformat}
> The scanner should pass the artifact url at [0] to the Resourcebuilder so that the exception contains the artifact id.
> [0] https://github.com/apache/sling-org-apache-sling-feature-analyser/blob/89d5544fbc86adf6b5a99f7a2cb96055dcb3b3d1/src/main/java/org/apache/sling/feature/scanner/impl/BundleDescriptorImpl.java#L227



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