Aleksandr Kovalenko created AMBARI-8959:
-------------------------------------------

             Summary: UI uses old sub-resource names for API requests to 
/stacks/
                 Key: AMBARI-8959
                 URL: https://issues.apache.org/jira/browse/AMBARI-8959
             Project: Ambari
          Issue Type: Task
          Components: ambari-web
    Affects Versions: 2.0.0
            Reporter: Aleksandr Kovalenko
            Assignee: Aleksandr Kovalenko
             Fix For: 2.0.0


BE contains a hotfix for renaming old-style subresource names to new ones:
"stackServices" -> "services"
"serviceComponents" -> "components"
"operatingSystems" -> "operating_systems"

The logic for the replacement is `if href contains /stacks/ and not contains 
_=`, so it returns `operating_systems` for regular requests and 
`operatingSystems` for requests from UI, as all of them contain cache busters.

UI should use new names everywhere; after that it would be possible to remove 
the hotfix from BE.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to