You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Cristiano Gavião (JIRA)" <ji...@apache.org> on 2017/04/20 00:51:04 UTC

[jira] [Created] (FELIX-5617) Remove "null" from console messages

Cristiano Gavião created FELIX-5617:
---------------------------------------

             Summary: Remove "null" from console messages
                 Key: FELIX-5617
                 URL: https://issues.apache.org/jira/browse/FELIX-5617
             Project: Felix
          Issue Type: Improvement
          Components: Bundle Repository (OBR)
    Affects Versions: bundlerepository-2.0.8
            Reporter: Cristiano Gavião


When BudleRepository is working with R5 index files the parsed resource will not have a presentation name, so every time it tries to show information about a resource in the console a "null" will printed instead.
Example:
{quote}
Unsatisfied requirement(s):
---------------------------
   (&(symbolicname=org.eclipse.equinox.common)(bundle-version>=3.2.0)(!(bundle-version>=4.0.0)))
      null
   (&(package=org.osgi.service.prefs)(version>=1.1.0)(!(version>=2.0.0)))
      null
{quote}

The proposed fix is to verify whether there is a presentation name, if not then use the symbolic name. the expected result is below:
{quote}
Unsatisfied requirement(s):
---------------------------
   (&(symbolicname=org.eclipse.equinox.common)(bundle-version>=3.2.0)(!(bundle-version>=4.0.0)))
      org.eclipse.equinox.preferences
   (&(package=org.osgi.service.prefs)(version>=1.1.0)(!(version>=2.0.0)))
      org.lunifera.runtime.kernel.lib
{quote}





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)