Project

General

Profile

Actions

Bug #11023

open

When added a package name with white space(spaces), policy does not apply for that app

Added by Arshana Atapattu about 1 month ago. Updated about 1 month ago.

Status:
Implementation
Priority:
Critical
Assignee:
Start date:
04/16/2024
Due date:
04/16/2024 (34 days late)
% Done:

100%

Estimated time:
Device Type:
Component:
Type:
UI

Description

Environment details
Staging server(6.1.0)

Prerequisites
created app usage policy or can create a app usage policy

Steps
create a policy with app usage [1]
when creating the policy in the "Package Name" field add white space(pres space bar) in both sides of the package name [1].

Description

NOTE: There also could be other places this issue happening.

When a policy was created with package with white space that package name is incorrect.
the front end payload goes with those whitespace as the package name.

When the policy is applied on the device, those packages with spaces does not obey the policy(since device does not recognize thos pakcage names)
How the payload goes with whitespace [2]
Note the package name has spaces in the payload.

How it should be [3]
Note the package name has no spaces(whitespace)

Result

[1]
[1]

[2] {
"policyName":"App usage policy",
"description":"App usage policy",
"active":true,
"compliance":"enforce",
"ownershipType":null,
"policyType":"GENERAL",
"profile":{
"profileName":"App usage policy",
"deviceType":"android",
"profileFeaturesList":[ {
"featureCode":"APP_USAGE",
"deviceType":"android",
"content":{
"isNetworkUsageEnabled":false,
"isBlockMeteredConnectionEnabled":true,
"appsToBlockMeteredConnection":[ {
"appName":"chrome",
"packageName":" com.android.chrome "
}
],
"isMeteredConnectionNotificationsEnabled":false,
"isMeteredConnectionHideAppsEnabled":false
},
"correctiveActions":[

]
}
]
},
"deviceGroups":[ {
"id":59,
"name":"Test Devices"
}
],
"roles":[
"ANY"
],
"users":[
]
}

[3] {
"policyName":"New app",
"description":"New app",
"compliance":"enforce",
"ownershipType":null,
"active":true,
"policyType":"GENERAL",
"profile":{
"profileName":"New app",
"deviceType":"android",
"profileFeaturesList":[ {
"featureCode":"APP_USAGE",
"deviceType":"android",
"content":{
"isNetworkUsageEnabled":false,
"isBlockMeteredConnectionEnabled":true,
"appsToBlockMeteredConnection":[ {
"appName":"chrome",
"packageName":"com.android.chrome"
}
],
"isMeteredConnectionNotificationsEnabled":false,
"isMeteredConnectionHideAppsEnabled":false
},
"correctiveActions":[

]
}
]
},
"deviceGroups":[ {
"id":59,
"name":"Test Devices"
}
],
"roles":[
"ANY"
],
"users":[
]
}

Files

Screenshot from 2024-04-10 13-06-06.png (112 KB) Screenshot from 2024-04-10 13-06-06.png [1] Arshana Atapattu, 04/10/2024 07:36 AM
Actions #1

Updated by Oshani Silva about 1 month ago

  • Due date set to 04/16/2024
  • Status changed from New to Implementation
  • Assignee set to Oshani Silva
  • Start date changed from 04/10/2024 to 04/16/2024
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF