Improvement #10260
closedThe operations log to include installation details
100%
Description
The operations log for installation must include: a. app name b. app id (e.g. com.google.calculator) c. Success/Failure d. Username
The current implementation only supports persisting the operation results coming from the devices and displaying them as the operation log. A new API needs to be added to persist metadata about operations and trigger this when calling app installation based on different criteria such as install on device, group, role, user, advance search etc.
Files
Updated by Oshani Silva over 1 year ago
Related PRs.
- https://repository.entgra.net/community/device-mgt-core/pulls/203/files
- https://repository.entgra.net/proprietary/emm-proprietary-plugins/pulls/245/files
- https://repository.entgra.net/proprietary/emm-proprietary-plugins/pulls/262/files
- https://repository.entgra.net/community/device-mgt-core/pulls/210/files
- https://repository.entgra.net/proprietary/emm-proprietary-plugins/pulls/267
Updated by Arshana Atapattu over 1 year ago
- File Screenshot from 2023-08-11 13-53-45.png Screenshot from 2023-08-11 13-53-45.png added
- File Screenshot from 2023-08-11 13-55-37.png Screenshot from 2023-08-11 13-55-37.png added
- Status changed from QA to Needs Improvement
There was a issue when viewing1, logs when the app installation was triggered by Role-> admin [2]
[1]
[2]
Updated by Arshana Atapattu about 1 year ago
Error msg:
{
"code": 500,
"data": "{\"message\":\"ErrorResponse occurred while fetching the app details for the supplied id.\",\"errorItems\":[]}",
"status": 0
}
Updated by Oshani Silva 11 months ago
- Project changed from product-uem 6.0.0 GA to product-uem 6.1.0 GA
Updated by Viranga Gunarathna 9 months ago
- Project changed from product-uem 6.1.0 GA to Backlog
Updated by Kavin Prathaban 6 months ago
The above error @arshana mentioned is happening on Group installations also.
Error log as follows:
[2024-05-10 18:04:18,967] ERROR - ActivityProviderServiceImpl ErrorResponse occurred while fetching the app details for the supplied id.
io.entgra.device.mgt.core.application.mgt.common.exception.SubscriptionManagementException: Error occurred while retrieving app details of operation: 1486
at io.entgra.device.mgt.core.application.mgt.core.impl.SubscriptionManagerImpl.getOperationAppDetails(SubscriptionManagerImpl.java:1668) ~[io.entgra.device.mgt.core.application.mgt.core_5.0.42.SNAPSHOT.jar:?]
at io.entgra.device.mgt.core.device.mgt.api.jaxrs.service.impl.ActivityProviderServiceImpl.getActivityByDevice(ActivityProviderServiceImpl.java:173) [classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_251]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_251]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_251]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) [cxf-core-3.5.0.jar:3.5.0]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) [cxf-core-3.5.0.jar:3.5.0]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201) [cxf-rt-frontend-jaxrs-3.5.0.jar:3.5.0]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104) [cxf-rt-frontend-jaxrs-3.5.0.jar:3.5.0]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) [cxf-core-3.5.0.jar:3.5.0]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) [cxf-core-3.5.0.jar:3.5.0]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) [cxf-core-3.5.0.jar:3.5.0]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-core-3.5.0.jar:3.5.0]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) [cxf-rt-transports-http-3.5.0.jar:3.5.0]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [cxf-rt-transports-http-3.5.0.jar:3.5.0]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [cxf-rt-transports-http-3.5.0.jar:3.5.0]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [cxf-rt-transports-http-3.5.0.jar:3.5.0]
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225) [cxf-rt-transports-http-3.5.0.jar:3.5.0]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:304) [cxf-rt-transports-http-3.5.0.jar:3.5.0]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:222) [cxf-rt-transports-http-3.5.0.jar:3.5.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:655) [tomcat-servlet-api_9.0.52.wso2v1.jar:?]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:279) [cxf-rt-transports-http-3.5.0.jar:3.5.0]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat_9.0.52.wso2v2.jar:?]
at io.entgra.device.mgt.core.device.mgt.api.jaxrs.ApiOriginFilter.doFilter(ApiOriginFilter.java:32) [classes/:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat_9.0.52.wso2v2.jar:?]
at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) [org.wso2.carbon.ui_4.6.2.284.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:667) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat_9.0.52.wso2v2.jar:?]
at org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:107) [org.wso2.carbon.identity.context.rewrite.valve_1.4.25.jar:?]
at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:110) [org.wso2.carbon.identity.authz.valve_1.4.25.jar:?]
at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:105) [org.wso2.carbon.identity.auth.valve_1.4.25.14.jar:?]
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:101) [org.wso2.carbon.tomcat.ext_4.6.2.168.jar:?]
at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) [org.wso2.carbon.tomcat.ext_4.6.2.168.jar:?]
at io.entgra.device.mgt.core.webapp.authenticator.framework.WebappAuthenticationValve.processRequest(WebappAuthenticationValve.java:301) [io.entgra.device.mgt.core.webapp.authenticator.framework_5.0.42.SNAPSHOT.jar:?]
at io.entgra.device.mgt.core.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:178) [io.entgra.device.mgt.core.webapp.authenticator.framework_5.0.42.SNAPSHOT.jar:?]
at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) [org.wso2.carbon.tomcat.ext_4.6.2.168.jar:?]
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) [org.wso2.carbon.tomcat.ext_4.6.2.168.jar:?]
at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:145) [org.wso2.carbon.tomcat.ext_4.6.2.168.jar:?]
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687) [tomcat_9.0.52.wso2v2.jar:?]
at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:59) [org.wso2.carbon.tomcat.ext_4.6.2.168.jar:?]
at org.wso2.carbon.tomcat.ext.valves.RequestCorrelationIdValve.invoke(RequestCorrelationIdValve.java:126) [org.wso2.carbon.tomcat.ext_4.6.2.168.jar:?]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat_9.0.52.wso2v2.jar:?]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat_9.0.52.wso2v2.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_251]
Caused by: io.entgra.device.mgt.core.application.mgt.core.exception.ApplicationManagementDAOException: More than one app for operation 1486
at io.entgra.device.mgt.core.application.mgt.core.dao.impl.subscription.GenericSubscriptionDAOImpl.getOperationAppDetails(GenericSubscriptionDAOImpl.java:1476) ~[io.entgra.device.mgt.core.application.mgt.core_5.0.42.SNAPSHOT.jar:?]
at io.entgra.device.mgt.core.application.mgt.core.impl.SubscriptionManagerImpl.getOperationAppDetails(SubscriptionManagerImpl.java:1664) ~[io.entgra.device.mgt.core.application.mgt.core_5.0.42.SNAPSHOT.jar:?]
... 65 more
Caused by: io.entgra.device.mgt.core.application.mgt.core.exception.UnexpectedServerErrorException: Internal server error. Found more than one app for operation
at io.entgra.device.mgt.core.application.mgt.core.util.DAOUtil.loadOperationActivity(DAOUtil.java:373) ~[io.entgra.device.mgt.core.application.mgt.core_5.0.42.SNAPSHOT.jar:?]
at io.entgra.device.mgt.core.application.mgt.core.dao.impl.subscription.GenericSubscriptionDAOImpl.getOperationAppDetails(GenericSubscriptionDAOImpl.java:1461) ~[io.entgra.device.mgt.core.application.mgt.core_5.0.42.SNAPSHOT.jar:?]
at io.entgra.device.mgt.core.application.mgt.core.impl.SubscriptionManagerImpl.getOperationAppDetails(SubscriptionManagerImpl.java:1664) ~[io.entgra.device.mgt.core.application.mgt.core_5.0.42.SNAPSHOT.jar:?]
... 65 more
Updated by Inosh Perara 6 months ago
- Project changed from Backlog to product-uem 6.2.0 GA
Updated by Oshani Silva 6 months ago
- Due date set to 18/06/2024
- Start date changed from 07/08/2023 to 13/06/2024
Updated by Oshani Silva 6 months ago
- Due date changed from 18/06/2024 to 21/06/2024
- Start date changed from 13/06/2024 to 17/06/2024
Updated by Oshani Silva 6 months ago
- Due date changed from 21/06/2024 to 23/06/2024
Updated by Oshani Silva 6 months ago
- Due date changed from 23/06/2024 to 24/06/2024
Updated by Viranga Gunarathna 5 months ago
- Due date changed from 24/06/2024 to 02/07/2024
- Start date changed from 17/06/2024 to 25/06/2024
Updated by Oshani Silva 5 months ago
- Start date changed from 25/06/2024 to 30/06/2024
Updated by Oshani Silva 5 months ago
- Due date changed from 02/07/2024 to 27/07/2024
- Status changed from Needs Improvement to Implementation
- Start date changed from 30/06/2024 to 26/06/2024
Updated by Oshani Silva 5 months ago
- Due date changed from 27/07/2024 to 28/06/2024
Updated by Oshani Silva 5 months ago
- % Done changed from 0 to 100
Related PR for mentioned error
https://repository.entgra.net/community/device-mgt-core/pulls/430
https://repository.entgra.net/support/support-carbon-device-mgt/pulls/134
https://repository.entgra.net/proprietary/emm-proprietary-plugins/pulls/523
https://repository.entgra.net/support/support-emm-proprietary-plugins/pulls/126
Updated by Viranga Gunarathna 4 months ago
- Status changed from QA Accept to Closed
Closing due to QA accept.