[MAGNOLIA-2745] MgnlContext.getHierarchyManager with an unexisting workspace yields an NPE Created: 25/May/09  Updated: 23/Jan/13  Resolved: 23/Sep/09

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.1.1

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MAGNOLIA-2360 Need a clear warning or exception whe... Closed
is duplicated by MAGNOLIA-2892 Provide meaningful message on attempt... 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

.. it should throw a more explicit expression (at least an IllegalArgumentException) - currently info.magnolia.cms.beans.config.ContentRepository#getRepository just logs a warning, returns null, and info.magnolia.cms.util.WorkspaceAccessUtil#createRepositorySession consequently throws an NPE.



 Comments   
Comment by Magnolia International [ 16/Sep/09 ]

to verify - this should be fixed by MAGNOLIA-2360

Comment by Magnolia International [ 23/Sep/09 ]

verified

Generated at Mon Feb 12 03:39:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.