mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-3181 and RM-3195 - error accessing caveatConfig.json after modifications
Caveat config file had filePlanComponent applied, but wasn't contained within a file plan.
This commit is contained in:
@@ -41,9 +41,6 @@
|
|||||||
<title>Caveat Config</title>
|
<title>Caveat Config</title>
|
||||||
<parent>cm:content</parent>
|
<parent>cm:content</parent>
|
||||||
<archive>false</archive>
|
<archive>false</archive>
|
||||||
<mandatory-aspects>
|
|
||||||
<aspect>rma:filePlanComponent</aspect>
|
|
||||||
</mandatory-aspects>
|
|
||||||
</type>
|
</type>
|
||||||
|
|
||||||
<type name="rma:emailConfig">
|
<type name="rma:emailConfig">
|
||||||
|
@@ -244,7 +244,8 @@ public class RMSecurityCommon implements ApplicationContextAware
|
|||||||
{
|
{
|
||||||
// Get the file plan for the node
|
// Get the file plan for the node
|
||||||
NodeRef filePlan = getFilePlanService().getFilePlan(nodeRef);
|
NodeRef filePlan = getFilePlanService().getFilePlan(nodeRef);
|
||||||
if (hasViewCapability(filePlan) == AccessStatus.DENIED)
|
if (filePlan != null &&
|
||||||
|
hasViewCapability(filePlan) == AccessStatus.DENIED)
|
||||||
{
|
{
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
|
@@ -411,7 +411,10 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JS
|
|||||||
|
|
||||||
// File plan node reference
|
// File plan node reference
|
||||||
NodeRef filePlan = filePlanService.getFilePlan(nodeRef);
|
NodeRef filePlan = filePlanService.getFilePlan(nodeRef);
|
||||||
result.put("filePlan", filePlan.toString());
|
if (filePlan != null)
|
||||||
|
{
|
||||||
|
result.put("filePlan", filePlan.toString());
|
||||||
|
}
|
||||||
|
|
||||||
// Unfiled container node reference
|
// Unfiled container node reference
|
||||||
NodeRef unfiledRecordContainer = filePlanService.getUnfiledContainer(filePlan);
|
NodeRef unfiledRecordContainer = filePlanService.getUnfiledContainer(filePlan);
|
||||||
|
Reference in New Issue
Block a user