Project

General

Profile

Bug #11180

Updated by Arshana Atapattu 4 months ago

*Environment details* 
 Staging server(6.1.0) 


 *Prerequisites* 
 COPE device 
 Android policy 


 *Steps* 
 create a policy using "Global Proxy Settings" and empty the input fields [1]. 
 apply on the device 


 *Description* 
 when created a empty policy using the Global Proxy Settings, it will lead to error in POLICY_BUNDLE. 
 Payload when a policy edited with empty Global Proxy Settings: [2] 
 Error on UI: [3] 

 This error doesn't reproduce when the fields are not empty. 
 Therefore need to set some fields as required(user should be unable to create a policy without filling some fields) 
 Note: Check what are the required fields. maybe some fields are not required. those should be able to leave empty if wanted.  

 Note: When "Proxy Exclusion List" was empty, on BYOD device the policy failed(other fields were filled). This didnt happened with COPE or Kiosk. 

  



 *Result* 


 [1] 
 !Screenshot%20from%202024-05-15%2009-11-32.png! 


 [2] 
 { 
    "policyName":"Restriction compliance test", 
    "description":"Restriction compliance test", 
    "active":true, 
    "compliance":"enforce", 
    "ownershipType":null, 
    "policyType":"GENERAL", 
    "profile":{ 
       "profileName":"Restriction compliance test", 
       "deviceType":"android", 
       "profileFeaturesList":[ 
          { 
             "featureCode":"GLOBAL_PROXY", 
             "deviceType":"android", 
             "content":{ 
                "proxyConfigType":"MANUAL", 
                "proxyHost":"", 
                "proxyPort":"", 
                "proxyExclList":null 
             }, 
             "correctiveActions":[ 
               
             ] 
          } 
       ] 
    }, 
    "deviceGroups":[ 
       { 
          "id":59, 
          "name":"Test Devices" 
       } 
    ], 
    "roles":[ 
       "ANY" 
    ], 
    "users":[ 
      
    ] 
 } 

 [3] 
 !Screenshot%20from%202024-05-15%2009-17-20.png! 

Back