[ 
https://issues.apache.org/jira/browse/USERGRID-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Johnson updated USERGRID-448:
-----------------------------------
    Description: 
There is a flaw in the two-dot-o CpEntityManagerFactory.

The factory stores a collection of "appinfo" type entities, but the 
ManagementServiceImpl stores a redundant collection of "application_info" 
entities. 

The problem becomes evident when you try to delete an application. The 
application will only be deleted from the "appinfos" collection. When you call 
the management org/apps end-point you will still see the application because 
the end-point uses the "application_infos". 

To fix this:
- Ensure that only one collection is stored
- Add code to migrate the existing app information collections


  was:
There is a flaw in the CpEntityManagerFactory.

The factory stores a collection of "appinfo" type entities, but the 
ManagementServiceImpl stores a redundant collection of "application_info" 
entities. 

The problem becomes evident when you try to delete an application. The 
application will only be deleted from the "appinfos" collection. When you call 
the management org/apps end-point you will still see the application because 
the end-point uses the "application_infos". 

To fix this:
- Ensure that only one collection is stored
- Add code to migrate the existing app information collections



> Remove redundant appinfos collections in ManagementServiceImpl
> --------------------------------------------------------------
>
>                 Key: USERGRID-448
>                 URL: https://issues.apache.org/jira/browse/USERGRID-448
>             Project: Usergrid
>          Issue Type: Bug
>          Components: Stack
>            Reporter: David Johnson
>            Assignee: David Johnson
>             Fix For: 2.0
>
>
> There is a flaw in the two-dot-o CpEntityManagerFactory.
> The factory stores a collection of "appinfo" type entities, but the 
> ManagementServiceImpl stores a redundant collection of "application_info" 
> entities. 
> The problem becomes evident when you try to delete an application. The 
> application will only be deleted from the "appinfos" collection. When you 
> call the management org/apps end-point you will still see the application 
> because the end-point uses the "application_infos". 
> To fix this:
> - Ensure that only one collection is stored
> - Add code to migrate the existing app information collections



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

Reply via email to