You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Karl Pauls (Jira)" <ji...@apache.org> on 2021/06/16 19:42:00 UTC
[jira] [Created] (SLING-10501) The analyser scanner should pass the
artifact url to the resource builder
Karl Pauls created SLING-10501:
----------------------------------
Summary: 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
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)