-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Pagination is not working correctly in the GET /shells/{aasIdentifier}/submodel-refs endpoint when using MongoDB as the backend. Even when using limit and cursor query parameters, the same data is returned repeatedly. However, this issue does not occur when using the in-memory database.
To Reproduce
Steps to reproduce the behavior:
- Steps to reproduce the behavior:
- Set up the AAS environment with MongoDB as the backend.
- Call GET /shells/{aasIdentifier}/submodel-refs?limit=1
- Use the returned cursor in the next request.
- Observe that the same data is returned again, instead of the next page.
Expected behavior
- The endpoint should return the next set of submodel-refs based on the cursor and limit.
- Pagination should behave consistently across different backends.
BaSyx :
- Aas-env image version: aas-environment:2.0.0-SNAPSHOT
- aas-registry image version: aas-registry-log-mongodb:2.0.0-SNAPSHOT
- sm-registry image version: submodel-registry-log-mongodb:2.0.0-SNAPSHOT
Screenshots
endpoint: http://localhost:8081/shells/{aasIdentifier}/submodel-refs?limit=1
Used Asset Administration files (.aasx/.json/.xml)
BaSyx configuration
Additional context
- Pagination works correctly with the in-memory database.
- The issue seems specific to MongoDB backend.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
To triage