[jboss-jira] [JBoss JIRA] (AS7-2081) read-resource with recurse and include-runtime is broken

David Bosschaert (Updated) (JIRA) jira-events at lists.jboss.org
Wed Oct 12 07:13:16 EDT 2011


     [ https://issues.jboss.org/browse/AS7-2081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bosschaert updated AS7-2081:
----------------------------------

    Description: 
When I add recursive=true to :read-resource the runtime attributes disappear.

E.g. 
{code}subsystem=osgi] :read-resource(include-runtime=true)
{
    "outcome" => "success",
    "result" => {
        "activation" => "eager",
        "startlevel" => 1,
        "bundle" => {
            "19" => undefined,
            "17" => undefined,
            "18" => undefined,
{code}
The above works, but adding recursive=true produces:
{code}subsystem=osgi] :read-resource(include-runtime=true,recursive=true)
{
    "outcome" => "success",
    "result" => {
        "activation" => "eager",
        "bundle" => {
            "20" => {},
            "21" => {},
{code}
The startlevel attribute is gone and the bundle resources are empty.

Note that when I run :read-children-resources it does return the correct information
{code}subsystem=osgi] :read-children-resources(child-type=bundle,include-runtime=true)
{
    "outcome" => "success",
    "result" => {
        "0" => {
            "id" => 0L,
            "startlevel" => 0,
            "state" => "ACTIVE",
            "symbolic-name" => "system.bundle",
            "version" => "0.0.0"
        },
        "1" => {
            "id" => 1L,
            "startlevel" => 1,
            "state" => "INSTALLED",
            "symbolic-name" => "javaee.api",
            "version" => "0.0.0"
        },
{code}

  was:
When I add recursive=true to :read-resource the runtime attributes disappear.

E.g. 
{code}subsystem=osgi] :read-resource(include-runtime=true)
{
    "outcome" => "success",
    "result" => {
        "activation" => "eager",
        "startlevel" => 1,
        "bundle" => {
            "19" => undefined,
            "17" => undefined,
            "18" => undefined,
{code}
The above works, but adding recursive=true produces:
{code}subsystem=osgi] :read-resource(include-runtime=true,recursive=true)
{
    "outcome" => "success",
    "result" => {
        "activation" => "eager",
        "bundle" => {
            "20" => {},
            "21" => {},
{code}
The startlevel attribute is gone and the bundle resources are empty. Note that when I run :read-children-resources it does return the correct information
{code}subsystem=osgi] :read-children-resources(child-type=bundle,include-runtime=true)
{
    "outcome" => "success",
    "result" => {
        "0" => {
            "id" => 0L,
            "startlevel" => 0,
            "state" => "ACTIVE",
            "symbolic-name" => "system.bundle",
            "version" => "0.0.0"
        },
        "1" => {
            "id" => 1L,
            "startlevel" => 1,
            "state" => "INSTALLED",
            "symbolic-name" => "javaee.api",
            "version" => "0.0.0"
        },
{code}


    
> read-resource with recurse and include-runtime is broken
> --------------------------------------------------------
>
>                 Key: AS7-2081
>                 URL: https://issues.jboss.org/browse/AS7-2081
>             Project: Application Server 7
>          Issue Type: Bug
>    Affects Versions: 7.1.0.Beta1
>            Reporter: David Bosschaert
>
> When I add recursive=true to :read-resource the runtime attributes disappear.
> E.g. 
> {code}subsystem=osgi] :read-resource(include-runtime=true)
> {
>     "outcome" => "success",
>     "result" => {
>         "activation" => "eager",
>         "startlevel" => 1,
>         "bundle" => {
>             "19" => undefined,
>             "17" => undefined,
>             "18" => undefined,
> {code}
> The above works, but adding recursive=true produces:
> {code}subsystem=osgi] :read-resource(include-runtime=true,recursive=true)
> {
>     "outcome" => "success",
>     "result" => {
>         "activation" => "eager",
>         "bundle" => {
>             "20" => {},
>             "21" => {},
> {code}
> The startlevel attribute is gone and the bundle resources are empty.
> Note that when I run :read-children-resources it does return the correct information
> {code}subsystem=osgi] :read-children-resources(child-type=bundle,include-runtime=true)
> {
>     "outcome" => "success",
>     "result" => {
>         "0" => {
>             "id" => 0L,
>             "startlevel" => 0,
>             "state" => "ACTIVE",
>             "symbolic-name" => "system.bundle",
>             "version" => "0.0.0"
>         },
>         "1" => {
>             "id" => 1L,
>             "startlevel" => 1,
>             "state" => "INSTALLED",
>             "symbolic-name" => "javaee.api",
>             "version" => "0.0.0"
>         },
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list