[MAGNOLIA-4545] DelegateSessionWrapper - getWorkspace() allows escaping of unwrapped session Created: 21/Sep/12 Updated: 15/Mar/21 Resolved: 15/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 4.5.4 |
| Fix Version/s: | 4.5.x |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Jan Haderka | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
assertEquals(wrappedSession, wrappedSession.getWorkspace().getSession() |
| Comments |
| Comment by Tobias Mattsson [ 03/Dec/13 ] |
|
I'm tempted to close this as wont-fix, DelegateSessionWrapper only wraps calls against the wrapped session object and doesn't wrap any returned instances. Not Items not Nodes not Workspace. For a complete encapsulating of a concern I would instead recommend using the content decorator classes. |
| Comment by Jan Haderka [ 15/Mar/21 ] |
|
Doesn't seem to be an issue for anyone. |