Author: andreas
Date: Tue May 26 13:06:05 2009
New Revision: 778686
URL: http://svn.apache.org/viewvc?rev=778686&view=rev
Log:
Adding invariant to avoid issues with access controller resolution.
Modified:
lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java
Modified: lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java?rev=778686&r1=778685&r2=778686&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java Tue May 26 13:06:05 2009
@@ -197,6 +197,9 @@
protected void initAccessController() throws AccessControlException {
if (this.accreditableManager == null) {
+ if (this.pubId == null) {
+ throw new IllegalStateException("The publication ID could not yet be determined.");
+ }
AccessController accessController = this.acResolver.resolveAccessController("/"
+ this.pubId + "/");
this.accreditableManager = accessController.getAccreditableManager();
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.