You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Siddharth Wagle (JIRA)" <ji...@apache.org> on 2014/08/07 19:34:16 UTC

[jira] [Created] (AMBARI-6777) Views: view.xml instance changes are not picked up on redeploy

Siddharth Wagle created AMBARI-6777:
---------------------------------------

             Summary: Views: view.xml instance changes are not picked up on redeploy
                 Key: AMBARI-6777
                 URL: https://issues.apache.org/jira/browse/AMBARI-6777
             Project: Ambari
          Issue Type: Task
          Components: controller
    Affects Versions: 1.7.0
            Reporter: Siddharth Wagle
            Assignee: Siddharth Wagle
             Fix For: 1.7.0


The view.xml should be checked for changes when a view is redeployed (server restart).  Instances defined in the view.xml should not be able to be changed through the API.  That way we don't have to worry about API changes overriding view.xml defined instances.


If I define an instance in view.xml, this works (all properties get defined): 

{code}
  <instance>
    <name>Something</name>
    <property>
      <key>ids</key>
      <value>SomeId,SomeOtherId</value>
    </property>
    <property>
      <key>SomeId.display_name</key>
      <value>Some Id Display Name</value>
    </property>
    <property>
      <key>SomeOtherId.display_name</key>
      <value>Some Other Id Display Name</value>
    </property>
</instance>
{code}

But if I put a newline between the property elements, it won't register the props past.

{code}
  <instance>
    <name>Something</name>
    <property>
      <key>ids</key>
      <value>SomeId,SomeOtherId</value>
    </property>

    <property>
      <key>SomeId.display_name</key>
      <value>Some Id Display Name</value>
    </property>
    <property>
      <key>SomeOtherId.display_name</key>
      <value>Some Other Id Display Name</value>
    </property>
</instance>
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)