Improvement #10094
closedAdd a note in the APN policy UI mentioning availability only for system apps / APN policy is not working
100%
Description
Environment details
513 server and 520 server
Agent version: v4.01.00.36
Prerequisites
Policy with APN details
Steps
Apply the APN policy in to the devices.
Description
The policy did not applied. Policy Bundle operation fails with an error [1].
Result
APN policy is not appliyng due to payload issue [1].
[1]
Unrecoverable error with payload {io.entgra.iot.agent.seperator}org.wso2.iot.agent.AndroidAgentException: Error in parsing APN policy payload. at org.wso2.iot.agent.services.operation.OperationManager.configureAPN(OperationManager.java:1673) at org.wso2.iot.agent.services.operation.OperationProcessor.doTask(OperationProcessor.java:144) at org.wso2.iot.agent.services.operation.OperationProcessor.setPolicyBundle(OperationProcessor.java:523) at org.wso2.iot.agent.services.operation.OperationProcessor.doTask(OperationProcessor.java:204) at org.wso2.iot.agent.services.MessageSyncService.performOperation(MessageSyncService.java:219) at org.wso2.iot.agent.services.MessageSyncService.onReceiveAPIResult(MessageSyncService.java:798) at org.wso2.iot.agent.proxy.APIController$3.parseNetworkResponse(APIController.java:209) at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:144) at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:111) at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90) Caused by: org.json.JSONException: Value at proxyPort of type java.lang.String cannot be converted to int at org.json.JSON.typeMismatch(JSON.java:101) at org.json.JSONObject.getInt(JSONObject.java:492) at org.wso2.iot.agent.services.operation.OperationManager.configureAPN(OperationManager.java:1390) ... 9 more
[1]
Files
Updated by Arshana Atapattu almost 2 years ago
- File deleted (
Screenshot 2023-05-11 235106.png)
Updated by Arshana Atapattu almost 2 years ago
- File Screenshot from 2023-05-31 11-06-53.png Screenshot from 2023-05-31 11-06-53.png added
- Description updated (diff)
- Assignee deleted (
Kavin Prathaban)
Updated by Viranga Gunarathna almost 2 years ago
- Project changed from product-uem 5.3.0 GA to 32
Updated by Arshana Atapattu over 1 year ago
- Project changed from 33 to product-uem 6.0.0 GA
Updated by Arshana Atapattu over 1 year ago
this is the payload:
{"policyName":"APN policy","description":"APN policy","active":true,"compliance":"enforce","ownershipType":null,"policyType":"GENERAL","profile":{"profileName":"APN policy","deviceType":"android","profileFeaturesList":[{"featureCode":"APN","deviceType":"android","content":{"name":"Airtel Internet","apn":"AirtelLive","proxyAddress":null,"proxyPort":"","username":null,"password":null,"server":null,"mMSC":null,"mmsProxyAddress":null,"mMSProxyPort":"","mCC":"","mNC":"","authenticationType":"none","type":"default","protocol":"ipv4v6","roamingProtocol":"ipv4v6","bearer":"unspecified","isEnable":true,"mVNOType":"gid"},"correctiveActions":[]}]},"deviceGroups":[{"id":12,"name":"Policy group"}],"roles":["ANY"],"users":[]}
Updated by Oshani Silva over 1 year ago
- Project changed from product-uem 6.0.0 GA to product-uem 6.1.0 GA
Updated by Viranga Gunarathna about 1 year ago
- Project changed from product-uem 6.1.0 GA to Backlog
Updated by Viranga Gunarathna about 1 year ago
- Project changed from Backlog to product-uem 6.1.0 GA
Updated by Sandaru Daminda about 1 year ago
- Due date set to 20/02/2024
- % Done changed from 0 to 30
Updated by Inosh Perara about 1 year ago
- Project changed from product-uem 6.1.0 GA to product-uem 6.2.0 GA
Updated by Sandaru Daminda 12 months ago
- Due date changed from 20/02/2024 to 09/05/2024
- Start date changed from 24/05/2023 to 07/05/2024
Updated by Sandaru Daminda 11 months ago
- Due date changed from 09/05/2024 to 04/06/2024
- Start date changed from 07/05/2024 to 01/06/2024
Updated by Sandaru Daminda 10 months ago
- Due date changed from 04/06/2024 to 17/06/2024
- Start date changed from 01/06/2024 to 13/06/2024
Updated by Sandaru Daminda 10 months ago
Only available with System apps. need to mention this in policy UI.
https://developer.android.com/reference/android/Manifest.permission#WRITE_APN_SETTINGS
Updated by Sandaru Daminda 10 months ago
Since this is only available on system apps, we need to add a note by mentioning availability only for system apps in the APN policy UI.
Updated by Viranga Gunarathna 10 months ago
- Tracker changed from Bug to Improvement
- Subject changed from APN policy is not working to Add a note in the APN policy UI mentioning availability only for system apps
- Due date deleted (
17/06/2024) - Assignee deleted (
Sandaru Daminda) - Start date changed from 13/06/2024 to 24/06/2024
- % Done changed from 30 to 0
Updated by Viranga Gunarathna 10 months ago
- Due date set to 12/07/2024
- Assignee set to Oshani Silva
- Start date changed from 24/06/2024 to 11/07/2024
Updated by Oshani Silva 10 months ago
- Due date changed from 12/07/2024 to 28/06/2024
- Start date changed from 11/07/2024 to 28/06/2024
- Estimated time set to 4:00 h
Updated by Oshani Silva 10 months ago
- Status changed from In Progress to 12
- % Done changed from 0 to 100
Updated by Arshana Atapattu 9 months ago
- Subject changed from Add a note in the APN policy UI mentioning availability only for system apps to Add a note in the APN policy UI mentioning availability only for system apps / APN policy is not working
- Status changed from 10 to Closed
Closing due to QA accept