[MGNLGROOVY-75] CLONE - Support using JCR session within Groovy console - port Created: 17/Jun/13 Updated: 10/Sep/13 Resolved: 09/Jul/13 |
|
| Status: | Closed |
| Project: | Magnolia Groovy Module |
| Component/s: | None |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | 2.0.2 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Jaroslav Simak | Assignee: | Ondrej Chytil |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| 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)
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Description |
|
Right now it is not possible to use JCR session directly, Repository exception is thrown. See code below. Welcome to the Magnolia Groovy Interactive Console! Type 'help' for more info and a list of available commands. [Using Groovy version 1.7.10].
mgnl> s = ctx.getJCRSession("website")
===>
session-admin-905
mgnl> s.getNode("/")
RepositoryException: This session has been closed. See the chained exception for a trace of where the session was closed.
mgnl>
|
| Comments |
| Comment by Ondrej Chytil [ 09/Jul/13 ] |
|
ContentDecoratorNodeWrapper should be used instead of ChildWrappingNodeWrapper. |
| Comment by Ondrej Chytil [ 09/Jul/13 ] |