ZENworks Reporting Server ZRS Configuring reporting server user group configuration fails to add members to Administrator if the group selected has space in the name

  • 7018206
  • 28-Oct-2016
  • 07-Nov-2016

Environment

Novell ZENworks Configuration Management 11.4  ZRS 5.6 Jaspersoft

Situation

Configuring reporting server user group configuration fails to add members to Administrator if the group selected has space in the name.

ERROR when running reports from jasperserver.log:

ERROR errorPage_jsp,http-bio-8443-exec-2:573 - stack trace of exception that redirected to errorPage.jsp
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.jaspersoft.ji.adhoc.action.tree.TemplateTreeDataProvider]: Constructor threw exception; nested exception is org.springframework.security.AccessDeniedException: Access is denied
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
Caused by: org.springframework.security.AccessDeniedException: Access is denied

Resolution

Workaround:  In the configuration "User Groups for Administrative Role" select a group without spaces in the name.  

Or do the following steps:

  1. Reconfigure ZRS with LDAP user group, for example : "Domain Admins" group
  2. Once after reconfiguration complete, make a backup of this file /opt/novell/zenworks-reporting/js/apache-tomcat/webapps/jasperserver-pro/WEB-INF/applicationContext-externalAuth-LDAP-mt.xml for safe keeping
  3. Edit the above file.  Search for organizationRoleMap to find an entry such as this:
    <key>
    <value>ROLE_DOMAIN_ADMINS</value>
    </key>
  4. Edit the value to remove the underscore in the group name.  From the example above:
    <value>ROLE_DOMAIN_ADMINS</value> to <value>ROLE_DOMAIN ADMINS</value>
  5. Save the file and restart the ZRS services