-
Notifications
You must be signed in to change notification settings - Fork 588
Improve tenant perspective organization context rewrite configs #7566
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4030,22 +4030,68 @@ | |||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| <OrgContextsToRewriteInTenantPerspective> | ||||||||||||||||||||||||||||||||||||||
| <WebApp> | ||||||||||||||||||||||||||||||||||||||
| {% for org_context_in_tenant_perspective in org_context_in_tenant_perspective.rewrite %} | ||||||||||||||||||||||||||||||||||||||
| {% for base_path in org_context_in_tenant_perspective.base_path %} | ||||||||||||||||||||||||||||||||||||||
| <Context> | ||||||||||||||||||||||||||||||||||||||
| <BasePath>{{base_path}}</BasePath> | ||||||||||||||||||||||||||||||||||||||
| <SubPaths> | ||||||||||||||||||||||||||||||||||||||
| {% for sub_path in org_context_in_tenant_perspective.sub_paths %} | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+4033
to
+4038
|
||||||||||||||||||||||||||||||||||||||
| {% for org_context_in_tenant_perspective in org_context_in_tenant_perspective.rewrite %} | |
| {% for base_path in org_context_in_tenant_perspective.base_path %} | |
| <Context> | |
| <BasePath>{{base_path}}</BasePath> | |
| <SubPaths> | |
| {% for sub_path in org_context_in_tenant_perspective.sub_paths %} | |
| {% for rewrite_item in org_context_in_tenant_perspective.rewrite %} | |
| {% for base_path in rewrite_item.base_path %} | |
| <Context> | |
| <BasePath>{{base_path}}</BasePath> | |
| <SubPaths> | |
| {% for sub_path in rewrite_item.sub_paths %} |
Copilot
AI
Oct 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These loops assume that 'org_context_in_tenant_perspective.rewrite.servlets' and 'org_context_in_tenant_perspective.rewrite.custom_servlets' are iterable collections, but there's no validation to ensure these properties exist or are properly structured.
| <Servlet> | |
| {% for servlet in org_context_in_tenant_perspective.rewrite.servlets %} | |
| <Context>{{servlet}}</Context> | |
| {% endfor %} | |
| {% for servlet in org_context_in_tenant_perspective.rewrite.custom_servlets %} | |
| <Context>{{servlet}}</Context> | |
| {% endfor %} | |
| <Servlet> | |
| {% if org_context_in_tenant_perspective.rewrite.servlets is defined and org_context_in_tenant_perspective.rewrite.servlets %} | |
| {% for servlet in org_context_in_tenant_perspective.rewrite.servlets %} | |
| <Context>{{servlet}}</Context> | |
| {% endfor %} | |
| {% endif %} | |
| {% if org_context_in_tenant_perspective.rewrite.custom_servlets is defined and org_context_in_tenant_perspective.rewrite.custom_servlets %} | |
| {% for servlet in org_context_in_tenant_perspective.rewrite.custom_servlets %} | |
| <Context>{{servlet}}</Context> | |
| {% endfor %} | |
| {% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The loop variable name conflicts with the parent object name 'org_context_in_tenant_perspective'. This will shadow the parent variable and make nested properties inaccessible within the loop.