You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2024/08/13 13:01:00 UTC

[jira] [Commented] (SLING-12399) ResourceResolver: add test coverage for empty aliases

    [ https://issues.apache.org/jira/browse/SLING-12399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873187#comment-17873187 ] 

Julian Reschke commented on SLING-12399:
----------------------------------------

From manual testing:

- empty aliases will not be flagged as invalid, but are harmless as they never get used
- blank (space only) aliases indeed work

Proposal:

- add test coverage for both
- flag empty aliases as invalid (so that it shows in the log, and users become aware about potentially broken entries)

> ResourceResolver: add test coverage for empty aliases
> -----------------------------------------------------
>
>                 Key: SLING-12399
>                 URL: https://issues.apache.org/jira/browse/SLING-12399
>             Project: Sling
>          Issue Type: Task
>          Components: ResourceResolver
>            Reporter: Julian Reschke
>            Priority: Major
>
> ...and either document what they mean, or disallow them in https://github.com/apache/sling-org-apache-sling-resourceresolver/blob/428f8a7d5b8f3621c525e3c8782eb1e2586d1f5a/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java#L1300



--
This message was sent by Atlassian Jira
(v8.20.10#820010)