cancel
Showing results for 
Search instead for 
Did you mean: 

bad error if I'm only consumer

gianmere
Champ in-the-making
Champ in-the-making
Hi

If I'm consumer for a file, and I try to click in the file name, I see this error:

An error has occured in the Share component: /share/service/components/folder-details/folder-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: 04100013 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/folder-details/folder-permissions.get.js': 04100012 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/folder-details/folder-permissions.get.js

Ok, I understand that:
I can't read the property of document, it's normal !!!
But there is a way to view a message more user friendly, like only "Permission Denied" ?

Thanks
Redards
3 REPLIES 3

janv
Employee
Employee
Thanks for the feedback. This should be fixed in the latest Enterprise 4.0.1 service pack and/or Community HEAD build. For example, if you're running Alfresco Community 4.0.d and you can backup your current system, then you could try installing and upgrading a separate test system (restored using your backup) with the latest "nightly" dev build (http://dev.alfresco.com/downloads/nightly/dist/) to see if this resolves your issue.

Regards,
Jan

sharifu
Confirmed Champ
Confirmed Champ
I found a workaround for the time being. Change the Consumers to Contributors and give it specific permissions you want.

tomcat/sharede/classes/alfresco/extension/model/sitepremissiondefintitions.xml

<permissionGroup name="USA" allowFullControl="false" expose="true">
         <!–  <includePermissionGroup permissionGroup="Consumer" type="cm:cmobject" />–>
         <includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" />
         <includePermissionGroup type="sys:base" permissionGroup="Read"/>
      </permissionGroup

this takes away the error message you see on screen and in the log file

douglascrp
World-Class Innovator
World-Class Innovator
Thanks for the feedback. This should be fixed in the latest Enterprise 4.0.1 service pack and/or Community HEAD build. For example, if you're running Alfresco Community 4.0.d and you can backup your current system, then you could try installing and upgrading a separate test system (restored using your backup) with the latest "nightly" dev build (http://dev.alfresco.com/downloads/nightly/dist/) to see if this resolves your issue.

Regards,
Jan

We tried the alfresco-community-4.2.a, but another problems appeared.

Rolling back to 4.0.d