Project

General

Profile

Actions

Improvement #10094

closed

Add a note in the APN policy UI mentioning availability only for system apps / APN policy is not working

Added by Arshana Atapattu over 1 year ago. Updated 3 months ago.

Status:
Closed
Priority:
High
Assignee:
Start date:
28/06/2024
Due date:
28/06/2024
% Done:

100%

Estimated time:
4:00 h
Device Type:
Component:
Type:
UI

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

Actions #1

Updated by Arshana Atapattu over 1 year ago

  • File deleted (Screenshot 2023-05-11 235106.png)
Actions #2

Updated by Arshana Atapattu over 1 year ago

Actions #3

Updated by Viranga Gunarathna over 1 year ago

  • Project changed from product-uem 5.3.0 GA to 32
Actions #4

Updated by Viranga Gunarathna over 1 year ago

  • Project changed from 32 to 33
Actions #5

Updated by Arshana Atapattu about 1 year ago

  • Project changed from 33 to product-uem 6.0.0 GA
Actions #6

Updated by Arshana Atapattu about 1 year ago

  • Assignee set to Sandaru Daminda
Actions #7

Updated by Arshana Atapattu 11 months 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":[]}

Actions #8

Updated by Oshani Silva 9 months ago

  • Project changed from product-uem 6.0.0 GA to product-uem 6.1.0 GA
Actions #9

Updated by Viranga Gunarathna 8 months ago

  • Project changed from product-uem 6.1.0 GA to Backlog
Actions #10

Updated by Viranga Gunarathna 8 months ago

  • Project changed from Backlog to product-uem 6.1.0 GA
  • Type set to Android
Actions #11

Updated by Sandaru Daminda 8 months ago

  • Due date set to 20/02/2024
  • % Done changed from 0 to 30
Actions #12

Updated by Inosh Perara 6 months ago

  • Project changed from product-uem 6.1.0 GA to product-uem 6.2.0 GA
Actions #13

Updated by Sandaru Daminda 5 months ago

  • Due date changed from 20/02/2024 to 09/05/2024
  • Start date changed from 24/05/2023 to 07/05/2024
Actions #14

Updated by Sandaru Daminda 4 months ago

  • Due date changed from 09/05/2024 to 04/06/2024
  • Start date changed from 07/05/2024 to 01/06/2024
Actions #15

Updated by Sandaru Daminda 4 months ago

  • Due date changed from 04/06/2024 to 17/06/2024
  • Start date changed from 01/06/2024 to 13/06/2024
Actions #16

Updated by Sandaru Daminda 4 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

Actions #17

Updated by Sandaru Daminda 4 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.

Actions #18

Updated by Viranga Gunarathna 3 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
  • Type changed from Android to UI
Actions #19

Updated by Viranga Gunarathna 3 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
Actions #20

Updated by Oshani Silva 3 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
Actions #21

Updated by Oshani Silva 3 months ago

  • Status changed from New to Implementation
Actions #22

Updated by Oshani Silva 3 months ago

  • Status changed from Implementation to QA
  • % Done changed from 0 to 100
Actions #23

Updated by Arshana Atapattu 3 months ago

  • Status changed from QA to QA Accept

This is working

Actions #24

Updated by Arshana Atapattu 3 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 QA Accept to Closed

Closing due to QA accept

Actions

Also available in: Atom PDF