Skip to content

RDE additional resources fixes#80

Open
Kostr wants to merge 3 commits into
AMDESE:integ_sp7from
Kostr:rde_registry_fixes
Open

RDE additional resources fixes#80
Kostr wants to merge 3 commits into
AMDESE:integ_sp7from
Kostr:rde_registry_fixes

Conversation

@Kostr

@Kostr Kostr commented Jun 29, 2026

Copy link
Copy Markdown

Hello!

I've found several bugs with the handling of AdditionalResource's fields. Please review.

I don't use this fork directly as-is, therefore it would be better if you do some testing before the merge.

Kostr added 3 commits June 29, 2026 10:18
Currently the parent for all the AdditionalResourceSubURIs is set to
the current PDR ResourceId. This is wrong, since the parent for both
the SubURI and all the AdditionalResourceSubURIs should be set to
ContainingResourceID. Correct that to fix the issue.

Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Currently additional resources are not added to the resInfoMap map.
Because of that records for additional resources are missing fields
in the file '/tmp/ResourceRegistry_<EID>'.
Add all the additional resources to the resInfoMap map to fix the issue.

Tested:
Verify that all the records for additional resources in the file
'/tmp/ResourceRegistry_<EID>' contain all the fields.

Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Currently the constructFullUriRecursive contains a workaround for the
duplicate segments in the URI. Apparently this workaround was
introduced to mask a bug with additional resources that earlier had
their parent set to ResourceID instead of the ContainingResourceID.
It is worth to notice that this workaround wasn't working for the cases
when there are more than one additional resources in the PDR.
For example it produced URIs:
- NetworkDeviceFunctions/0
- NetworkDeviceFunctions/0/1
- NetworkDeviceFunctions/0/2
- NetworkDeviceFunctions/0/3
instead of
- NetworkDeviceFunctions/0
- NetworkDeviceFunctions/1
- NetworkDeviceFunctions/2
- NetworkDeviceFunctions/3
In any case, since the bug with additional resources parent was fixed,
the workaround code can be dropped.

Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants