Skip to content

[BUG]SpecificAssetId not displayed in SelfManagedEntity response – returns blank object #933

@mm-hsh

Description

@mm-hsh

Describe the bug
When adding a specificAssetId to a SelfManagedEntity and configuring the template in BaSyx, the API response returns an empty object for specificAssetIds instead of the expected values.

To Reproduce

  1. Add a specificAssetId in a SelfManagedEntity.
  2. Configure the template in BaSyx.
  3. Query the entity via the API.
  4. Observe that the response contains:
{
  "modelType": "Entity",
  "entityType": "SelfManagedEntity",
  "globalAssetId": "",
  "specificAssetIds": [
    {}
  ]

}

Expected behavior
The specificAssetIds array should contain the name-value pairs, semanticId and externalSubjectId for the asset IDs that were configured, not an empty object.

Screenshots

Image Image Image

endpoint :

http://localhost:8081/submodels/aHR0cHM6Ly9hZG1pbi1zaGVsbC5pby9pZHRhL1N1Ym1vZGVsVGVtcGxhdGUvSGllcmFyY2hpY2FsU3RydWN0dXJlc0JvTS8xLzE/submodel-elements/EntryNode

response :

{
  "modelType": "Entity",
  "entityType": "SelfManagedEntity",
  "globalAssetId": "https://admin-shell.io/idta/HierarchicalStructures/EntryNode/1/0",
  "specificAssetIds": [
    {

    }
  ],
  "statements": [
    {
/// other value
     }
    ]
}

Used Asset Administration files (.aasx/.json/.xml)

https___example_com_ids_aas_9194_9081_3022_4668.aas.xml

BaSyx configuration
Images Tags

  • aas-env : aas-environment:2.0.0-SNAPSHOT-af9f350
  • aas-registry : aas-registry-log-mongodb:2.0.0-SNAPSHOT-87d97dd
  • sm-registry : submodel-registry-log-mongodb:2.0.0-SNAPSHOT-87d97dd
  • aas-web-ui : aas-gui:SNAPSHOT-66091fe

basyx-setup-new.zip

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions