[MGNLGROOVY-77] Support using JCR session within Groovy console Created: 14/Aug/13  Updated: 10/Sep/13  Resolved: 10/Sep/13

Status: Closed
Project: Magnolia Groovy Module
Component/s: None
Affects Version/s: 2.0.1
Fix Version/s: 2.1

Type: Improvement Priority: Major
Reporter: Jaroslav Simak Assignee: Ondrej Chytil
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLGROOVY-66 Support using JCR session within Groo... Closed
duplicate
duplicates MGNLGROOVY-75 CLONE - Support using JCR session wit... Closed
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)

 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>

To be ported to 2.x


Generated at Mon Feb 12 05:55:21 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.