You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by pa...@apache.org on 2020/04/14 15:30:09 UTC
[sling-org-apache-sling-scripting-bundle-tracker] branch master
updated: SLING-9371: fix the forced resource type dispatch
This is an automated email from the ASF dual-hosted git repository.
pauls pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-bundle-tracker.git
The following commit(s) were added to refs/heads/master by this push:
new d51f0ae SLING-9371: fix the forced resource type dispatch
d51f0ae is described below
commit d51f0ae389cabd4526a7983ee26dddb037fae1cd
Author: Karl Pauls <kp...@adobe.com>
AuthorDate: Tue Apr 14 17:29:57 2020 +0200
SLING-9371: fix the forced resource type dispatch
---
.../scripting/bundle/tracker/internal/request/RequestWrapper.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/scripting/bundle/tracker/internal/request/RequestWrapper.java b/src/main/java/org/apache/sling/scripting/bundle/tracker/internal/request/RequestWrapper.java
index 1039eec..630d6c3 100644
--- a/src/main/java/org/apache/sling/scripting/bundle/tracker/internal/request/RequestWrapper.java
+++ b/src/main/java/org/apache/sling/scripting/bundle/tracker/internal/request/RequestWrapper.java
@@ -81,8 +81,8 @@ public class RequestWrapper extends SlingHttpServletRequestWrapper {
if (StringUtils.isNotEmpty(forcedResourceType)) {
for (ResourceType wiredResourceType : wiredResourceTypes) {
String type = wiredResourceType.getType();
- if (type.startsWith(forcedResourceType + "/")) {
- requestDispatcherOptions.setForceResourceType(type);
+ if (type.equals(forcedResourceType)) {
+ requestDispatcherOptions.setForceResourceType(wiredResourceType.toString());
break;
}
}