cancel
Showing results for 
Search instead for 
Did you mean: 

Renamed LDAP group woes

idwright
Star Collaborator
Star Collaborator
Hi,

I've renamed a couple of LDAP groups that I'm a member of and now I effectively can't log in to Share.

I wondered if anybody else has seen this and/or has any suggestions?


I see the following in the logs:

2014-10-13 14:02:31,261  ERROR [freemarker.runtime] [http-bio-8080-exec-14] Template processing error: "get(properties) failed on instance of org.alfresco.repo.template.TemplateNode"

get(properties) failed on instance of org.alfresco.repo.template.TemplateNode
The problematic instruction:
———-
==> assignment: authName=g.properties["cm:authorityName"] [on line 64, column 17 in org/alfresco/repository/person/person.lib.ftl]
in user-directive personLib.personGroupsJSON [on line 3, column 9 in org/alfresco/repository/person/person.get.json.ftl]
———-

Java backtrace for programmers:
———-
freemarker.template.TemplateModelException: get(properties) failed on instance of org.alfresco.repo.template.TemplateNode
        at freemarker.ext.beans.BeanModel.get(BeanModel.java:224)
        at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
        at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        at freemarker.core.DynamicKeyName._getAsTemplateModel(DynamicKeyName.java:74)

…..

Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/1dc029a6-d3c4-4db9-9502-fd29953d1fa1(Status[id=144266changeTxnId=f8aca311-d5ac-4ef2-87ab-b11741291c65, dbTxnId=197135, deleted=true])
        at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodePairNotNull(DbNodeServiceImpl.java:189)
        at org.alfresco.repo.node.db.DbNodeServiceImpl.hasAspect(DbNodeServiceImpl.java:1007)
        at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager
I figure that old groups are gone in Alfresco with LDAP synchronization, so Person object cannot be instantiated (thus the deleted nodes in authority). Maybe you can re-arrange your names in LDAP, make LDAP sync again, unsubscribe users from LDAP group, create new groups on LDAP, subscribe users to new groups, sync LDAP again with Alfresco and finally delete GROUPS on LDAP.

Luck!
Hyland Developer Evangelist

idwright
Star Collaborator
Star Collaborator
Thanks for the suggestion - I had tried several variations on that theme in the end I restarted Alfresco and that seems to have solved the problem (I am doing a full, not partial, sync in the cron but that didn't seem to be enough)

This area seems slightly flakey as I always get errors(org.alfresco.service.cmr.repository.DuplicateChildNodeNameException) in the logs when I add people to LDAP groups but it seems to work anyway…