You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2018/02/18 19:51:01 UTC
[jira] [Commented] (KARAF-5601) Array values in configurations are
printed as pointer addresses when using shell commands
[ https://issues.apache.org/jira/browse/KARAF-5601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16368655#comment-16368655 ]
Jean-Baptiste Onofré commented on KARAF-5601:
---------------------------------------------
I can add a check {{instanceof}} to correctly display array/list/collection.
> Array values in configurations are printed as pointer addresses when using shell commands
> -----------------------------------------------------------------------------------------
>
> Key: KARAF-5601
> URL: https://issues.apache.org/jira/browse/KARAF-5601
> Project: Karaf
> Issue Type: Bug
> Components: karaf-shell
> Affects Versions: 4.1.4
> Environment: OS X El Capitan 10.11.6
> Reporter: Steven Lombardi
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
>
> To reproduce:
> * Start editing any configuration with an array-valued property using {{config:edit}}
> * Run {{config:property-list}} and notice that the array does not print correctly
> * Run {{config:property-get}} for the name of the array-valued property and notice the array does not print correctly
> Example:
> {code:java}
> admin@root()> config:property-list
> customMimeTypes = [Ljava.lang.String;@2b1de817
> felix.fileinstall.filename = file:/Users/lambeaux/Connexta/instances/ddf-2.11.5-SNAPSHOT/etc/DDF_Custom_Mime_Type_Resolver-xml.config
> name = XML Metacard Content Resolver
> priority = 10
> schema = urn:catalog:metacard
> service.factoryPid = DDF_Custom_Mime_Type_Resolver
> service.pid = DDF_Custom_Mime_Type_Resolver.e12a9162-e152-4a2d-bc7e-537d3621eac7
> admin@root()> config:property-get priority
> 10
> admin@root()> config:property-get schema
> urn:catalog:metacard
> admin@root()> config:property-get name
> XML Metacard Content Resolver
> admin@root()> config:property-get customMimeTypes
> [Ljava.lang.String;@2b1de817
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)