09-04-2012 10:59 AM
09-05-2012 09:20 PM
I receive this error message everytime a view a certain document.
"
An error has occured in the Share component: /share/service/components/document-details/document-permissions.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 08040029 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/document-details/document-permissions.get.js': 08040028 TypeError: Cannot read property "length" from undefined (file:/opt/alfresco-4.0.d/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/document-details/document-permissions.get.js#1520)
Server: Alfresco Spring WebScripts - v1.0.0 (Release 958) schema 1,000"
Please help me solve this issue.
Alfresco v4.0.d
Thanks.
09-12-2012 04:09 AM
function setPermissions(documentDetails)
{
var rawPerms = documentDetails.item.node.permissions.roles,
permParts,
group,
permission;
model.roles = rawPerms;
model.readPermission = false;
if (rawPerms.length > 0)
{
……..
function setPermissions(documentDetails)
{
var rawPerms = documentDetails.item.node.permissions.roles,
permParts,
group,
permission;
// bug share - site - role consumer
// start fix
if (rawPerms == null || rawPerms == undefined ) {
rawPerms = [];
}
// finish fix
//
model.roles = rawPerms;
model.readPermission = false;
if ( rawPerms.length > 0)
{
09-12-2012 10:33 AM
Hi!
To solve this problem (waiting for an offical fix) you should modify/override this share webscript: document-permissions.get.js
fromfunction setPermissions(documentDetails)
{
var rawPerms = documentDetails.item.node.permissions.roles,
permParts,
group,
permission;
model.roles = rawPerms;
model.readPermission = false;
if (rawPerms.length > 0)
{
……..
tofunction setPermissions(documentDetails)
{
var rawPerms = documentDetails.item.node.permissions.roles,
permParts,
group,
permission;
// bug share - site - role consumer
// start fix
if (rawPerms == null || rawPerms == undefined ) {
rawPerms = [];
}
// finish fix
//
model.roles = rawPerms;
model.readPermission = false;
if ( rawPerms.length > 0)
{
Best regards!
09-28-2012 09:22 PM
Hi!
To solve this problem (waiting for an offical fix) you should modify/override this share webscript: document-permissions.get.js
fromfunction setPermissions(documentDetails)
{
var rawPerms = documentDetails.item.node.permissions.roles,
permParts,
group,
permission;
model.roles = rawPerms;
model.readPermission = false;
if (rawPerms.length > 0)
{
……..
tofunction setPermissions(documentDetails)
{
var rawPerms = documentDetails.item.node.permissions.roles,
permParts,
group,
permission;
// bug share - site - role consumer
// start fix
if (rawPerms == null || rawPerms == undefined ) {
rawPerms = [];
}
// finish fix
//
model.roles = rawPerms;
model.readPermission = false;
if ( rawPerms.length > 0)
{
Best regards!
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.