{"action":"created","issue":{"url":"https://api.github.com/repos/wso2/product-iots/issues/1795","repository_url":"https://api.github.com/repos/wso2/product-iots","labels_url":"https://api.github.com/repos/wso2/product-iots/issues/1795/labels{/name}","comments_url":"https://api.github.com/repos/wso2/product-iots/issues/1795/comments","events_url":"https://api.github.com/repos/wso2/product-iots/issues/1795/events","html_url":"https://github.com/wso2/product-iots/issues/1795","id":306397979,"number":1795,"title":"Location operation goes even when the iOS agent is not installed","user":{"login":"madawas","id":4003137,"avatar_url":"https://avatars0.githubusercontent.com/u/4003137?v=4","gravatar_id":"","url":"https://api.github.com/users/madawas","html_url":"https://github.com/madawas","followers_url":"https://api.github.com/users/madawas/followers","following_url":"https://api.github.com/users/madawas/following{/other_user}","gists_url":"https://api.github.com/users/madawas/gists{/gist_id}","starred_url":"https://api.github.com/users/madawas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madawas/subscriptions","organizations_url":"https://api.github.com/users/madawas/orgs","repos_url":"https://api.github.com/users/madawas/repos","events_url":"https://api.github.com/users/madawas/events{/privacy}","received_events_url":"https://api.github.com/users/madawas/received_events","type":"User","site_admin":false},"labels":[{"id":775270084,"url":"https://api.github.com/repos/wso2/product-iots/labels/Component/IOS","name":"Component/IOS","color":"33b779","default":false},{"id":683238844,"url":"https://api.github.com/repos/wso2/product-iots/labels/Priority/High","name":"Priority/High","color":"ff9900","default":false},{"id":611044369,"url":"https://api.github.com/repos/wso2/product-iots/labels/Severity/Major","name":"Severity/Major","color":"e25831","default":false},{"id":258211510,"url":"https://api.github.com/repos/wso2/product-iots/labels/Type/Bug","name":"Type/Bug","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/wso2/product-iots/milestones/17","html_url":"https://github.com/wso2/product-iots/milestone/17","labels_url":"https://api.github.com/repos/wso2/product-iots/milestones/17/labels","id":3019852,"number":17,"title":"Unplanned","description":"","creator":{"login":"ruwany","id":6408379,"avatar_url":"https://avatars3.githubusercontent.com/u/6408379?v=4","gravatar_id":"","url":"https://api.github.com/users/ruwany","html_url":"https://github.com/ruwany","followers_url":"https://api.github.com/users/ruwany/followers","following_url":"https://api.github.com/users/ruwany/following{/other_user}","gists_url":"https://api.github.com/users/ruwany/gists{/gist_id}","starred_url":"https://api.github.com/users/ruwany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruwany/subscriptions","organizations_url":"https://api.github.com/users/ruwany/orgs","repos_url":"https://api.github.com/users/ruwany/repos","events_url":"https://api.github.com/users/ruwany/events{/privacy}","received_events_url":"https://api.github.com/users/ruwany/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2018-01-08T14:49:54Z","updated_at":"2018-03-28T05:36:27Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-03-19T10:03:57Z","updated_at":"2018-03-29T10:43:49Z","closed_at":null,"author_association":"MEMBER","body":"**Description:**\r\nWhen iOS agent is not installed and the location task is disabled, location operation adds when the device detail page is reloaded and the following exception occurs.\r\n\r\n```\r\nTID: [-1234] [] [2018-03-19 09:26:36,852] ERROR {org.wso2.carbon.device.mgt.ios.services.impl.EnrollmentServiceImpl} -  Error occurred while sending a push notification message to APNS {org.wso2.carbon.device.mgt.ios.services.impl.EnrollmentServiceImpl}\r\norg.wso2.carbon.device.mgt.ios.apns.exception.APNSException: ios agent is not enrolled for this device. Agent is required to perform the device location operation on the device\r\n\tat org.wso2.carbon.device.mgt.ios.util.OperationMapper.mapToCommandOperations(OperationMapper.java:283)\r\n\tat org.wso2.carbon.device.mgt.ios.util.OperationUtils.generateOperationPayload(OperationUtils.java:109)\r\n\tat org.wso2.carbon.device.mgt.ios.services.impl.EnrollmentServiceImpl.serverRequest(EnrollmentServiceImpl.java:865)\r\n\tat sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)\r\n\tat org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)\r\n\tat org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)\r\n\tat org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)\r\n\tat org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)\r\n\tat org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)\r\n\tat org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)\r\n\tat org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)\r\n\tat org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)\r\n\tat org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)\r\n\tat org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)\r\n\tat org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)\r\n\tat org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)\r\n\tat org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)\r\n\tat org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPut(AbstractHTTPServlet.java:226)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:653)\r\n\tat org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)\r\n\tat org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)\r\n\tat org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.processRequest(WebappAuthenticationValve.java:151)\r\n\tat org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:69)\r\n\tat org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1770)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1729)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n```\r\n\r\n**Affected Product Version:**\r\nwso2iot-3.2.0, ios-3.2.2\r\n\r\n**OS, DB, other environment details and versions:**\r\nAWS ubuntu, MySQL 5.6\r\n\r\n**Steps to reproduce:**\r\n - Enroll an iOS device without agent.\r\n - Disable location task.\r\n - View device view page."},"comment":{"url":"https://api.github.com/repos/wso2/product-iots/issues/comments/377196612","html_url":"https://github.com/wso2/product-iots/issues/1795#issuecomment-377196612","issue_url":"https://api.github.com/repos/wso2/product-iots/issues/1795","id":377196612,"user":{"login":"stale[bot]","id":26384082,"avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-03-29T10:43:49Z","updated_at":"2018-03-29T10:43:49Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity.\n"}}
{"actor":{"display_login":"stale"}}