Project

General

Profile

Actions

Bug #13559

open

Device status breaking after enrollment issue

Added by Sanuka Gamage 4 days ago.

Status:
New
Priority:
Critical
Assignee:
-
Start date:
15/07/2025
Due date:
% Done:

0%

Estimated time:
Device Type:
Component:
Type:
Platform
QA Start Time:
QA Due Time:
QA Estimated Time(Hours):

Description

product version 6.2.3.0

Description
When a request is sent to enroll a device into "Active" status, even a user who is not the owner is able to change the status. And it results in the device going to a "Removed" status.

Steps to Reproduce
  1. Enroll a device with the owner as "admin" (to move into Created state)
  2. Send request using postman to enroll device, but with token credentials of a different user (to move into Active state)
    Example request:
    {
      "name": "<<device name here>>" ,
      "description": "DEVICE_DESCRIPTION_VALUE",
      "deviceIdentifier": "<<device name here>>",
      "enrolmentInfo": {
        "ownership": "COPE",
        "owner": "<<user name here>>" 
      },
      "properties": [
        {
          "name": "SERIAL",
          "value": "<<device name here>>" 
        },
        {
          "name": "DEVICE_MODEL",
          "value": "ENTGRA_TEST" 
        }
      ],
      "deviceInfo" : {
        "deviceDetailsMap" : {
            "FIRMWARE_MODEL" : "<<firmware model name here>>",
            "FIRMWARE_VERSION" : "009011004",
            "SDK_VERSION" : "123" 
        }
      }
    }
    
    

observation
Upon creating, the device is listed in "Created" status as expected.
After sending the enrollment request, even from a different user, the device moves into the "Active state" in the "All Devices" section. However, when you navigate into the single device page, the device status is shown as "Removed" and is in an unusable state.


Files

ren100_removed.png (46.1 KB) ren100_removed.png Sanuka Gamage, 15/07/2025 11:42 AM
ren100_1.png (5.34 KB) ren100_1.png Sanuka Gamage, 15/07/2025 11:45 AM

No data to display

Actions

Also available in: Atom PDF