[jboss-jira] [JBoss JIRA] (WFLY-2589) ReadTransformedResourceOperation should set include-defaults=false when calling read-resource

Kabir Khan (JIRA) jira-events at lists.jboss.org
Fri Nov 29 06:04:06 EST 2013


    [ https://issues.jboss.org/browse/WFLY-2589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927553#comment-12927553 ] 

Kabir Khan commented on WFLY-2589:
----------------------------------

When doing this when reading the legacy model, it should be done with :read-resource(recursive=true,include-aliases=false,include-defaults=false) so that we don't have defaults in either the directly transformed model or the model built up from the operations.
                
> ReadTransformedResourceOperation should set include-defaults=false when calling read-resource
> ---------------------------------------------------------------------------------------------
>
>                 Key: WFLY-2589
>                 URL: https://issues.jboss.org/browse/WFLY-2589
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Domain Management
>    Affects Versions: 8.0.0.Beta1
>            Reporter: Kabir Khan
>            Assignee: Kabir Khan
>
> This needs further investigation, but it seems to mean that we have a lot of ModelFixers used in the wrong situation. i.e. the when transforming resources, attributes that should be undefined reach the transformers as defined with the default value set instead.
> This needs a bit of thinking about [~jmesnil] mentioned this a few weeks ago as well. I'd like to see if he remembers before fixing

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list