Skip to content

alias refactoring - use Resource instead of Path when getting aliases - fix recursion when Resource parent not accessible #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 2, 2025

Conversation

reschke
Copy link
Contributor

@reschke reschke commented Jun 2, 2025

This fixes the case where the parent of a Resource is null, which previously aborted the recursion, returning an incorrectly populated PathGenerator.

The code now walks the (String) path again, but continues to use Resources as long as possible (after which only the names are added to the generator, just as before).

The actual fix is in e555757; the PR includes the re-revert of the problematic change.

reschke added 2 commits June 2, 2025 15:52
…rce instead of Path when getting aliases (#178)"

This reverts commit 1366946.
…ad of Path when getting aliases - fix recursion when Resource parent not accessible
@reschke reschke requested a review from joerghoh June 2, 2025 14:57
@reschke reschke self-assigned this Jun 2, 2025
…ad of Path when getting aliases - typo, and making IntelliJ happier
Copy link

sonarqubecloud bot commented Jun 2, 2025

@reschke reschke merged commit 1dbc1bc into master Jun 2, 2025
3 checks passed
@reschke reschke deleted the SLING-12787 branch June 2, 2025 16:25
reschke added a commit that referenced this pull request Jun 4, 2025
… - fix recursion when Resource parent not accessible (#183)

* Reapply "SLING-12787: ResourceResolver: alias refactoring - use Resource instead of Path when getting aliases (#178)"

This reverts commit 1366946.

* SLING-12787: ResourceResolver: alias refactoring - use Resource instead of Path when getting aliases - fix recursion when Resource parent not accessible

* SLING-12787: ResourceResolver: alias refactoring - use Resource instead of Path when getting aliases - typo, and making IntelliJ happier
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