Error message when viewing a doc
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2012 10:59 AM
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.
"
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.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
This is a know bug, unresolved until now.
You can vote and watch the Jira ticket about this here
https://issues.alfresco.com/jira/browse/ALF-12422
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2012 04:09 AM
Hi!
To solve this problem (waiting for an offical fix) you should modify/override this share webscript: document-permissions.get.js
from
to
Best regards!
To solve this problem (waiting for an offical fix) you should modify/override this share webscript: document-permissions.get.js
from
function setPermissions(documentDetails){ var rawPerms = documentDetails.item.node.permissions.roles, permParts, group, permission; model.roles = rawPerms; model.readPermission = false; if (rawPerms.length > 0) {……..
to
function setPermissions(documentDetails){ var rawPerms = documentDetails.item.node.permissions.roles, permParts, group, permission;// bug share - site - role consumer// start fixif (rawPerms == null || rawPerms == undefined ) { rawPerms = [];}// finish fix// model.roles = rawPerms; model.readPermission = false; if ( rawPerms.length > 0) {
Best regards!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 fixif (rawPerms == null || rawPerms == undefined ) { rawPerms = [];}// finish fix// model.roles = rawPerms; model.readPermission = false; if ( rawPerms.length > 0) {
Best regards!
Hi.
I tried this workaround here and it's working.
Thanks for sharing.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 fixif (rawPerms == null || rawPerms == undefined ) { rawPerms = [];}// finish fix// model.roles = rawPerms; model.readPermission = false; if ( rawPerms.length > 0) {
Best regards!
That worked like a charm!!
Thank you so much cbernardi