Skip to content
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

SLING-10447 Improve the querys that are used to load vanity paths, by specifying path restrictions #46

Conversation

henrykuijpers
Copy link

No description provided.

Henry Kuijpers added 5 commits June 2, 2021 18:43
…torage

# Conflicts:
#	src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
#	src/test/java/org/apache/sling/resourceresolver/impl/mapping/InMemoryResourceProvider.java
…s now superseded by the alias, vanity & mapping root settings
@rombert
Copy link
Contributor

rombert commented Jun 3, 2021

Thanks for the PR @henrykuijpers ! I'll not merge it immediately as @kwin has some concerns on whether this is the right thing to do.

If we end up going this way, we will need the branch to be rebased as it has conflicts.

…te sets, make /jcr:system exclude default in ResourceResolverFactoryActivator, make query building code easier to read/understand
@henrykuijpers
Copy link
Author

Just did a commit with some fixes, @jsedding . :) Can you have another look?

@sonarcloud
Copy link

sonarcloud bot commented Jun 11, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

95.4% 95.4% Coverage
0.0% 0.0% Duplication

@@ -707,7 +748,7 @@ public void onChange(final List<ResourceChange> changes) {
log.debug("onChange, type={}, path={}", rc.getType(), path);

// don't care for system area
if (path.startsWith(JCR_SYSTEM_PREFIX)) {
if (path.startsWith(JCR_SYSTEM_PATH + '/')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while this is not a big deal, why did you change this from a constant to an expression that is executed each time?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is an oversight: I think I inlined a few values, I'll change it back to a constant.

@sonarcloud
Copy link

sonarcloud bot commented Aug 19, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

95.4% 95.4% Coverage
0.0% 0.0% Duplication

@reschke
Copy link
Contributor

reschke commented May 22, 2022

This PR can be closed, right? (see https://issues.apache.org/jira/browse/SLING-10447)

@cziegeler cziegeler closed this May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants