You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2022/02/21 09:35:54 UTC
[GitHub] [sling-org-apache-sling-scripting-bundle-tracker-it] karlpauls opened a new pull request #4: SLING-11155: add a test case for SLING-11155 to make sure we don't ov…
karlpauls opened a new pull request #4:
URL: https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker-it/pull/4
…erride the default GET servlet for proxies
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [sling-org-apache-sling-scripting-bundle-tracker-it] raducotescu commented on a change in pull request #4: SLING-11155 - Bundled scripts should be registered by path for the main script when overriding
Posted by GitBox <gi...@apache.org>.
raducotescu commented on a change in pull request #4:
URL: https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker-it/pull/4#discussion_r810945847
##########
File path: it/src/test/java/org/apache/sling/scripting/bundle/tracker/it/ScriptMatchIT.java
##########
@@ -133,6 +133,23 @@ public void testSelectorMatching() throws Exception {
".scriptmatching/1.0.0/selector-2.html"));
}
+ /*
+ * We need to test that we don't override the default GET servlet for resource types without a script
+ * This scenario can happen when we extend a resource type without providing a script ourself
+ * in this case, the registration should not override the default servlets for the none default extension.
+ * In other words, in this case, only the default extension should be handled by the resource super type -
+ * all other extensions should be handled by the default servlet.
+ */
+ @Test
+ public void testDefaultGETServlet() throws Exception {
+ // First test that the default extension is handled by the super type
+ Document document = getDocument(SCRIPT_MATCHING_BASE + "-no-version-rtsuper.html");
+ assertTrue(document.html().contains("/libs/rtsuper"));
+ // and now test that the none default json extension is not handled by it
+ document = getDocument(SCRIPT_MATCHING_BASE + "-no-version-rtsuper.json");
+ assertTrue(!document.html().contains("/libs/rtsuper"));
Review comment:
Should we add a more specific test here? I'm thinking that we can look for some specific output that the Default GET Servlet provides.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [sling-org-apache-sling-scripting-bundle-tracker-it] sonarcloud[bot] removed a comment on pull request #4: SLING-11155 - Bundled scripts should be registered by path for the main script when overriding
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] removed a comment on pull request #4:
URL: https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker-it/pull/4#issuecomment-1046685816
Kudos, SonarCloud Quality Gate passed! 
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=new_duplicated_lines_density&view=list)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [sling-org-apache-sling-scripting-bundle-tracker-it] karlpauls commented on pull request #4: SLING-11155: add a test case for SLING-11155 to make sure we don't ov…
Posted by GitBox <gi...@apache.org>.
karlpauls commented on pull request #4:
URL: https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker-it/pull/4#issuecomment-1046660417
This one will fail until https://github.com/apache/sling-org-apache-sling-servlets-resolver/pull/27 is merged
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [sling-org-apache-sling-scripting-bundle-tracker-it] karlpauls merged pull request #4: SLING-11155 - Bundled scripts should be registered by path for the main script when overriding
Posted by GitBox <gi...@apache.org>.
karlpauls merged pull request #4:
URL: https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker-it/pull/4
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [sling-org-apache-sling-scripting-bundle-tracker-it] sonarcloud[bot] commented on pull request #4: SLING-11155 - Bundled scripts should be registered by path for the main script when overriding
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on pull request #4:
URL: https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker-it/pull/4#issuecomment-1046685816
Kudos, SonarCloud Quality Gate passed! 
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=new_duplicated_lines_density&view=list)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [sling-org-apache-sling-scripting-bundle-tracker-it] sonarcloud[bot] commented on pull request #4: SLING-11155 - Bundled scripts should be registered by path for the main script when overriding
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on pull request #4:
URL: https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker-it/pull/4#issuecomment-1046725342
Kudos, SonarCloud Quality Gate passed! 
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-scripting-bundle-tracker-it&pullRequest=4&metric=new_duplicated_lines_density&view=list)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org