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

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

Added by Arshana Atapattu over 3 years ago. Updated over 2 years ago.

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

100%

Estimated time:
4:00 h
CallRef:

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 over 3 years ago Actions #1

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

Updated by Arshana Atapattu over 3 years ago Actions #2

Screenshot from 2023-05-31 11-06-53.png

Updated by Viranga Gunarathna over 3 years ago Actions #3

  • Project changed from product-uem 5.3.0 GA to 32

Updated by Viranga Gunarathna over 3 years ago Actions #4

  • Project changed from 32 to 33

Updated by Arshana Atapattu about 3 years ago Actions #5

  • Project changed from 33 to product-uem 6.0.0 GA

Updated by Arshana Atapattu about 3 years ago Actions #6

  • Assignee set to Sandaru Daminda

Updated by Arshana Atapattu about 3 years ago Actions #7

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 almost 3 years ago Actions #8

  • Project changed from product-uem 6.0.0 GA to product-uem 6.1.0 GA

Updated by Viranga Gunarathna over 2 years ago Actions #9

  • Project changed from product-uem 6.1.0 GA to Backlog

Updated by Viranga Gunarathna over 2 years ago Actions #10

  • Project changed from Backlog to product-uem 6.1.0 GA

Updated by Sandaru Daminda over 2 years ago Actions #11

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

Updated by Inosh Perara over 2 years ago Actions #12

  • Project changed from product-uem 6.1.0 GA to product-uem 6.2.0 GA

Updated by Sandaru Daminda over 2 years ago Actions #13

  • 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 over 2 years ago Actions #14

  • 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 over 2 years ago Actions #15

  • 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 over 2 years ago Actions #16

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 over 2 years ago Actions #17

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 over 2 years ago Actions #18

  • 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 over 2 years ago Actions #19

  • 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 over 2 years ago Actions #20

  • 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 over 2 years ago Actions #21

  • Status changed from New to In Progress

Updated by Oshani Silva over 2 years ago Actions #22

  • Status changed from In Progress to 12
  • % Done changed from 0 to 100

Updated by Arshana Atapattu over 2 years ago Actions #23

  • Status changed from 12 to 10

This is working

Updated by Arshana Atapattu over 2 years ago Actions #24

  • 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

Actions

Also available in: PDF Atom