Inconsistent Paging for GET /shell-descriptors
with Large Datasets and Classic Access Control
#498
Labels
bug
Something isn't working
Current Behavior
The
GET /shell-descriptors
endpoint returns a reduced amount of result entries for counter party BPNs when using the "Access Control Classic Implementation" with a large amount ofShellDescriptor
entries.Expected Behavior
The
GET /shell-descriptors
endpoint will return records that are accessible for the counter party BPN and an entry amount according to the page size.Steps To Reproduce
granularAccessControlFetchSize
propertyspecificAssetIds
withexternalSubjectId
set to{{COUNTER_PARTY_BPN}}
GET /shell-descriptors
endpoint withEdc-Bpn
Header set to{{COUNTER_PARTY_BPN}}
Suspected Root Cause
The issue could recide in
sldt-digital-twin-registry/backend/src/main/java/org/eclipse/tractusx/semantics/registry/utils/ShellSpecification.java
Lines 73 to 90 in 07f9a65
which creates joins that lead to multiple rows being generated per shell, which could confuse the paging mechanism of spring. The relevant call should come from
sldt-digital-twin-registry/backend/src/main/java/org/eclipse/tractusx/semantics/registry/service/ShellService.java
Line 215 in 07f9a65
The text was updated successfully, but these errors were encountered: