You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/04/20 01:03:04 UTC

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

    [ https://issues.apache.org/jira/browse/FELIX-5617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15975848#comment-15975848 ] 

ASF GitHub Bot commented on FELIX-5617:
---------------------------------------

GitHub user cvgaviao opened a pull request:

    https://github.com/apache/felix/pull/104

    FELIX-5617 prevent 'null' to be printed in console

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cvgaviao/felix fix_null_messages

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/felix/pull/104.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #104
    
----
commit d27764658a7ee1563176141ca5d2cc389dbbb2a9
Author: Cristiano Gavião <cv...@gmail.com>
Date:   2017-04-20T01:00:38Z

    FELIX-5617 prevent 'null' to be printed in console

----


> 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)